From: Tim Gardner <timg@tpi.com>
To: Balazs Scheidler <bazsi@balabit.hu>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: Re: 2.4 SNAT fails randomly
Date: Tue, 18 Nov 2003 08:35:09 -0700 [thread overview]
Message-ID: <200311180835.09794.timg@tpi.com> (raw)
In-Reply-To: <200311160953.51722.timg@tpi.com>
I've been thinking more about this scenario. When a standard distribution like
SuSE-9.0 boots, the interfaces are IFF_UP sometime before firewall rules are
installed. This is particularly a problem in the case of a NAT router. Is
there any way to flush /proc/net/ip_conntrack to make sure that you get rid
of entries that were established between the time the interfaces were brought
up and the time the rules were installed? Removing the ip_conntrack modules
seems kind of brute force, and does not work on kernels where ip_conntrack is
not a module.
rtg
On Sunday 16 November 2003 09:53, Tim Gardner wrote:
> Balazs,
>
> You are exactly correct. I swapped the interface creation statements with
> the iptables rules so that the rules were in place before any packets could
> be received from the interior net. In fact, I had to make sure that the
> interior net interface was down. Otherwise it would make an entry in
> ip_conntrack, regardless of the IP address of the interior interface.
>
> Thanks for your help.
>
> rtg
>
> On Sunday 16 November 2003 02:52, Balazs Scheidler wrote:
> > NAT mappings are established for NEW connections only, isn't it possible
> > that your client sent an NTP request while your rule was not yet
> > established? This means that it is entered the CONNTRACK table without
> > the NAT manip and anything that comes later is not NATed as it is not a
> > fresh CONNTRACK.
> >
> > Try filtering this traffic for 180secs and see it disappear from
> > /proc/net/ip_conntrack, then remove the filtering and check whether it
> > traversed the nat/POSTROUTING chain.
--
Tim Gardner - timg@tpi.com
www.tpi.com 406-443-5357
next prev parent reply other threads:[~2003-11-18 15:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-15 18:03 2.4 SNAT fails randomly Tim Gardner
2003-11-16 9:52 ` Balazs Scheidler
2003-11-16 16:53 ` Tim Gardner
2003-11-18 15:35 ` Tim Gardner [this message]
2003-11-18 16:20 ` Balazs Scheidler
2003-11-19 7:46 ` Eldad Zack
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=200311180835.09794.timg@tpi.com \
--to=timg@tpi.com \
--cc=bazsi@balabit.hu \
--cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.