Date: Thu, 7 Nov 1996 07:41:35 -0800 (PST) From: John-Mark Gurney <jmg@nike.efn.org> To: Dan Nelson <dnelson@emsphone.com> Cc: "Daniel O'Callaghan" <danny@panda.hilink.com.au>, FreeBSD Hackers <hackers@freebsd.org> Subject: Re: changing default sysctl values in kernel... Message-ID: <Pine.NEB.3.95.961107074028.352L-100000@nike> In-Reply-To: <199611071534.JAA18370@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 7 Nov 1996, Dan Nelson wrote: > In the last eposode (Nov 7), John-Mark Gurney said: > > On Thu, 7 Nov 1996, Daniel O'Callaghan wrote: > > > On Wed, 6 Nov 1996, John-Mark Gurney wrote: > > > > well... the subject says it all... I have a server that is > > > > designed to be a terminal server... and I would like a way to > > > > compile a kernel with the default of net.inet.ip.forwarding: 1... > > > > instead of 0... will allow me to not have sysctl on the > > > > machine... thanks for your help... ttyl.. > > > > > > Just put > > > options GATEWAY > > > in your kernel config file. > > > > I just did a search through the kernel source (960801-SNAP) and the > > only place I found anything referencing GATEWAY was in some files in > > i386/boot/... other than that nothing... ttyl.. > > 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. ahh... thanks... I just decided that I still wanted my other kernels to build fine... so I reimplimented GATEWAY :) thanks for the pointer... ttyl... John-Mark gurney_j@efn.org http://resnet.uoregon.edu/~gurney_j/ Modem/FAX: (541) 683-6954 (FreeBSD Box) Live in Peace, destroy Micro$oft, support free software, run FreeBSD (unix)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.961107074028.352L-100000>