From owner-freebsd-net@FreeBSD.ORG Wed Oct 25 23:46:45 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C084116A412 for ; Wed, 25 Oct 2006 23:46:45 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from koef.zs64.net (koef.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24D3844727 for ; Wed, 25 Oct 2006 23:46:44 +0000 (GMT) (envelope-from stb@lassitu.de) Received: (from stb@koef.zs64.net) (authenticated) by koef.zs64.net (8.13.8/8.13.8) with ESMTP id k9PNkf2t004751 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 26 Oct 2006 01:46:42 +0200 (CEST) (envelope-from stb@lassitu.de) In-Reply-To: <45391895.8010507@tnetus.com> References: <45391895.8010507@tnetus.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <349CA351-5E6B-402D-9D18-B35CDA9C88FC@lassitu.de> Content-Transfer-Encoding: 7bit From: Stefan Bethke Date: Thu, 26 Oct 2006 01:46:40 +0200 To: Brian Hawk X-Mailer: Apple Mail (2.752.2) Cc: freebsd-net@freebsd.org Subject: Re: Gateway problem X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 23:46:45 -0000 Am 20.10.2006 um 20:42 schrieb Brian Hawk: > tun0 and ADSL is the default gateway. But the TCP packets are bound > to 212.64.212.180 IP address which should send them out thru xl1. > But it doesn't. That is correct. The routing table will only consider the destination address when deciding which route (and thereby which interface) a packet should traverse. You will need to use IPFW, pf, or similiar to force packets originating on your xl0's address (212.64.212.180) to go to the router on that network instead of to the default routes gateway/ interface. Stefan -- Stefan Bethke Fon +49 170 346 0140