Skip to content

Commit

Permalink
prepare for JA4 ssl-fingerprint
Browse files Browse the repository at this point in the history
  • Loading branch information
ansibleguy committed Aug 25, 2024
1 parent 7e83b86 commit d02d2ed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions defaults/main/0_hardcoded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ HAPROXY_HC:
acme_script: "https://github.com/dehydrated-io/dehydrated/releases/download/v{{ version_dehydrated }}/dehydrated-{{ version_dehydrated }}.tar.gz"
ja3n_script: 'https://raw.githubusercontent.com/O-X-L/haproxy-ja3n/latest/ja3n.lua'
ja4_script: 'https://raw.githubusercontent.com/O-X-L/haproxy-ja4/latest/ja4.lua'
sha2_script: 'https://raw.githubusercontent.com/Egor-Skriptunoff/pure_lua_SHA/master/sha2.lua' # ja4 dependency

valid_geoip_providers: ['ipinfo', 'maxmind']
user_geoip: 'haproxy-geoip'
Expand Down
13 changes: 11 additions & 2 deletions tasks/debian/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
name: 'haproxy.service'
enabled: true

- name: HAProxy | Install | Download SSL-Fingerprint plugin (JA3N)
- name: HAProxy | Install | Download SSL-Fingerprint LUA-plugin (JA3N)
ansible.builtin.get_url:
url: "{{ HAPROXY_HC.url.ja3n_script }}"
dest: "{{ HAPROXY_HC.path.lua }}/ja3n.lua"
Expand All @@ -107,7 +107,7 @@
mode: 0750
tags: lua

- name: HAProxy | Install | Download SSL-Fingerprint plugin (JA4)
- name: HAProxy | Install | Download SSL-Fingerprint LUA-plugin (JA4)
ansible.builtin.get_url:
url: "{{ HAPROXY_HC.url.ja4_script }}"
dest: "{{ HAPROXY_HC.path.lua }}/ja4.lua"
Expand All @@ -116,4 +116,13 @@
mode: 0750
tags: lua

- name: HAProxy | Install | Download SHA2 LUA-library (JA4 dependency)
ansible.builtin.get_url:
url: "{{ HAPROXY_HC.url.sha2_script }}"
dest: "{{ HAPROXY_HC.path.lua }}/sha2.lua"
owner: 'root'
group: 'haproxy'
mode: 0750
tags: lua

# todo: opt-in for JA4-DB lookups + map update service (https://github.com/O-X-L/haproxy-ja4)

0 comments on commit d02d2ed

Please sign in to comment.