NegativeZERO
11-25-2002, 04:08 AM
What I'm tryng to do is set up my RH 7.3 box as a gateway/firewall server for the rest of my lan. After I get all of this configured I'm going to set up a httpd and ftpd services as well.
The problem I'm having is I cant ping any thing out side of my lan. I can ping my internal router/hub and all the boxes on my network. One XP machine, one Win2k Machine, and a RedHat 8.0 desktop. I can ping every single box in my network and they can ping and get a reply back just fine from the gateway/firewall box I'm setting up.
I have eth0 set for my internal network, and eth1 for the external connection to my aDSL.
I have set up IPChains as the firewall, and have enabled IPMasquing by folowing the NHF at this site as well as reading a firewall howto. But I still cant get the firewall/gateway to talk to the out side world.
Here is how I have the RH 7.3 box set up in the networking files.
/etc/sysconfig/network
NETWORKING=yes
GATEWAYDEV=""
HOSTNAME=ns-network.uni.ccr
GATEWAY="209.152.79.x"
/etc/sysconfig/network-scripts/eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0
ONBOOT=yes
/etc/sysconfig/network-scripts/eth1
BROADCAST=192.168.0.255
DEVICE=eth1
NETMASK=255.255.255.0
IPADDR=209.152.79.xxx
NETWORK=209.152.79.0
ONBOOT=yes
BOOTPROTO=none
I get this when I do a route -n as root
rout -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
209.152.79.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
The howto I was reading had one other entry in the route table, it had a default part in it. Here is a copy of the route table in the firewall howto I was working from.
#route -n
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
24.94.1.0 * 255.255.255.0 U 1500 0 15 eth0
192.168.1.0 * 255.255.255.0 U 1500 0 0 eth1
127.0.0.0 * 255.0.0.0 U 3584 0 2 lo
default 24.94.1.123 * UG 1500 0 72 eth0
The part I'm missing is the default section out of the routing table. Does this default section tell where the main gateway is for the box I'm trying to set up, or is this no big deal for me at all. Also do I need to set the gateway of my internal NIC eth0 to the IP of my external NIC so it knows where to look and send my internal request to the out side world? I would think this would only hinder the internal traffic not knowing where to go to get out of my lan. But even using the gateway/firewall box I'm setting up after setting it like that I cant ping any thing out of my lan, or any thing inside of it at all.
I sure hope some one can help me figure out what my problem is. If you need any more info let me know.
Thanks for the help!
NegativeZERO
The problem I'm having is I cant ping any thing out side of my lan. I can ping my internal router/hub and all the boxes on my network. One XP machine, one Win2k Machine, and a RedHat 8.0 desktop. I can ping every single box in my network and they can ping and get a reply back just fine from the gateway/firewall box I'm setting up.
I have eth0 set for my internal network, and eth1 for the external connection to my aDSL.
I have set up IPChains as the firewall, and have enabled IPMasquing by folowing the NHF at this site as well as reading a firewall howto. But I still cant get the firewall/gateway to talk to the out side world.
Here is how I have the RH 7.3 box set up in the networking files.
/etc/sysconfig/network
NETWORKING=yes
GATEWAYDEV=""
HOSTNAME=ns-network.uni.ccr
GATEWAY="209.152.79.x"
/etc/sysconfig/network-scripts/eth0
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0
ONBOOT=yes
/etc/sysconfig/network-scripts/eth1
BROADCAST=192.168.0.255
DEVICE=eth1
NETMASK=255.255.255.0
IPADDR=209.152.79.xxx
NETWORK=209.152.79.0
ONBOOT=yes
BOOTPROTO=none
I get this when I do a route -n as root
rout -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
209.152.79.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
The howto I was reading had one other entry in the route table, it had a default part in it. Here is a copy of the route table in the firewall howto I was working from.
#route -n
Kernel routing table
Destination Gateway Genmask Flags MSS Window Use Iface
24.94.1.0 * 255.255.255.0 U 1500 0 15 eth0
192.168.1.0 * 255.255.255.0 U 1500 0 0 eth1
127.0.0.0 * 255.0.0.0 U 3584 0 2 lo
default 24.94.1.123 * UG 1500 0 72 eth0
The part I'm missing is the default section out of the routing table. Does this default section tell where the main gateway is for the box I'm trying to set up, or is this no big deal for me at all. Also do I need to set the gateway of my internal NIC eth0 to the IP of my external NIC so it knows where to look and send my internal request to the out side world? I would think this would only hinder the internal traffic not knowing where to go to get out of my lan. But even using the gateway/firewall box I'm setting up after setting it like that I cant ping any thing out of my lan, or any thing inside of it at all.
I sure hope some one can help me figure out what my problem is. If you need any more info let me know.
Thanks for the help!
NegativeZERO