Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Mark Hindley <mark@hindley.uklinux.net>
To: netfilter@lists.netfilter.org
Subject: Firehol DROPping INVALID
Date: Sat, 5 Jun 2004 21:17:39 +0100	[thread overview]
Message-ID: <20040605201739.GA3481@hindley.uklinux.net> (raw)

Hi,

I have asked this on the Firehol lists, but got no response. Hope you
can help.

I am using kernel 2.6.6 and have firehol setting up a firewall on the
gateway machine with eth0 LAN, ppp0 dial-up link. NAT for hosts on LAN

If the ppp link is down and a host on the LAN sends a packet destined
for the outside world, the icmp-unreacahble packet does not get
returned, so the LAN host has to wait to time out.

The offending command issued by firehol seems to be: 


iptables -A OUTPUT -m state --state INVALID -j DROP

Although the comment says this is recommended in the Netfilter HOWTO, I
cannot find it.

I can get round it by adding

iptables -I OUTPUT 2  -m state --state INVALID -p icmp --icmp-type  destination-unreachable -j ACCEPT

which inserts the ACCEPT before the DROP above and means that hosts on
the LAN get an immediate icmp reply "destination-unreachable" if the
ppp link is down.

Is this wise? secure. Am I missing something.

Thanks for your help

Mark


             reply	other threads:[~2004-06-05 20:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-05 20:17 Mark Hindley [this message]
2004-06-06 14:11 ` Firehol DROPping INVALID Antony Stone
2004-06-07 15:15   ` Aleksandar Milivojevic

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=20040605201739.GA3481@hindley.uklinux.net \
    --to=mark@hindley.uklinux.net \
    --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