Fred K Ollinger on Mon, 26 Aug 2002 18:40:10 +0200


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

[PLUG] [OT?] OpenBSD pf rules


I'm trying to use OpenBSD as a 2 way nat in my house. Here's my rules:

/etc/nat.conf

nat on sis0 from 192.168.0.2/24 to any -> 192.168.3.1
nat on dc0 from 192.168.3.1/24 to any -> 192.168.0.2

I wanted to do:

binat on sis0 from 192.168.0.2/24 to any -> 192.168.3.1

But this gives me a syntax error.

I can ping computers from the computer inside:

twain (solaris 8): 192.168.3.2 connects to dano (openbsd) 192.168.3.1
(sis0)

dano (openbsd) 192.168.0.2 (dc0) connects to underwood (debian 3)
192.168.0.1

Also, how to tell underwood that the route to 192.168.3.0 is through dano
rather than through default (ppp0)?

Sorry if this was so confusing.

Fred Ollinger (follinge@sas.upenn.edu)
CCN sysadmin


_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug