From owner-freebsd-net Sun Oct 27 10: 0:29 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB98037B401 for ; Sun, 27 Oct 2002 10:00:28 -0800 (PST) Received: from InterJet.elischer.org (12-232-206-8.client.attbi.com [12.232.206.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AB1E43E88 for ; Sun, 27 Oct 2002 10:00:28 -0800 (PST) (envelope-from julian@elischer.org) Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id JAA18667; Sun, 27 Oct 2002 09:50:40 -0800 (PST) Date: Sun, 27 Oct 2002 09:50:39 -0800 (PST) From: Julian Elischer To: Baldur Gislason Cc: neil@mpfreescene.com, freebsd-net@freebsd.org Subject: Re: Freebsd multiple gateways In-Reply-To: <20021027171739.DF666AB93@tesla.foo.is> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Sun, 27 Oct 2002, Baldur Gislason wrote: > The solution is simple. > Compile your kernel with: > options IPFW2 > options IPFIREWALL > options IPFIREWALL_DEFAULT_TO_ACCEPT > options IPFIREWALL_FORWARD > > Then, sysctl net.inet.ip.sourceroute=1 I'm not sure you need this last line,, and options ipfw2 is ok but it should work with the old ipfw too. > Finally: > ipfw add fwd 69.1.78.1 ip from 69.1.78.8 to not 69.1.78.8 > and you should have a working route from 69.1.78.1 you might also ad dthe key word 'out' ipfw add fwd 69.1.78.1 ip from 69.1.78.8 to not 69.1.78.8 out as you only want it to be done on outgoing packets. Alternatively you could get a bgp feed from your ISPs and run gated. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message