Skip to contentSkip to conversation

mangle + TCP Flags

DISCUSSION Jean-Marie 2 participants 2 messages Dec 10, 2003 – Dec 11, 2003

lore
Share & tools
lore

Jean-Marie

author
#0 lore raw

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.

#1 lore raw

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