Subject: Re: turning on IP forwarding
To: Chris G. Demetriou <cgd@netbsd.org>
From: Marinier, M. Claude, G. <claude.marinier@dreo.dnd.ca>
List: netbsd-help
Date: 12/03/1998 12:38:59
On 3 Dec 1998, Chris G. Demetriou wrote:
> 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?
I usually do config, make depend, and make. I may have missed a step.
Should I delete the directory in compile before re-building?
> 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.
Agreed.
--------------------
Claude Marinier, Information Technology Group claude.marinier@dreo.dnd.ca
Defence Research Establishment Ottawa (DREO) (613) 998-4901 FAX 998-2675
3701 Carling Avenue, Ottawa, Ontario K1A 0Z4 http://www.dreo.dnd.ca