Pablo Neira Ayuso 8c88f87cb2 netfilter: nfnetlink_queue: add NAT TCP sequence adjustment if packet mangled
User-space programs that receive traffic via NFQUEUE may mangle packets.
If NAT is enabled, this usually puzzles sequence tracking, leading to
traffic disruptions.

With this patch, nfnl_queue will make the corresponding NAT TCP sequence
adjustment if:

1) The packet has been mangled,
2) the NFQA_CFG_F_CONNTRACK flag has been set, and
3) NAT is detected.

There are some records on the Internet complaning about this issue:
http://stackoverflow.com/questions/260757/packet-mangling-utilities-besides-iptables

By now, we only support TCP since we have no helpers for DCCP or SCTP.
Better to add this if we ever have some helper over those layer 4 protocols.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2012-06-16 15:09:08 +02:00
..
2012-06-04 11:45:11 -04:00
2012-04-02 04:33:43 -04:00
2012-06-11 02:08:59 -07:00
2012-04-15 12:37:19 -04:00
2012-04-15 12:37:19 -04:00
2012-04-15 12:37:19 -04:00
2012-04-15 12:37:19 -04:00
2012-03-11 23:42:51 -07:00
2012-04-15 12:37:19 -04:00
2012-03-19 16:53:08 -04:00
2012-04-15 12:37:19 -04:00
2012-03-11 15:52:12 -07:00
2012-05-02 20:56:10 -04:00
2012-05-17 14:59:59 -04:00
2012-05-17 14:59:59 -04:00
2012-03-11 23:42:51 -07:00
2012-04-15 12:37:19 -04:00