[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
IPNAT problem (localnetwork to internet through OpenBSD)
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: IPNAT problem (localnetwork to internet through OpenBSD)
- From: "Kasper Andersen" <baney_(_at_)_hotmail_(_dot_)_com>
- Date: Tue, 14 Sep 1999 17:11:35 GMT
I am new to OpenBSD and am currently trying to use 2.5 (on an i386 with one
network card) as NAT for my local machine (192.168.1.2).
The default gateway(0.0.0.0 mask 0.0.0.0) of my local machine is equal to
the network card ip(interface vr0) of my OpenBSD machine (a perm one I got
from my isp, lets call it "ip.of.openbsd.card").
I also have tried ipalias for the vr0 interface: 192.168.1.1, but it doesnt
seem to have any effect if i use that as default gateway for my local
Problem: I cant ping anything from my local machine. On the OpenBSD box I
get this error:
"arplookup: unable to enter address for 192.168.1.2"
The "ipmon -o N" gives an output something like:
14/09/1999 20:56:31.176600 @1 NAT:MAP 192.168.1.2,1057 <- ->
ip.of.openbsd.card,40035 [default route ip of my vr0]
The NAT rules are
map vr0 192.1.0/24 -> ip.of.openbsd.card/32 portmap tcp/udp 4000:65000
map vr0 192.1.0/24 -> ip.of.openbsd.card/32
The ipfilter rules are (for testing only):
pass in from any to any
pass out from any to any
The kernel is compiled with GATEWAY and the sysctl setting of ipforwarding
The "route show" on OpenBSD box shows the default gateway to be the gateway
i got from my ISP, i.e. I can ping and see the world from my OpenBSD box.
I am stuck, and I would appreciate any suggestions for help. I searched the
archives for arplookup and didnt find anything. I hope you guys can help me.
Get Your Private, Free Email at http://www.hotmail.com