Re: How to override the default source ipv4 address on packets originating from a router

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20/12/13 13:11, Anton 'EvilMan' Danilov wrote:
Hello.
What's about 'ip route get <dst> from <src>' command?
<snip/>

Thanks very much for responding Anton. By now you have probably read the responses from Joel and Erik, who both state categorically that the source address for packets originating on the host is not selected until /after/ the outbound route has been determined.

This fact explains why "ip route get to 163.1.221.67" returns the identical result no matter whether I omit the "from", or use "from 217.154.193.209", or use "from 172.16.101.2".

In every case the route returned is "via 172.16.101.1" as expected, but in every case the source address is that of the eth0 interface 172.16.101.2.

I have more to say, but will do it by replying directly to Joel and Eric's suggestions.

Thanks again,

Brian
--
To unsubscribe from this list: send the line "unsubscribe lartc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux