Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Routing problem with standard two network interface
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
divined
Apprentice
Apprentice


Joined: 23 Jul 2004
Posts: 165

PostPosted: Thu Jul 12, 2007 7:43 am    Post subject: Routing problem with standard two network interface Reply with quote

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
View user's profile Send private message
lma1980
Tux's lil' helper
Tux's lil' helper


Joined: 25 Sep 2005
Posts: 78

PostPosted: Thu Jul 12, 2007 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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