[lvs-users] Load balancing outgoing traffic

Greg greg at easyflirt.com
Wed Feb 6 08:48:15 GMT 2008


>
> How? If I set a default SNAT rule, this default is always used ...
>
>   
iptables -t nat -A POSTROUTING -m state --state NEW -m statistic --mode 
nth --every 2 --packet 0 -j SNAT --to-source $SIP1
iptables -t nat -A POSTROUTING -m state --state NEW -m statistic --mode 
nth --every 2 --packet 1 -j SNAT --to-source $SIP2
iptables -t nat -A POSTROUTING -m state --state NEW -j SNAT --to-source 
$SIP3

running a ping I have :
$SIP1
$SIP2
$SIP1
$SIP3
$SIP1
$SIP2
$SIP1
$SIP3
...

-- 
Greg



Search lvs-users Archives
Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort

More information about the lvs-users mailing list