LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] Load balancing outgoing traffic

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] Load balancing outgoing traffic
From: Greg <greg@xxxxxxxxxxxxx>
Date: Wed, 06 Feb 2008 09:48:15 +0100
>
> 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



<Prev in Thread] Current Thread [Next in Thread>