From owner-freebsd-questions@FreeBSD.ORG Mon Apr 14 04:14:28 2003 Return-Path: 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 4ACAE37B401 for ; Mon, 14 Apr 2003 04:14:28 -0700 (PDT) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3359743F85 for ; Mon, 14 Apr 2003 04:14:27 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 1951ul-000AZW-00 for freebsd-questions@freebsd.org; Mon, 14 Apr 2003 12:14:19 +0100 Date: Mon, 14 Apr 2003 12:14:19 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20030414111419.GA40512@catflap.home.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <20030414125318.C5CC.FREEBSD@euro.net.mk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030414125318.C5CC.FREEBSD@euro.net.mk> User-Agent: Mutt/1.4i X-Scanner: exiscan *1951ul-000AZW-00*bDxj3CM2Hq.* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Subject: Re: add permanent route X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dan@slightlystrange.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Apr 2003 11:14:28 -0000 On Mon, Apr 14, 2003 at 01:01:42PM +0200, Perica Veljanovski wrote: > How do I make a "route add" permanent (meaning that the static route > will remain when I reboot) ? Something like this in /etc/rc.conf will work: static_routes="example" route_example="-net 10.0.0.0 192.168.7.2" Any traffic for 10.0.0.0/8 goes out through 192.168.7.2. Using this alias format, you can add as many static routes as you need. > How do I set "sysctl net.inet.ip.forwarding=1" in the kernel? I cant > seem to find the the option to set ip.forwarding in the kernel. You can either set "gateway_enable=yes" in /etc/rc.conf, or put the following in /etc/sysctl.conf: net.inet.ip.forwarding=1 /etc/sysctl.conf is read as the machine goes multi-user, and can be used to configure many sysctls. HTH, Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \