Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2001 12:23:04 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        Vincent Chen <vctw@yahoo.com>
Cc:        FreeBSD maillist <freebsd-questions@FreeBSD.ORG>
Subject:   Re: policy route on freebsd
Message-ID:  <20011221122304.D52970@sunbay.com>
In-Reply-To: <20011221101049.63842.qmail@web20009.mail.yahoo.com>
References:  <20011221101049.63842.qmail@web20009.mail.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <client>
> <website> in via ed0
> /kernel: ipfw: 2100 Forward to ras2 TCP <client>
> <website> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011221122304.D52970>