[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gateway setup



>Hi,
>I have installed an openbsd server with 3 NIC's as shown below
>210.212.236.97 connected to router 210.212.236.105 
>210.212.236.113 connected to DMZ (210.212.236.100 -210.212.236.115)
>192.168.100.254 connected to local net 192.168.100.0/24
>...
>My problem is if i am using 210.212.236.105 (router i.p ) as my gateway I can 
>ping to outside from the server. But if I am using 210.212.236.97 as my 
>gateway(connected to router) I cannot ping out side. How can I make 
>210.212.236.97 as the router for my entire network ?

Strictly speaking, you can't.  Think of the gateway as "the next hop".  
If you specify the 210.foo.bar.97 address as the gateway on the OBSD server, 
it tries to send all outbound packets to itself and they never leave the 
network.  The gateway on the OBSD box would correctly be the 210.foo.bar.105
address.

In my network setup, the gateway for all of the clients is the IP of the NIC 
that is facing that client.  So in your example, the gateway IP for the DMZ 
machines would be 210.foo.bar.113 and for the local net 192.168.100.254.


--Tony