From owner-freebsd-questions Sun Nov 3 15:11:35 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 965B537B401 for ; Sun, 3 Nov 2002 15:11:34 -0800 (PST) Received: from tomts19-srv.bellnexxia.net (tomts19.bellnexxia.net [209.226.175.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 715B043E4A for ; Sun, 3 Nov 2002 15:11:33 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from xena.gsicomp.on.ca ([65.95.177.83]) by tomts19-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with ESMTP id <20021103231132.EQAS27245.tomts19-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sun, 3 Nov 2002 18:11:32 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.3/8.11.3) with SMTP id gA3NFKp28655; Sun, 3 Nov 2002 18:15:20 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <015d01c2838e$59015750$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Andrew Brampton" , References: <0a1c01c2838d$97e1cbe0$0300a8c0@andrew> Subject: Re: gateway_enable="YES" without a restart Date: Sun, 3 Nov 2002 18:11:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Hi, > I'm new to FreeBSD, I've had my box running for about 3-4 weeks now. Anyway > I've decided to enable it as a gateway by editing the /etc/rc.conf file. I > previously had it running as a gateway but I commented the > gateway_enable="YES" line. Now I want to uncomment this line so it routes my > traffic, but I don't want to actually restart my box because its got a 17 > day uptime, and I want to see how high I can get it, and the past 17 days > would of been wasted if I reboot :) > > Sorry if this sounds a bit lame, but I'm trying to beat my 21day uptime on > Windows 2k. So what command could I type, or which process could I > kill/restart so that my box will function as a gateway? sysctl -w net.inet.ip.forwarding=1 > I had a quick scan through the man page on rc.conf, but didn't find anything > of relevance, but I did find many other useful lines I might add to my > rc.conf file later (just to play around with).. > > Anyway I'll be very gratefull if someone could tell me how to keep this > uptime :) > thanks > Andrew > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message