LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index -> Operating Systems » OS - Linux
Author Message
hummer010
Moderator
Moderator


Joined: 02 Nov 2000
Age: 32
Posts: 4607
Location: Right here!

Post Posted: Fri May 18, 2001 10:05 am   Post subject: Reply with quote Back to top  

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!
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!