mangle + TCP Flags
Hello, can someone tell me if it is possible, thanks to the mangle table, to modify the flags of a TCP packet before it is routed. I think to something like that:
iptables -t mangle -A INPUT -j TCPFLAG --set-flags FIN,URG
Thank you.
Yes, but I don't know of any TCPFLAG module. You might have to write your own. I wrote one because I couldn't find one -- if you can find one, please let me know. ;-)
Quoted 4 lines · Jean-Marie
Hello, can someone tell me if it is possible, thanks to the mangle table, to modify the flags of a TCP packet before it is routed. I think to something like that:
iptables -t mangle -A INPUT -j TCPFLAG --set-flags FIN,URG
Thank you.
Signature · 3 lines
"Copyright laws are only tolerated because they are not enforced against the
large number of petty offenders."
-- Alastair Kelman, University of Cambridge, 1997