Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Nov 1996 22:19:36 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        freebsd-hackers@freebsd.org (FreeBSD hackers)
Cc:        gurney_j@resnet.uoregon.edu, dnelson@emsphone.com (Dan Nelson)
Subject:   Re: changing default sysctl values in kernel...
Message-ID:  <199611082119.WAA06895@uriah.heep.sax.de>
In-Reply-To: <199611071534.JAA18370@dan.emsphone.com> from Dan Nelson at "Nov 7, 96 09:34:32 am"

next in thread | previous in thread | raw e-mail | index | archive | help
As Dan Nelson wrote:

> You don't want to search for GATEWAY; search for where the sysctl
> "forwarding" is linked to a kernel variable.  From /sys/netinet/ip_input.c:
> 
> static int	ipforwarding = 0;
> SYSCTL_INT(_net_inet_ip, IPCTL_FORWARDING, forwarding, CTLFLAG_RW,
> 	&ipforwarding, 0, "");
> 
> Just set ipforwarding to 1 there, and you should be set.

NOOO!

Use the variable ``gateway'' in /etc/sysconfig, don't mess with the
kernel's static variables for this.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611082119.WAA06895>