I've recently added a second nic and a sort of semi-dmz machine on a
new subnet so my gentoo box now has 2 nics with addresses:
192.168.0.4  and 192.168.1.2.  That second one was installed just to
talk to the semi-dmz machine also with 2 nics at 192.168.0.19 amd
192.168.1.1

I say semi because this is really just for my own experimentation.
I'm sending everything that hits my router/firewall (NETGEAR FVS-318) 
thru to that machine on 192.168.0.19.  Its running openbsd and PF.

I wanted it sort of isolated so my PF rules block all traffic on  
192.168.0.19 from the rest of the local network and talks only to the
incoming stuff from the netgear router.

I don't really want to go on and on into a description of this but cut
right to the chase:

Some things endup trying to use the new 192.168.1.2 address for
outgoing, like firing up a webbrowser which files since its the wrong
network. 

/etc/conf.d/net currently looks like this:

  config_eth0=( "192.168.0.4 netmask 255.255.255.0" )
  
  routes_eth0=(
     "default via 192.168.0.20"
  )
  config_eth1=( "192.168.1.2 netmask 255.255.255.0" )

I wondering if that is the reason for my troubles.  maybe I need to
add a static route for config_eth1? 

Or something else like changing the netmask to 255.255.0.0
So its all one network (192.168.0/16)

I'm a little over my head here so would like to hear from some
experienced networking people as to how to go at this.

I know how to set a static route using the route command ( I think)
but not sure how to in /etc/conf.d/net.

Just to see if I'm clear off base.
  I'm thinking something like:
  
   route add 192.168.1.1 192.168.1.2

would set a static route from gentoo 192.168.1.2 to obsd 192.168.1.1

-- 
gentoo-user@gentoo.org mailing list

Reply via email to