Skip to contentSkip to conversation

Ignore tcp checksum on ip_conntrack

DISCUSSION Alex Bligh 2 participants 2 messages Sep 16, 2010 – Sep 20, 2010

lore
Share & tools
lore

Alex Bligh

author
#0 lore raw

ip_conntrack ditches packets for masquerading etc if their ip checksum is wrong.

Is it possible to disable this behaviour on kernel 2.6.18 (I know, it's old)? I have something that like producing tcp packets with invalid checksums.

Signature · 1 line
Alex Bligh
#1 lore raw
Quoted 6 lines · Alex Bligh

ip_conntrack ditches packets for masquerading etc if their ip checksum is wrong.

Is it possible to disable this behaviour on kernel 2.6.18 (I know, it's old)? I have something that like producing tcp packets with invalid checksums.

# echo 0 > /proc/sys/net/netfilter/nf_conntrack_checksum

If you use ip_conntrack instead of nf_conntrack you have to set ip_conntrack_checksum to 0.

# echo 0 > /proc/sys/net/ipv4/netfilter/ip_conntrack_checksum