#699710 socat wishlist item: please support Linux IP-level IP_TRANSPARENT option

Package:
socat
Source:
socat
Description:
multipurpose relay for bidirectional data transfer
Submitter:
David Madore
Date:
2023-11-21 17:39:03 UTC
Severity:
wishlist
#699710#5
Date:
2013-02-03 22:15:19 UTC
From:
To:
Hi,

Linux has an IP-level (level=SOL_IP) socket option called
IP_TRANSPARENT, which allows binding on a non-local address (with
superuser privileges) to implement transparent proxy support.  It
would be useful if socat could have an option to reflect this.

There's also IP_FREEBIND, along similar (but subtly different) lines,
which might also be interesting to have.  Not that I wouldn't mind
having access to every single option listed in ip(7) under socat, but
I can imagine it can be a pain to keep track of. :-)

Cheers,

#699710#10
Date:
2023-11-21 17:30:29 UTC
From:
To:
I've been successfully using socat's "ip-transparent" option to test
some "tproxy" nftables rules.  I think this is what you were asking for,
and is in Debian package version 1.7.4.4-2.