gabriel rosenkoetter on Mon, 26 Aug 2002 14:13:16 -0400


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

Re: [PLUG] [OT?] OpenBSD pf rules


On Mon, Aug 26, 2002 at 12:24:50PM -0400, Fred K Ollinger wrote:
> /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

Uh... what? That doesn't make sense. That's putting everything in
the 192.168.0/24 network on one IP address; you can't do a binat
that way.

> 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)?

route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.0.2

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpBT7VuIAYqO.pgp
Description: PGP signature