TProxy: socket match: transparent option, removed nf_conntrack dependency
cover TProxy: socket match: transparent option, removed nf_conntrack dependency
Hi Patrick,
we extended a missing feature of the socket match that it can check the 'transparent' member of the socket's structure. The original behaviour was that all of the sockets matched if they weren't listening on the 0.0.0.0 IP address, even if they were unrelated to the TProxy, such as ssh or other servers.
The IP_TRANSPARENT socket option is always set for the sockets using the TProxy, thus the following patch lets matching only these:
iptables ... -m socket --transparent ...
When I tested the new option, I found that NETFILTER_TPROXY depends on NF_CONNTRACK, which is unwanted, it works without it.
Signature · 1 line
Panther