From owner-freebsd-questions Fri Dec 21 2:24:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 4604037B419 for ; Fri, 21 Dec 2001 02:24:34 -0800 (PST) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.6/8.11.2) id fBLAN4f65269; Fri, 21 Dec 2001 12:23:04 +0200 (EET) (envelope-from ru) Date: Fri, 21 Dec 2001 12:23:04 +0200 From: Ruslan Ermilov To: Vincent Chen Cc: FreeBSD maillist Subject: Re: policy route on freebsd Message-ID: <20011221122304.D52970@sunbay.com> References: <20011221101049.63842.qmail@web20009.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20011221101049.63842.qmail@web20009.mail.yahoo.com> User-Agent: Mutt/1.3.23i 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, Dec 21, 2001 at 02:10:49AM -0800, 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 > > I got the following log entry: > > /kernel: ipfw: 2100 Forward to ras2 TCP > in via ed0 > /kernel: ipfw: 2100 Forward to ras2 TCP > out via tun0 > > > Why the traffic go through tun0 not tun1? Modem light > flash for a while and I got something but never a > complete page. Any idea? > ``route -vn get -host ras2'' returns tun0 as an IFP? Make sure that the routing table entry for ras2 exists and points to the tun1 interface. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message