Date: Sun, 27 Oct 2002 09:50:39 -0800 (PST) From: Julian Elischer <julian@elischer.org> To: Baldur Gislason <baldur@foo.is> Cc: neil@mpfreescene.com, freebsd-net@freebsd.org Subject: Re: Freebsd multiple gateways Message-ID: <Pine.BSF.4.21.0210270946210.13443-100000@InterJet.elischer.org> In-Reply-To: <20021027171739.DF666AB93@tesla.foo.is>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0210270946210.13443-100000>