Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Michal Kubeček" <mkubecek@suse.cz>
To: netfilter <netfilter@vger.kernel.org>
Cc: rahul shrivastava <shrivastavaone@gmail.com>
Subject: Re: -f option used with iptables
Date: Tue, 07 Aug 2012 08:15:54 +0200	[thread overview]
Message-ID: <1723425.lveZBpEbj8@alaris> (raw)
In-Reply-To: <CAE1WnGfTxjoEov7QCU0W32Z=Uy9y+rSEmCzZ94KiB0__AjSvmQ@mail.gmail.com>

On Monday 06 of August 2012 20:00EN, rahul shrivastava wrote:
> 
> my objective is to drop all fragmented packets on my system
> following rules are used

Not a good idea, IMHO.

> iptables -A INPUT -f -j DROP
> iptables -A OUTPUT -f -j DROP
> iptables -A FORWARD -f -j DROP

This doesn't drop every fragmented packet, only second and further 
fragments. Thus the first fragment passes through, waits in a queue 
until it times out (30 seconds on my system) and then causes a 
"fragmentation timeout exceeded" ICMP message.

> i am using ping -s 32768 10.2.2.2 for generating fragments

You should at least tell where are the rules from above set. On the 
system sending the packets, on the system receiving the packets or 
somewhere between them? Also don't forget to mention the kernel version.

                                                      Michal Kubeèek


  reply	other threads:[~2012-08-07  6:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-06 14:30 -f option used with iptables rahul shrivastava
2012-08-07  6:15 ` Michal Kubeček [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-07-24 15:33 rahul shrivastava
2012-06-21 10:46 rahul shrivastava
2012-06-21 14:27 ` Jan Engelhardt
2012-06-26 10:24   ` rahul shrivastava
2012-06-26 10:46     ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1723425.lveZBpEbj8@alaris \
    --to=mkubecek@suse.cz \
    --cc=netfilter@vger.kernel.org \
    --cc=shrivastavaone@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox