Network sharing doesn't work more then a few seconds
Hi,
I'm trying to share my Internet cable connection to the internal LAN (W2K), I used several scripts the current one was made by firestarter. My problem is: if I surf the Internet in the server it's OK. But if I surf from the workstations it works for 3~6 minutes and then the network comes down, I can't ping the server or the workstation. After I stop the network and restart (network and firewall) it work the same way. What is the possible problem. Thank you in advance. spiri |
Are you having dynamic ip address? Does running dhcp client again help?
|
No
Hi,
I have static IPs and no dhcp-client try to install dhcp-client but it says can't find dhcp.conf Do you think that I should use dinamic IP, my problem is samba. Thank you. |
You have static ip also to internet?
How the samba is your problem? Wasn't the problem sharing the internet connection? Do you have two nics or are you trying to do the thing within same wires? |
You have static ip also to internet?
-No! How the samba is your problem? Wasn't the problem sharing the internet connection? -Yes, but if I start using dinamic IPs the serve can't find workstations, I think. Do you have two nics or are you trying to do the thing within same wires? -I had 2 nics: eth0 -> LAN; eth1->Internet. Thanks. spiri |
Hmm.. my first idea was that the dhcp-client is not running on the background and the ip-address expires, but it doesn't explain why the server stops pinging to the workstation.
It is also possible that the netcard just locks up for some reason. I have had this kind of lockup problem with some d-link cards using via-rhine driver and with somewhat old kernels (some 2.4.18 and older). You could see the syslog and dmesg from the server if there are something netcard related (like "eth transmit timeout: reseting") problems. Also is it the firewall that hangs or the networking itsefl. That is, does the ping packets start transmiting again if you drop the firewall Code:
iptables -F More questions: What kernel are you using? Does the packet counters increase after the hangup? Does there come some error, dropped or overruns when you look the interface with ifconfig? |
Hi,
thank you for your help. I remove the firestarter script, and use this one: Code:
#!/bin/bash with this scrip it works more time, 2 or 3 minutes, and the network is up so I can ping the workstations and the the nics are in the ifconfig. Quote:
It could be a script problem or a hardware problem. I'm using a Gigabyte GA-7N400 Pro 2 with a r8139 module (eth1=internet) the lan nic is a US Robotics (tulip module->lan). Maybe I had too change the nics ? regards, spiri |
Hmm.. does there come any errors for the interfaces?
For me there is one error package (happened at the initialization time when connecting the wires) Code:
root@perhonen:~# ifconfig Ok, now the machines ping eachother; does the network work afther few minutes from the server doing the routing? If not, is the dhcp-client still running? (something like: Code:
root 467 1 0 Apr09 ? 00:00:00 dhclient -pf /var/run/dhclient.eth1.pid eth1 |
My ifconfig after it as broken the connection:
Code:
debian:/home/toto# ifconfig Code:
debian:/home/toto# tail /var/log/dmesg I had to stop the network start it and run the iptables script to acces the internet from the server. thank you regards spiri |
Someone send this post to debian-firewall@lists.debian.org
Quote:
|
All times are GMT -5. The time now is 06:56 PM. |