We are using RedHat Linux 5.0 on an Intel box as a dual-homed firewall.
The machine has one network card connected to our internal network, and
the other connected to a cable modem that connects us to the Net. The
server is running the latest version of socks5, and the PC's on our
internal network are running sockscap32.
Everything had been working fine, but sometime since the server was last
rebooted (2 months ago) our static routing table got changed. (I
suspect that one of our power users ran the netcfg utility and
inadvertantly caused /etc/sysconfig files to be modified.) Here's what
happens: machines on the internal network can access the Linux box.
These same machines can access the outside world through the linux box
using sockscap32/socks5. The linux box can ping machines on the
internal network and the Internet. The problem is the linux box cannot
access ITSELF. If you are logged into the server, and you attempt to
access the server itself with any standard network services (ie. ping,
telnet, ftp, etc.) you get "Network unreachable" errors. The real
problem with this weirdness is that if you try to access the pop3/http
services on the linux box from the internal network using socksified
applications, the access attempts fail, since the request goes from the
PC to socks5 on the server, which then tries to direct the request to
the server itself, and poof - Network unreachable. I'm sure it's
related to the fact that there are two network cards in the machine (and
thus multiple interfaces). BTW packet forwarding is disabled (a
requirement by our network's ISP). Everything had been working before
we rebooted the machine and the changes to networking files kicked in.
Here is our /etc/sysconfig/static-routes file with IP's changed to
words:
eth0 net 0.0.0.0 netmask 255.255.255.0 gw EXTERNALROUTER
eth0 net EXTERNALNET netmask 255.255.255.0 gw EXTERNALROUTER
eth1 net INTERNALNET netmask 255.255.255.0 gw INTERNALROUTER
eth1 net SISTERNET netmask 255.255.255.0 gw INTERNALROUTER
eth1 net 0.0.0.0 netmask 255.255.255.0 gw EXTERNALROUTER
"eth0" is the NIC that is connected to our cable modem to provide the
Internet connection. "eth1" is connected to the internal network.
SISTERNET is a second subnet that we are connected to with a T1. I know
there's probably a dumb mistake in the static-routes file, and if
someone could enlighten me I'd appreciate it.
-Terry