Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Richard Pickett" <Richard.Pickett@CSRTechnologies.com>
To: netfilter@lists.netfilter.org
Subject: Strange FORWARD problem
Date: Sun, 25 Dec 2005 18:57:39 -0600	[thread overview]
Message-ID: <00c201c609b7$601ce790$1101a8c0@quebec> (raw)

Stock RH FC4 kernel, 2.6.11 - no modification or patches.

I have a special script that generates the correct iptables settings
from a configuration file. Basic NAT, Routing, and IN/OUT capability.

Everything that comes into INPUT, OUTPUT, and FORWARD goes through the
following logic:

1. We check the state to see if it is RELATED,ESTABLISHED, if yes, jump
ACCEPT
2. Log, we log the inbound packet, indicating which chain it is coming
on (INPUT, OUTPUT, FORWARD).
3. check against a "DROP" list of addresses we reject all traffic
to/from.
4. check against "allow" rules
5. log and Drop the packet.

Well, we've run into an intermittent problem. What we are seeing is
after different amounts of time (sometimes a few hours, sometimes
several weeks) suddenly forwarding breaks. It just doesn't forward
anything that is D or S NATed.

We iptables-save > file and check it all over, and the logic is all in
place just like I list above. At a minimum things hitting the forward
chain should at least get logged, but they don't, the only logging is
INPUT and OUTPUT.

We can turn right around and cat file | iptables-restore and "magically"
it all starts working again.

It's like it just needs to be bumped every once in a while to make it
keep running.

Any ideas? Are there some kernel logging things we can try or other
things we need to be looking at to determine this problem?

We don't touch anything except the iptables-restore to make it work
again, so things like /proc/sys/net/ipv4/ip_forward aren't touched at
all to make it work.

Thanks for any ideas and all help!



                 reply	other threads:[~2005-12-26  0:57 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='00c201c609b7$601ce790$1101a8c0@quebec' \
    --to=richard.pickett@csrtechnologies.com \
    --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