[LARTC] Src IP for outgoing packet with multiple defaults routes

Linux Advanced Routing and Traffic Control

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

 



	Hello,

On Thu, 7 Mar 2002, =?ISO-8859-2?Q?Andr=E9s Gri=F1=F3 Brandt?= wrote:

> Hi:
>
> Abstract: Linux connected to two different ISP. Outgoing packets seems to peek randomly it's source IP address, without regards to the router choosen.

	Not possible with plain kernel, check this URL:

http://www.linuxvirtualserver.org/~julian/#routes

	after patching nexthops with same outdevs are supported

>            nexthop via 200.27.214.225 dev eth0 weight 1
>            nexthop via 200.72.44.225  dev eth0 weight 3

> This is wrong. Packets with source IP 200.72.44.226 must not reach router 200.27.214.226. AFIK, an outgoing packet must have a source address in the same subnet that the router being used.

	To be honest, NAT in current kernels does not work correctly
with multipath routes, even if you are using different outdevs in all
nexthops. Read the docs mentioned above.

> Ideas?
>
> Andrés Griñó Brandt
> Santiago, Chile

Regards

--
Julian Anastasov <ja@ssi.bg>



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