LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Curl request from linux director to the virtual ip addre

To: Viktor Nonov <viktor@xxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Curl request from linux director to the virtual ip address times out
Cc: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
From: Julian Anastasov <ja@xxxxxx>
Date: Thu, 9 Aug 2018 08:33:13 +0300 (EEST)
        Hello,

On Wed, 8 Aug 2018, Viktor Nonov wrote:

> I have a pretty simple setup for 2 real servers getting direct routing from
> a linux director.
> [image: unnamed.png]
> Things work great for clients outside of the network (like from my local
> machine), but if I try to make a request (through curl) to the VIP from the
> Linux Director machine, I get a timeout & no requests make it to the Real
> Server.
> 
> Any pointers?

        Probably because VIP is used as source IP in director. Try
ip route replace local $VIP dev $DEV proto kernel scope host src $DIP

where VIP is your virtual IP and DIP is your unique IP in director.
Before that you can see the route that is to be replaced with
ip route list table local

Regards

--
Julian Anastasov <ja@xxxxxx>

_______________________________________________
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>