From owner-freebsd-questions Fri Dec 21 7:44:20 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id BE4EE37B405 for ; Fri, 21 Dec 2001 07:44:17 -0800 (PST) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id fBLFhiM49047; Fri, 21 Dec 2001 09:43:44 -0600 (CST) (envelope-from nick@rogness.net) Date: Fri, 21 Dec 2001 09:43:44 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Vincent Chen Cc: FreeBSD maillist Subject: Re: policy route on freebsd In-Reply-To: <20011221101049.63842.qmail@web20009.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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 - 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