Click to See Complete Forum and Search --> : connecting two networks.


mikieikie
09-06-2002, 09:05 AM
well here it goes... i use roadrunner cable and i connect the 3com cable modem to a linksys 4 port switch/router. With 4 computers running off of it. 3 are windoze comps and 1 is a linux server/router. The ip of this network is 192.168.1.*

thats the first network :)

the second network runs off my linux server box. It has 3 windoze computers linked to it through a switch. The IP of this network is 192.168.0.*

My problem is that my network through my linux box can ping that of my linksys router (192.168.0.* can ping 192.168.1.*), but the computers connected to my linksys router cannot ping the comps linked to my linux box. What can i do? i tried adding lines to my ipchains but that didn't werk. (-A forward -i eth1 -s 192.168.1.1/24 -d 0.0.0.0/0 -j MASQ).

please help.

Pilutak
09-06-2002, 01:52 PM
Have you look at the /etc/sysconfig/network file?

FORWARD_IPV4="yes/no"

if it is "no" then change it to "yes"

and in /etc/sysctl.conf set

net.ipv4.ip_forward=1

/etc/sysctl.conf sets the default behavior but /etc/sysconfig/network
will override it.

I think the it will fix the problem of yours, correct me if I'm wrong.

good luck

Pilutak

mikieikie
09-06-2002, 04:40 PM
yes i have already had that in my /etc/sysconfig/network as well as my /etc/sysctl.conf. I have no clue what to do from there. I have already changed/modified /etc/sysconfig/ipchains as well as changed/modified my /etc/resolv.conf and my /etc/hosts

please help

mikieikie
09-06-2002, 04:45 PM
i dunno if this helps but this is my route -n

Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo

0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

thanx for all ur help :)

jumpedintothefire
09-07-2002, 05:07 PM
Give this a spin...

-A forward -i eth1 -b -s 192.168.1.0/24 -d 192.168.0/24 -j ACCEPT

-A forward -i eth0 -b -d 192.168.1.0/24 -d 192.168.0/24 -j ACCEPT

-A forward -i eth0 -s 192.168.0.0/24 -d ! 192.168.1.0/24 -j MASQ