On 7/31/13 4:58 AM, Jean Paul Galea wrote:
> We are using LVS-DR with persistent connections enabled.
> Our ldirectord config looks something like this;
> virtual = 80
> protocol = fwm
> scheduler = wrr
> persistent = 300
> real = 192.168.1.101:80 gate 10
> real = 192.168.1.102:80 gate 10
> Is it possible to disable persistent connections for requests coming
> from certain src IP addresses?
Since you are using fwm it makes this easy. Just define a second virtual
section, call it 81 or something. Duplicate what you have for 80, but
don't include the persistent parameter.
Then just use iptables to mark internal traffic to the 81 virtual
server, and everything else to the 80.
Please read the documentation before posting - it's available at:
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