Dataflow issues in Linux

jfall

Diamond Member
Oct 31, 2000
5,975
2
0
I have two computers, one with Slackware 8.1 and the other with Windows XP. The linux computer has two network cards, one of the network cards is getting an IP via DHCP and the other is acting as a gateway so I can share my internet connection with my XP machine. I am using IP tables to accomplish this.

I am getting internet dataflow through both computers but there seems to be a problem with it cutting off all the time. It almost seems like it is on a timer. I will be on my XP computer for about 5-10 minutes and data flow will completely stop. It doesn't matter if i'm idleing on the internet or downloading a file. When this happens, I switch back to my linux computer and try to ping something from that, there is also no data flow on it. The dataflow stops for about 2 minutes then everything is back to normal.

I know this must sound like a problem with my internet provider, but before I set this up, I never had problems like this. Plus, just the way it is happening.. internet works fine for 5-10 minutes, then stops for 2 minutes then starts again.

Here is my IPTABLES configuration which starts up on boot (I put it in /etc/rc.d/rc.local)

ifconfig eth1 192.168.10.101 netmask 255.255.255.0 broadcast 192.168.10.255

iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward

Please, anyone that has any suggestions at all I would like to hear them. I am not 100% sure if this is related to IPTABLES or not. I have read the iptables documentation many times and I can't seem to find an answer.

Thanks in advance.
 

cleverhandle

Diamond Member
Dec 17, 2001
3,566
3
81
Interesting...

I've had similar symptoms trying to get an XP laptop onto a wireless network at work - works for a couple minutes, then cuts out, even though the signal is good. No iptables or unusual routing, though. Never really explored it because it's really not that important to me, but perhaps it's related.

You may want to cross-post this to Networking if you haven't done so already...
 

jfall

Diamond Member
Oct 31, 2000
5,975
2
0
Any log in specific? What kind of things should I be looking for?