From owner-freebsd-net@FreeBSD.ORG Thu Nov 15 14:46:52 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6317216A418 for ; Thu, 15 Nov 2007 14:46:52 +0000 (UTC) (envelope-from brian@tnetus.com) Received: from k2smtpout05-02.prod.mesa1.secureserver.net (k2smtpout05-02.prod.mesa1.secureserver.net [64.202.189.57]) by mx1.freebsd.org (Postfix) with SMTP id 28C8813C45A for ; Thu, 15 Nov 2007 14:46:51 +0000 (UTC) (envelope-from brian@tnetus.com) Received: (qmail 4434 invoked from network); 15 Nov 2007 14:20:10 -0000 Received: from unknown (HELO tnetus.com) (68.178.207.93) by k2smtpout05-02.prod.mesa1.secureserver.net (64.202.189.57) with SMTP; 15 Nov 2007 14:20:10 -0000 Received: from [10.1.1.134] ([85.97.4.79]) by tnetus.com with hMailServer ; Thu, 15 Nov 2007 09:20:12 -0500 Message-ID: <473C5593.4080407@tnetus.com> Date: Thu, 15 Nov 2007 16:20:03 +0200 From: Brian Hawk User-Agent: Thunderbird 2.0.0.7pre (Windows/20071019) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 7bit Subject: Interface address sourced packets go thru default gateway on another interface 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: Thu, 15 Nov 2007 14:46:52 -0000 Hi ppl, Sorry for the bizarre subject but I really didn't know how to put this on. I have 3 interfaces: xl0, xl1 and rl0. rl0 is the where ppp daemon (for ADSL) runs on, so I also have tun0 which grabs the default gateway. My problem is with xl1 which is connected to a leased-line and has a static external IP, let's say A.B.C.D. My problem is, packets generated with A.B.C.D source address does not go out thru xl1 but tun0 (which is the default gw). The problem also happens when an outsite packet destined for A.B.C.D arrives. The packet correctly arrives from xl1 interface but the response goes out from tun0. This is driving me crazy since it shouldn't really happen and it used not to happen. Everything was working fine until I don't know when and why, now I cannot send any packets out thru my xl1 interface by binding its source address to the packets. Anyone has a clue why this might be happening? -Brian