From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pascal Hambourg Subject: Re: Nat and firewall holes Date: Mon, 22 Mar 2010 20:40:15 +0100 Message-ID: <4BA7C79F.9030505@plouf.fr.eu.org> References: <4BA7A4F9.6020001@plouf.fr.eu.org> <4BA7AB63.6090908@plouf.fr.eu.org> Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="iso-8859-1" To: netfilter@vger.kernel.org ratheesh k a =E9crit : >>>> On Mon, Mar 22, 2010 at 10:42 PM, Pascal Hambourg wrote >> Window and sequence number tracking has been included in TCP connect= ion >> tracking since kernel 2.6.9, making out-of-window segments INVALID. >=20 > Beautiful ... > So this packet will be rejected by > iptables -A FORWARD -m state --state INVALID -j DROP rule ?? Actually not in your masquerading setup : INVALID packets skip NAT (which is good enough a reason to DROP them in a NAT setup, in order to prevent private addresses from leaking outside), so the packet won't be demasqueraded and will fall into the INPUT chain instead of the FORWARD chain.