Fred K Ollinger on Mon, 26 Aug 2002 14:28:19 -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.

Well, there I go. I knew there was something wrong.

Can you please explain how to do this properly, please? Do you understand
what I want to do? :)

> route add -net 192.168.3.0 netmask 255.255.255.0 gw 192.168.0.2

You rock. Now where to put this so it works upon startup in debian 3.0?

Thanks for the help.

Fred

_________________________________________________________________________
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