Displaying 1 result from an estimated 1 matches for "ipvsad".
Did you mean:
ipvsadm
2010 Apr 27
0
Transparent proxy with LVS
..."202 www.out" >> /etc/iproute2/rt_tables
fi
#Clean tables and rules
ip rule del prio 100 fwmark 2 table www.out
ip route flush table www.out
#Routing of marked packets
ip rule add prio 100 fwmark 2 table www.out
ip route add table www.out to local 0/0 dev lo
ip route flush cache
#ipvsadm rules
ipvsadm -A --fwmark-service 2
ipvsadm -a --fwmark-service 2 --real-server $SRV01 --gatewaying
ipvsadm -a --fwmark-service 2 --real-server $SRV02 --gatewaying
ipvsadm -a --fwmark-service 2 --real-server $SRV03 --gatewaying
As you can see, I mark all packets not directed to the virtual server...