Date: Fri, 21 Dec 2001 09:43:44 -0600 (CST) From: Nick Rogness <nick@rogness.net> To: Vincent Chen <vctw@yahoo.com> Cc: FreeBSD maillist <freebsd-questions@FreeBSD.ORG> Subject: Re: policy route on freebsd Message-ID: <Pine.BSF.4.21.0112210938440.48988-100000@cody.jharris.com> In-Reply-To: <20011221101049.63842.qmail@web20009.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 21 Dec 2001, Vincent Chen wrote: > > Dear all, > > I am trying to setup policy route on freebsd but failed. There are 2 > point to point link in my network. > > ADSL: (tun0) wan1 -> ras1 > Dialup: (tun1) wan2 -> ras2 > > subnet 1: 10.1.1.0/24 > subnet 2: 10.1.2.0/24 > > subnet 1 should use ADSL and subnet 2 use dialup. Both > subnet will access outside by NAT. > > After ADSL link up, it will create a default route. Dialup link won't > create default route entry. I add this firewall rule: > > 2100 fwd log ras2 ip from 10.1.2.0/24 to any ^ fwd where? You need an IP here. Ex: 2100 fwd $TUN2_IP_GW ip from 10.1.2.0/24 to any out tun0. This rule will have to go BEFORE the natd rule. Nick Rogness <nick@rogness.net> - Keep on Routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" 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.0112210938440.48988-100000>