Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2007 07:39:35 +0200
From:      Brian Hawk <brian@tnetus.com>
To:        Steve Bertrand <iaccounts@ibctech.ca>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Interface address sourced packets go thru default gateway on another interface
Message-ID:  <473D2D17.3060504@tnetus.com>
In-Reply-To: <473C6D51.6070500@ibctech.ca>
References:  <473C5593.4080407@tnetus.com> <473C6D51.6070500@ibctech.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
Here's the routing table,

#~>netstat -rn
Internet:
Destination        Gateway            Flags    Refs      Use  Netif Expire
default            85.97.0.1          UGS         0 25211312   tun0
10                 10.1.1.222         UGS         0  3407666    xl0
10.1.1/24          link#2             UC          0        0    xl0
10.1.1.42          00:50:8b:44:1a:91  UHLW        0        1    xl0    469
10.1.1.87          00:0e:a6:a4:56:1c  UHLW        0     9716    xl0    126
10.1.1.99          link#2             UHLW        0        1    xl0
10.1.1.134         00:15:c5:ad:08:f0  UHLW        0     1413    xl0   1015
10.1.1.222         00:50:da:4e:e7:e2  UHLW        1     1773    lo0
10.1.1.225         00:b0:d0:20:b7:9e  UHLW        0 18460272    xl0    254
85.97.0.1          85.97.4.79         UH          1        0   tun0
127.0.0.1          127.0.0.1          UH          0  1317879    lo0
192.168.0          link#3             UCS         0        0    xl1
192.168.1          link#1             UC          0        0    rl0
192.168.1.100      link#1             UHLW        0        4    rl0
212.64.206.176/29  link#3             UC          0        0    xl1
212.64.206.180     00:04:76:9b:3d:f8  UHLW        0     2318    lo0

212.64.206.180 is the leased-line interface.

Steve Bertrand wrote:
>> 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.
>>     
>
> Show the output to:
>
> # netstat -rn
>
> ...are you *sure* that it hasn't always worked this way?
>
> Steve
>   




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