From owner-freebsd-questions Fri Dec 21 2:10:52 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web20009.mail.yahoo.com (web20009.mail.yahoo.com [216.136.225.72]) by hub.freebsd.org (Postfix) with SMTP id 114D337B417 for ; Fri, 21 Dec 2001 02:10:50 -0800 (PST) Message-ID: <20011221101049.63842.qmail@web20009.mail.yahoo.com> Received: from [61.223.9.207] by web20009.mail.yahoo.com via HTTP; Fri, 21 Dec 2001 02:10:49 PST Date: Fri, 21 Dec 2001 02:10:49 -0800 (PST) From: Vincent Chen Subject: policy route on freebsd To: FreeBSD maillist 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 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? 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