Interface address sourced packets go thru default gateway on another interface

Brian Hawk brian at tnetus.com
Thu Nov 15 21:39:45 PST 2007


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
>   



More information about the freebsd-net mailing list