From owner-freebsd-hackers Thu Nov 7 14:42:55 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA22791 for hackers-outgoing; Thu, 7 Nov 1996 14:42:55 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA22781 for ; Thu, 7 Nov 1996 14:42:51 -0800 (PST) Received: from nike.efn.org (resnet.uoregon.edu [128.223.170.28]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id HAA16842 for ; Thu, 7 Nov 1996 07:42:08 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by nike.efn.org (8.7.5/8.7.3) with SMTP id HAA06957; Thu, 7 Nov 1996 07:41:42 -0800 (PST) Date: Thu, 7 Nov 1996 07:41:35 -0800 (PST) From: John-Mark Gurney X-Sender: jmg@nike Reply-To: John-Mark Gurney To: Dan Nelson cc: "Daniel O'Callaghan" , FreeBSD Hackers Subject: Re: changing default sysctl values in kernel... In-Reply-To: <199611071534.JAA18370@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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)