Skip to content

Commit d02d2ed

Browse files
committed
prepare for JA4 ssl-fingerprint
1 parent 7e83b86 commit d02d2ed

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

defaults/main/0_hardcoded.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ HAPROXY_HC:
5252
acme_script: "https://github.com/dehydrated-io/dehydrated/releases/download/v{{ version_dehydrated }}/dehydrated-{{ version_dehydrated }}.tar.gz"
5353
ja3n_script: 'https://raw.githubusercontent.com/O-X-L/haproxy-ja3n/latest/ja3n.lua'
5454
ja4_script: 'https://raw.githubusercontent.com/O-X-L/haproxy-ja4/latest/ja4.lua'
55+
sha2_script: 'https://raw.githubusercontent.com/Egor-Skriptunoff/pure_lua_SHA/master/sha2.lua' # ja4 dependency
5556

5657
valid_geoip_providers: ['ipinfo', 'maxmind']
5758
user_geoip: 'haproxy-geoip'

tasks/debian/install.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
name: 'haproxy.service'
9999
enabled: true
100100

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

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

119+
- name: HAProxy | Install | Download SHA2 LUA-library (JA4 dependency)
120+
ansible.builtin.get_url:
121+
url: "{{ HAPROXY_HC.url.sha2_script }}"
122+
dest: "{{ HAPROXY_HC.path.lua }}/sha2.lua"
123+
owner: 'root'
124+
group: 'haproxy'
125+
mode: 0750
126+
tags: lua
127+
119128
# todo: opt-in for JA4-DB lookups + map update service (https://github.com/O-X-L/haproxy-ja4)

0 commit comments

Comments
 (0)