From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: Re: block ip fragmented packet Date: Fri, 11 Dec 2015 18:22:08 +0100 Message-ID: <20151211172208.GA1580@salvia> References: <566A85EE.4030502@plouf.fr.eu.org> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: Sender: netfilter-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Satish Patel Cc: Pascal Hambourg , Anton Danilov , "netfilter@vger.kernel.org" On Fri, Dec 11, 2015 at 07:53:12AM -0500, Satish Patel wrote: > I'm testing this rule from remote machine and sending fragmented packet using hping3 utility. > > -f iptables option is not going to work if conntrack there. > > I don't know why it's so hard for iptable to block something like this. You got nf_defrag_ipv4 loaded (it comes with conntrack), therefore, fragments are reassembled before entering conntrack, then fragmented back from the output path. In nftables you can add a chain *before* priority -400 that should see fragmented packets.