Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Routing
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
serrix
n00b
n00b


Joined: 23 Nov 2007
Posts: 23

PostPosted: Fri Jan 11, 2008 6:44 am    Post subject: Routing Reply with quote

Hi there,
I've got the three nics set up as below:

/etc/conf.d/net:
# WAN Link
routes_eth0=( "default via 192.168.1.1" )
config_eth0=( "192.168.1.2 broadcast 192.168.1.255 netmask 255.255.255.0" )
# LAN Link
config_eth1=( "192.168.2.1 broadcast 192.168.2.255 netmask 255.255.255.0" )
# DMZ Link
config_eth2=( "192.168.3.1 broadcast 192.168.3.255 netmask 255.255.255.0" )



Whats the correct way to set up the LAN and DMZ connections to go out to through eth0 to go online?
I'm using DNSMASQ, and need to make sure machines which get a IP lease from this machine (wether its a LAN or DMZ connection) can go through to the net too.
Thanks in advance for your help.

/etc/dnsmasq.conf:
# Configuration file for dnsmasq.
#
domain-needed
bogus-priv
filterwin2k
strict-order
local=/serrix.co.nz/
except-interface=eth0
no-dhcp-interface=eth0
expand-hosts
domain=serrix.co.nz
dhcp-range=eth1,192.168.2.50,192.168.2.150,255.255.255.0,12h
dhcp-range=eth2,192.168.3.50,192.168.3.150,255.255.255.0,12h
dhcp-host=00:08:54:4F:73:94,VMserver
dhcp-option=42,0.0.0.0
dhcp-option=23,50
dhcp-authoritative


mod edit: improved readability -- think4urs11
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Jan 11, 2008 7:50 am    Post subject: Reply with quote

please use code tags for better readability and only post relevant parts of your config (stripe ot the commented lines) - i've corrected both in your post above.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
serrix
n00b
n00b


Joined: 23 Nov 2007
Posts: 23

PostPosted: Fri Jan 11, 2008 8:42 am    Post subject: Reply with quote

Sorry and thanks :)
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