Subject: Re: turning on IP forwarding
To: Claude Marinier <claude.marinier@dreo.dnd.ca>
From: Chris G. Demetriou <cgd@netbsd.org>
List: netbsd-help
Date: 12/03/1998 09:16:15
claude.marinier@dreo.dnd.ca (Marinier, M. Claude, G.) writes:
> This confirms that I need both the option set in the kernel and to set the
> bit at boot time with sysctl.

did you actually completely rebuild the kernel, or just config it with
options gateway and re-make?

The behaviour of the GATEWAY option is (in 1.3-branch and -current):

#ifndef IPFORWARDING
#ifdef GATEWAY
#define IPFORWARDING    1       /* forward IP packets not for us */
#else /* GATEWAY */
#define IPFORWARDING    0       /* don't forward IP packets not for us
#*/
#endif /* GATEWAY */
#endif /* IPFORWARDING */
[ ... ]
int     ipforwarding = IPFORWARDING;


so if you turn on GATEWAY, you really should _not_ need to sysctl
net.inet.ip.forwarding.

cgd
-- 
Chris Demetriou - cgd@netbsd.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.