View previous topic :: View next topic |
Author |
Message |
serrix n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Nov 2007 Posts: 23
|
Posted: Fri Jan 11, 2008 6:44 am Post subject: Routing |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Fri Jan 11, 2008 7:50 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
serrix n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Nov 2007 Posts: 23
|
Posted: Fri Jan 11, 2008 8:42 am Post subject: |
|
|
Sorry and thanks ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|