gabriel rosenkoetter on Mon, 26 Aug 2002 15:23:10 -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 02:26:32PM -0400, Fred K Ollinger wrote:
> 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? :)

No, I don't. Either you want to map every single address in 192.168.0/24
into 192.168.3/24 (this looks like what you're trying to say, though
I don't think it's what you want), or you want to NAT 192.168.0.2/32 into
192.168.3.0/24. Either way, I don't think it's necessary; static
routing on both endpoints should be all that you need, since the
OpenBSD machine is attached to both networks directly.

If you don't want to use static routes, then go learn about rip. :^>

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

I'd put it in /etc/rc.local, but I'm using NetBSD (where route(8) 
syntax is subtly different, so that exact command line wouldn't
work). RedHat has some specific place under /etc/sysconfig where it
keeps static routes and rc(8) parses that file at boot and runs
route accordingly. I don't know what Debian does.

-- 
gabriel rosenkoetter
gr@eclipsed.net

Attachment: pgpQGE7uY3MnO.pgp
Description: PGP signature