LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] CentOS 4.7 (2.6.9-based) -- LVS-NAT return packets leavi

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] CentOS 4.7 (2.6.9-based) -- LVS-NAT return packets leaving via wrong interface
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Thu, 12 Mar 2009 10:57:27 +0000
On Wed, 2009-03-11 at 19:14 -0500, Charles Duffy wrote:
> # ip rule show
> 0:      from all lookup local
> 32764:  from <INTERNAL_NET> lookup int
> 32765:  from <EXTERNAL_NET> lookup ext
> 32766:  from all lookup main
> 32767:  from all lookup default
> # ip route show table ext
> <EXTERNAL_NET> dev eth1  scope link
> default via <EXTERNAL_GW> dev eth1
> # ip route show table int
> <INTERNAL_NET> dev eth0  scope link
> default via <INTERNAL_GW> dev eth0

Simple fix: have a single default route. You should only very rarely
have two defaults. If you make sure your box has a single default route
via EXTERNAL_GW then your problem will resolve itself.

Networking 101 :)

Graeme


_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

<Prev in Thread] Current Thread [Next in Thread>