]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: net_helper: add ip.fp() to build a simplified fingerprint of a SYN
authorWilly Tarreau <w@1wt.eu>
Tue, 30 Dec 2025 18:38:22 +0000 (19:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 31 Dec 2025 16:17:38 +0000 (17:17 +0100)
commite88e03a6e4aa3fed736f300f4f4cf0dde1c4606c
tree0c01e4c806e7f1dc1a81195a08030a0924109bd1
parent6e46d1345b0a8c90e16735682821ba6b8debbc8e
MINOR: net_helper: add ip.fp() to build a simplified fingerprint of a SYN

Here we collect all the stuff that depends on the sender's settings,
such as TOS, IP version, TTL range, presence of DF bit or IP options,
presence of DATA in the SYN, CWR+ECE flags, TCP header length, wscale,
initial window, mss, as well as the list of TCP extension kinds. It's
obviously fairly limited but can allows to avoid blacklisting certain
valid clients sharing the same IP address as a misbehaving one.

It supports both a short and a long mode depending on the argument.
These can be used with the tcp-ss bind option. The doc was updated
accordingly.
doc/configuration.txt
src/net_helper.c