I have a Debian 5 Linux Gateway/Firewall system that I've been configuring to replace my Linksys WRT54GL router. Currently, I have it fully working with internet access, though it is sitting behind my Linksys router at the moment.
Here is the network layout that allows Internet access:
Internet --- Cable modem --- Linksys router --- Linux gateway --- 24 port switch --- hosts
Here is the problematic layout:
Internet --- Cable modem --- Linux gateway --- 24 port switch --- hosts
Linux gateway details:
The problem arises when I remove the Linksys from the equation and connect my Linux gateway system directly to my cable modem. I seem to lose partial connectivity... I am not able to access webpages as the browser endlessly hangs. However, I am able to ping remote hosts and get 100% replies. It's as if I have internet access but I can't make http requests.
On the Linux system, I have enabled ip_forwarding in the kernel and I have a basic iptables firewall script which enables ip masquerading/NAT. I know the firewall is functional since hosts can connect to the internet through the gateway as they should -- but only when the Linksys is in place.
I am trying to figure out what the reason is for this problem when all I am doing is connecting my Linux system directly to my cable modem. What is my Linksys doing that my Linux network card is not??
I have made sure to carefully reboot systems and services each time I make a change to the network or config files, ie: ifup, ifdown, /etc/init.d/networking restart, as well as rebooting computers, and the results are the same every time: Internet with the Linksys, no internet without. Furthermore, I have eliminated these possible causes of the problem through aggressive troubleshooting:
Peculiarities noticed:
Any input is appreciated!
Here is the network layout that allows Internet access:
Internet --- Cable modem --- Linksys router --- Linux gateway --- 24 port switch --- hosts
Here is the problematic layout:
Internet --- Cable modem --- Linux gateway --- 24 port switch --- hosts
Linux gateway details:
- eth0 - external wan device set as auto DHCP client (obtains 192.168.1.x from Linksys when connected, and obtains public IP from ISP when connected directly to modem).
- eth1 - internal network device with static IP of 172.16.0.1 and is my DHCP server nic.
The problem arises when I remove the Linksys from the equation and connect my Linux gateway system directly to my cable modem. I seem to lose partial connectivity... I am not able to access webpages as the browser endlessly hangs. However, I am able to ping remote hosts and get 100% replies. It's as if I have internet access but I can't make http requests.
On the Linux system, I have enabled ip_forwarding in the kernel and I have a basic iptables firewall script which enables ip masquerading/NAT. I know the firewall is functional since hosts can connect to the internet through the gateway as they should -- but only when the Linksys is in place.
I am trying to figure out what the reason is for this problem when all I am doing is connecting my Linux system directly to my cable modem. What is my Linksys doing that my Linux network card is not??
I have made sure to carefully reboot systems and services each time I make a change to the network or config files, ie: ifup, ifdown, /etc/init.d/networking restart, as well as rebooting computers, and the results are the same every time: Internet with the Linksys, no internet without. Furthermore, I have eliminated these possible causes of the problem through aggressive troubleshooting:
- Cable modem needs to be rebooted before connecting new network pc/other device: I do this every time and internet only works when Linksys is present
- ISP requires mac address of router or computer to be registered before it can access the internet: I checked with them and they said only a modem's mac address must be registered.
- Firewall improperly configured: 172.16.0.0 hosts can access Internet regardless of firewall, but only when Linksys is present.
- Bad Ethernet cables: I checked everything and they all work.
Peculiarities noticed:
- I can ping remote hosts and I get 100% replies, yet Firefox and IE hang endlessly upon startup.
- My little network status icon on windows tells me "internet access"
- I used two separate Windows machines and one other Linux system to ping google.com at the same time, and I noticed that I get a reply from the same IP on the Windows systems (something like 209.42.225.28) but on the Linux system I got a reply from something like 89.54.225.24. Not sure why.
Any input is appreciated!
Last edited: