[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gateway setup
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: gateway setup
- From: vg5v-fdhu_(_at_)_xemaps_(_dot_)_com
- Date: Wed, 28 May 2003 09:21:46 -0400
>I have installed an openbsd server with 3 NIC's as shown below
>184.108.40.206 connected to router 220.127.116.11
>18.104.22.168 connected to DMZ (22.214.171.124 -126.96.36.199)
>192.168.100.254 connected to local net 192.168.100.0/24
>My problem is if i am using 188.8.131.52 (router i.p ) as my gateway I can
>ping to outside from the server. But if I am using 184.108.40.206 as my
>gateway(connected to router) I cannot ping out side. How can I make
>220.127.116.11 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
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.
Visit your host, monkey.org