[lvs-users] Curl request from linux director to the virtual ip address times out

Julian Anastasov ja at ssi.bg
Thu Aug 9 06:33:13 BST 2018


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


Julian Anastasov <ja at ssi.bg>

More information about the lvs-users mailing list