Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Don Porter <porterde@hendrix.edu>
To: netfilter@lists.netfilter.org
Subject: Delay rejecting packets on OUTPUT chain
Date: Thu, 14 Jul 2005 13:25:31 -0500	[thread overview]
Message-ID: <1121365531.3241.13.camel@augustine> (raw)

I have iptables configured with a policy of DROP on the OUTPUT chain,
followed by various ACCEPT rules, and then I append a REJECT extension
on the chain.

I have a simple test application that tries to open a tcp socket to
another machine.  This application runs in a few tenths of a second when
the OUTPUT chain is configured to ACCEPT, even if the packet is rejected
on the other machine's INPUT chain.  If I DROP and REJECT the traffic on
the output chain, however, it consistently takes about 3 seconds to run
(and, obviously, even longer without the REJECT).

So why is it that it takes so much longer for the test to fail when the
packet is rejected on the box than when it goes across the wire and
back?

Any insights/advice on this would be greatly appreciated.

Don Porter


                 reply	other threads:[~2005-07-14 18:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1121365531.3241.13.camel@augustine \
    --to=porterde@hendrix.edu \
    --cc=netfilter@lists.netfilter.org \
    /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