Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2001 02:10:49 -0800 (PST)
From:      Vincent Chen <vctw@yahoo.com>
To:        FreeBSD maillist <freebsd-questions@FreeBSD.ORG>
Subject:   policy route on freebsd
Message-ID:  <20011221101049.63842.qmail@web20009.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help

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?



Thanks,

Vincent Chen



__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

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?20011221101049.63842.qmail>