I am running IPCop 1.4.10 as my main router (192.168.1.1) and gateway to the internet. I am trying to setup a second router which is Brazilfw 2.26 (192.168.2.1) and I am having all sorts of trouble getting the two routers to ping properly when I disable NAT. I disabled NAT because I would like to be able to cross the networks similar to a VLAN (connecting through a UNC share and ping the IPs in the other network). When using NAT, this is not possible.
OK, on the main IPCop router which has an IP of 192.168.1.1 I have this in the rc.local file:
#Static Route for BrazilFW router
/sbin/route add -net 192.168.2.0 netmask 255.255.255.0 dev eth0
And these are the current routes for the IPCop router:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
24.148.144.128 * 255.255.255.128 U 0 0 0 eth1
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default user-0c99441.ca 0.0.0.0 UG 0 0 0 eth1
On the BrazilFW router (192.168.2.1), I have nothing added to the rc.local file yet but I temporarily added routes using the route add command and this is the current routing table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
As for my results, well, I have none really. The BrazilFW router can ping ANY IP (inside or outside of BrazilFW router and any internet IP address). But none of the clients can ping anything other than what's behind the BrazilFW router. I am confused on how to get this to work properly. =(
Can anyone suggest anything?
OK, on the main IPCop router which has an IP of 192.168.1.1 I have this in the rc.local file:
#Static Route for BrazilFW router
/sbin/route add -net 192.168.2.0 netmask 255.255.255.0 dev eth0
And these are the current routes for the IPCop router:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
24.148.144.128 * 255.255.255.128 U 0 0 0 eth1
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default user-0c99441.ca 0.0.0.0 UG 0 0 0 eth1
On the BrazilFW router (192.168.2.1), I have nothing added to the rc.local file yet but I temporarily added routes using the route add command and this is the current routing table:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth1
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth1
As for my results, well, I have none really. The BrazilFW router can ping ANY IP (inside or outside of BrazilFW router and any internet IP address). But none of the clients can ping anything other than what's behind the BrazilFW router. I am confused on how to get this to work properly. =(
Can anyone suggest anything?