From owner-freebsd-questions Sun Nov 3 15:22:51 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 E97DB37B401 for ; Sun, 3 Nov 2002 15:22:49 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8E1943E4A for ; Sun, 3 Nov 2002 15:22:48 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gA3NMhMO013740 for ; Sun, 3 Nov 2002 23:22:43 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gA3NMcR7013735 for freebsd-questions@FreeBSD.ORG; Sun, 3 Nov 2002 23:22:38 GMT Date: Sun, 3 Nov 2002 23:22:38 +0000 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: gateway_enable="YES" without a restart Message-ID: <20021103232238.GA13488@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <0a1c01c2838d$97e1cbe0$0300a8c0@andrew> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0a1c01c2838d$97e1cbe0$0300a8c0@andrew> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-14.7 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03, USER_AGENT,USER_AGENT_MUTT version=2.41 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 On Sun, Nov 03, 2002 at 11:06:04PM -0000, Andrew Brampton wrote: > 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 net.inet.ip.forwarding=1 That, and appropriate entries in your routing tables are all you need to make your machine route packets between interfaces. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message