hummer010
Moderator


Joined: 02 Nov 2000 Age: 32 Posts: 4636
Location: Right here!
|
Posted:
Fri May 18, 2001 10:05 am Post subject: |
|
I have an old 486DX100 with redhat 6.2 installed on it. I am trying to set it up as my gateway/router with a @home on my network. Redhat set's up eth0 to use pump for the DHCP cable connection, which is fine. During boot it sets up the eth0 interface just fine. Once booted I can ping anyone, it works just fine.
After that I set up my eth1 using
ifconfig eth1 192.168.0.1 netmask 255.255.255.0 up
After this I can ping any computer on my network, as well as pinging any computer on the net. I don't really know what I am doing past this point, so I am just going on an article in maximum linux. To set up the IP masquerading I use the following lines
route add -host 192.168.0.1 eth1
route add -net 192.168.0.0 netmask 255.255.255.0 eth1
route add default gw 192.168.0.1 eth1
echo 1 > /proc/sys/net/ipv4/ip_forward
ipchains -M -S 7200 10 60
ipchains -P forward DENY
ipchains -A forward -s 195.195.195.0/8 -j MASQ
After doing this, I can't ping anything except computers on my network, which also cannot ping anything on the net. The line which seems to cause the problem is the line to add a default gateway. If I leave that line out, I can ping anything I want from the linux box, but the computers on the network cannot reach the internet.
Another problem, if I add the line
ifconfig eth1 192.168.0.1 netmask 255.255.255.0 up
to my setup script(rc.sysinit) then eth0 does not initialize correctly, and my dhcp connection fails.
Help????
Edited by - hummer010 on 05/18/2001 14:06:26 |
_________________ ---------------------------
Where are you?
...remember second place is really only first loser!
|
|