From owner-freebsd-hackers Thu Nov 7 14:43:32 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id OAA22905 for hackers-outgoing; Thu, 7 Nov 1996 14:43:32 -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 OAA22883 for ; Thu, 7 Nov 1996 14:43:23 -0800 (PST) Received: from dan.emsphone.com (-@dan.emsphone.com [199.67.51.101]) by who.cdrom.com (8.7.5/8.6.11) with ESMTP id HAA16816 for ; Thu, 7 Nov 1996 07:34:40 -0800 (PST) Received: (from dan@localhost) by dan.emsphone.com (8.7.5/8.7.3) id JAA18370; Thu, 7 Nov 1996 09:34:32 -0600 (CST) Message-Id: <199611071534.JAA18370@dan.emsphone.com> Date: Thu, 7 Nov 1996 09:34:32 -0600 From: dnelson@emsphone.com (Dan Nelson) To: gurney_j@resnet.uoregon.edu (John-Mark Gurney) Cc: danny@panda.hilink.com.au (Daniel O'Callaghan), hackers@freebsd.org (FreeBSD Hackers) Subject: Re: changing default sysctl values in kernel... References: X-Mailer: Mutt 0.49 Mime-Version: 1.0 In-Reply-To: ; from "John-Mark Gurney" on Nov 7, 1996 03:24:01 -0800 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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. -Dan Nelson dnelson@emsphone.com