Linux Netfilter discussions
 help / color / mirror / Atom feed
* ip_forward failing at random times for random amount of time
@ 2008-12-15 23:26 Aleksander Kamenik
  2008-12-16 21:09 ` Aleksander Kamenik
  0 siblings, 1 reply; 2+ messages in thread
From: Aleksander Kamenik @ 2008-12-15 23:26 UTC (permalink / raw)
  To: netfilter

Hi,

I've got this real weird problem.

Running Fedora 9, seen this issue with 2.6.27.5-37 as well as
2.6.27.7-53 kernel.

It's a gateway box, two NICs. Internal LAN with several subnets and
external net.

At some random point in time packets that should be forwarded are not
sent through. Exactly as if ip_forward is set to 0 in /proc. But it's
not of course. No errors reported anywhere.

Both interfaces work fine on their own. For example I can ssh into the
box from the internet as well as from the internal LAN. I can ssh into
the box from the internal LAN with the -D option and successfully use
the box as a SOCKS proxy to browse the net.

I haven't found any clues, as why this might happen. The problem goes
away by itself sometimes after a minute, sometimes after half an hour. I
am unable to find any regularity.

A restart of the server solves the problem.

I tried reloading iptables, bringing the external NIC down and up.
Restarted my qos script (tc qdiscs). echo'd 0 into ip_forward and then 1
again.

Nothing helps except waiting and a cold boot.


It started happening, after I had tcpdump running on the box for quite a
while. Before this, I hadn't touched the box for a month. I figured
tcpdump might have caused it somehow so stopped using it, but it's still
happening even after restarts.

The disk is not full:

df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             453G   11G  419G   3% /
/dev/sda1            1012M   21M  940M   3% /boot
tmpfs                 2.0G     0  2.0G   0% /dev/shm

The box is idle, nothing's happening.

I then did a yum update and updated the kernel too. Rebooted. Problem
persists.

During a "blackout" I did:

iptables -I FORWARD -s my.internal.ip.address -j LOG --log-prefix "ASD"

And tried to use the net. No logs were written. After a restart I tried
the same iptables line and it found my packets. So during the blackout
the iptables filter FORWARD chain is not reached.


Any ideas on what possibly is going on? I don't know how to debug this
further.

Regards,

-- 

Aleksander Kamenik
System Administrator
Krediidiinfo AS
an Experian Company
Phone: +372 665 9649
Email: aleksander@krediidiinfo.ee

http://www.krediidiinfo.ee/
http://www.experiangroup.com/


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

* Re: ip_forward failing at random times for random amount of time
  2008-12-15 23:26 ip_forward failing at random times for random amount of time Aleksander Kamenik
@ 2008-12-16 21:09 ` Aleksander Kamenik
  0 siblings, 0 replies; 2+ messages in thread
From: Aleksander Kamenik @ 2008-12-16 21:09 UTC (permalink / raw)
  To: netfilter

Well I found the problem.

The central switch/router for some reason forgets its default route 
(3com 4900sx). Thereby making it look like the gateway is dropping 
forwarded packets.

My mistake for not checking for the packets with tcpdump in the first 
place. They simply weren't there, there was nothing for linux to 
forward. Doh.

Thankfully the unit was already scheduled to be replaced soon.

Sorry for the noise.

-- 

Aleksander Kamenik
System Administrator
Krediidiinfo AS
an Experian Company
Phone: +372 665 9649
Email: aleksander@krediidiinfo.ee

http://www.krediidiinfo.ee/
http://www.experiangroup.com/

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

end of thread, other threads:[~2008-12-16 21:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-15 23:26 ip_forward failing at random times for random amount of time Aleksander Kamenik
2008-12-16 21:09 ` Aleksander Kamenik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox