View previous topic :: View next topic |
Author |
Message |
divined Apprentice
Joined: 23 Jul 2004 Posts: 165
|
Posted: Thu Jul 12, 2007 7:43 am Post subject: Routing problem with standard two network interface |
|
|
Hello everybody
I`ve got this problem. I want to set up a two network interface route between my internal and external network. My ISP has given me the following data :
Code: |
IP RANGE : 10.41.20.9 to 10.41.23.254
SUBNET MASK : 255.255.252.0
default gateway : 10.41.20.1
|
So I proceeded to set up my /etc/conf.d/net as follows :
Code: |
config_eth0=("10.41.20.100 netmask 255.255.255.0 broadcast 10.41.20.255")
routes_eth0=( "default via 10.41.20.1")
dhcp_eth0="nodns"
config_eth1=("10.41.22.200 netmask 255.255.255.0 broadcast 10.41.22.255")
dhcp_eth1="nodns"
|
So the external interface is eth0 and the internal is eth1.
I also use shorewall to setup some firewall rules. The problem is that routing between any pc sitting on the internal network (eth1) and the external network (eth0) does not work correctly.
Shorewall is not the problem since the problem persists after a shorewall clear command. Am I missing something here? |
|
Back to top |
|
|
lma1980 Tux's lil' helper
Joined: 25 Sep 2005 Posts: 78
|
Posted: Thu Jul 12, 2007 1:46 pm Post subject: |
|
|
Have you actived the routing support for that station : echo 1 >/proc/sys/net/ipv4/ip_forward
There is a file within your /etc that will presever this setting so that it will be routing from startup.
If it doesn't change anything you will have to give us little more information : routing table (route) and iptables -vL output may also help. _________________ "... before that, there was amoebas..." |
|
Back to top |
|
|
|