Subject: Re: turning on IP forwarding
To: Claude Marinier <claude.marinier@dreo.dnd.ca>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: netbsd-help
Date: 12/03/1998 17:02:44
On Dec 3, Marinier, M. Claude, G. wrote
> Hi all,
> 
> I have built a router/packet filter using NetBSD. I now use sysctl to turn
> on net.inet.ip.forwarding in the 'netstart' script. Is there a recommended
> place to do this? I am thinking in terms of the sequence of events at boot
> time.
> 

On some of my boxes I put it in netstart.local (which is run at the very end
of netstart). On some others I have a kernel compiled with "options GATEWAY",
which turns on ip forwarding by default. So I'd say that either at the
begining or end of netstart is ok.
If you are using ip filter, you may want to put it at the end of netstart,
so that filters are loaded before you start forwarding packets.

--
Manuel Bouyer, LIP6, Universite Paris VI.           Manuel.Bouyer@lip6.fr
--