1 |
I've recently added a second nic and a sort of semi-dmz machine on a |
2 |
new subnet so my gentoo box now has 2 nics with addresses: |
3 |
192.168.0.4 and 192.168.1.2. That second one was installed just to |
4 |
talk to the semi-dmz machine also with 2 nics at 192.168.0.19 amd |
5 |
192.168.1.1 |
6 |
|
7 |
I say semi because this is really just for my own experimentation. |
8 |
I'm sending everything that hits my router/firewall (NETGEAR FVS-318) |
9 |
thru to that machine on 192.168.0.19. Its running openbsd and PF. |
10 |
|
11 |
I wanted it sort of isolated so my PF rules block all traffic on |
12 |
192.168.0.19 from the rest of the local network and talks only to the |
13 |
incoming stuff from the netgear router. |
14 |
|
15 |
I don't really want to go on and on into a description of this but cut |
16 |
right to the chase: |
17 |
|
18 |
Some things endup trying to use the new 192.168.1.2 address for |
19 |
outgoing, like firing up a webbrowser which files since its the wrong |
20 |
network. |
21 |
|
22 |
/etc/conf.d/net currently looks like this: |
23 |
|
24 |
config_eth0=( "192.168.0.4 netmask 255.255.255.0" ) |
25 |
|
26 |
routes_eth0=( |
27 |
"default via 192.168.0.20" |
28 |
) |
29 |
config_eth1=( "192.168.1.2 netmask 255.255.255.0" ) |
30 |
|
31 |
I wondering if that is the reason for my troubles. maybe I need to |
32 |
add a static route for config_eth1? |
33 |
|
34 |
Or something else like changing the netmask to 255.255.0.0 |
35 |
So its all one network (192.168.0/16) |
36 |
|
37 |
I'm a little over my head here so would like to hear from some |
38 |
experienced networking people as to how to go at this. |
39 |
|
40 |
I know how to set a static route using the route command ( I think) |
41 |
but not sure how to in /etc/conf.d/net. |
42 |
|
43 |
Just to see if I'm clear off base. |
44 |
I'm thinking something like: |
45 |
|
46 |
route add 192.168.1.1 192.168.1.2 |
47 |
|
48 |
would set a static route from gentoo 192.168.1.2 to obsd 192.168.1.1 |
49 |
|
50 |
-- |
51 |
gentoo-user@g.o mailing list |