All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* iptables on Red Hat Linux 8.0 installation requires frequent iptables restart
@ 2002-12-20 21:13 John A. Novak
  2002-12-21 11:24 ` Vik Heyndrickx
  2002-12-22 17:01 ` Kevin McConnell
  0 siblings, 2 replies; 3+ messages in thread
From: John A. Novak @ 2002-12-20 21:13 UTC (permalink / raw
  To: netfilter

Greetings,

I am running iptables on a Red Hat Linux 8.0 system that I received from Red Hat about a month ago.  I am using iptables straight off the distribution CD.

The system iptables is running on is used only as a firewall, has 512MB of RAM and three network adapters.  The symptom I'm seeing is that every day or so I need to restart the iptables service to get packets moving through the firewall again.  The system appears to have plenty of available RAM and plenty of free disk space when the firewall is dysfunctional.  

I am using NAT and have it configured to remap internal addresses to two ranges of external ip addresses, one for each of the two internal networks.

The periodic failure and resurrection after restart is suggestive of a resource leak, but I'm at a loss as to how to proceed to further debug this problem.

Any suggestions are appreciated.

John Novak


^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: iptables on Red Hat Linux 8.0 installation requires frequent iptables restart
  2002-12-20 21:13 iptables on Red Hat Linux 8.0 installation requires frequent iptables restart John A. Novak
@ 2002-12-21 11:24 ` Vik Heyndrickx
  2002-12-22 17:01 ` Kevin McConnell
  1 sibling, 0 replies; 3+ messages in thread
From: Vik Heyndrickx @ 2002-12-21 11:24 UTC (permalink / raw
  To: netfilter

> -----Original Message-----
> From: netfilter-admin@lists.netfilter.org
> [mailto:netfilter-admin@lists.netfilter.org]On Behalf Of John A. Novak
> Sent: Friday, December 20, 2002 10:13 PM
> To: netfilter@lists.netfilter.org
> Subject: iptables on Red Hat Linux 8.0 installation requires frequent
> iptables restart
>
>
> Greetings,
>
> I am running iptables on a Red Hat Linux 8.0 system that I
> received from Red Hat about a month ago.  I am using iptables
> straight off the distribution CD.
>
> The system iptables is running on is used only as a firewall, has
> 512MB of RAM and three network adapters.  The symptom I'm seeing
> is that every day or so I need to restart the iptables service to
> get packets moving through the firewall again.  The system
> appears to have plenty of available RAM and plenty of free disk
> space when the firewall is dysfunctional.
>
> I am using NAT and have it configured to remap internal addresses
> to two ranges of external ip addresses, one for each of the two
> internal networks.
>
> The periodic failure and resurrection after restart is suggestive
> of a resource leak, but I'm at a loss as to how to proceed to
> further debug this problem.
>
> Any suggestions are appreciated.

I have running a couple of RH8.0 routers/firewalls; some with distro
packages, others upgraded with newer kernels from RH, or my own rebuilds;
they have between 1 and 5 100mbit Ethernet interfaces. The ones which have
all fixed IP addresses keep running for weeks now. The ones with dynamically
assigned IP addresses (through DHCP) need a restart once in a while because
the firewall rules are very strict, and don't allow packets in with a
different destination IP address (that changes sometimes when the DHCP lease
expires). That could be a reason.

Until now I haven't had any situation that couldn't be explained, so I don't
think that there is any bug, like a resource leak in the netfilter code (no,
I don't even believe myself here).

What I suggest is to replace ANY DROP or REJECT line (don't forget the chain
policies), with a LOG + DROP/REJECT. And then sit and wait until no packets
are moving again. Then look in kernel syslog (usually in file
/var/log/messages), and see if packets are being dropped. Use tcpdump -n -i
any to see if the packets are coming in, and are going out.

--
Vik



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: iptables on Red Hat Linux 8.0 installation requires frequent iptables restart
  2002-12-20 21:13 iptables on Red Hat Linux 8.0 installation requires frequent iptables restart John A. Novak
  2002-12-21 11:24 ` Vik Heyndrickx
@ 2002-12-22 17:01 ` Kevin McConnell
  1 sibling, 0 replies; 3+ messages in thread
From: Kevin McConnell @ 2002-12-22 17:01 UTC (permalink / raw
  To: John A. Novak, netfilter


--- "John A. Novak" <jnovak@blueshiftinc.com> wrote:
> The system iptables is running on is used only as a
> firewall, has 512MB of RAM and three network
> adapters.  The symptom I'm seeing is that every day
> or so I need to restart the iptables service to get
> packets moving through the firewall again.  The
> system appears to have plenty of available RAM and
> plenty of free disk space when the firewall is
> dysfunctional.  
> 
> I am using NAT and have it configured to remap
> internal addresses to two ranges of external ip
> addresses, one for each of the two internal
> networks.
> 
> The periodic failure and resurrection after restart
> is suggestive of a resource leak, but I'm at a loss
> as to how to proceed to further debug this problem.

When you say resource leak, are you referring to a
memory leak? I don't think that's the case. I'm only
using 64 MB of RAM on my FW and it works without
restart every day. Coincidentally, does doing this
change and make the firewall start allowing packets
through again... try checking out the arp entries on
the FW itself and see if an arp problem exists.


=====
Kevin C. McConnell --RHCE-- <Red Hat Certified Engineer>

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-12-22 17:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-20 21:13 iptables on Red Hat Linux 8.0 installation requires frequent iptables restart John A. Novak
2002-12-21 11:24 ` Vik Heyndrickx
2002-12-22 17:01 ` Kevin McConnell

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.