Skip to contentSkip to conversation

Writing a mangle TARGET for iptables, questions about fragments, checksums

DISCUSSION Brian G 2 participants 2 messages Apr 3, 2011 – Apr 14, 2011 netfilter

lore
Share & tools
lore

Brian G

author
#0 lore raw

Hi,

I want to modify a packet in the TCP mangle PREROUTING table.

First question: Fragments, does the kernel reassemble them BEFORE this point? Second question: Checksums, do I need to update the checksum?

Is there example code that I could work with?

- Brian

#1 lore raw
Quoted 5 lines · Brian G

Hi,

I want to modify a packet in the TCP mangle PREROUTING table.

First question: Fragments, does the kernel reassemble them BEFORE this point?

Potentially. It may, but it does not have to.

Quoted 1 line

Second question: Checksums, do I need to update the checksum?

Yes.