LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

RE: fwmarks usage

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: fwmarks usage
From: "Francois JEANMOUGIN" <Francois.JEANMOUGIN@xxxxxxxxxxxxxxxxx>
Date: Tue, 30 Dec 2003 15:09:33 +0100
Matthias:
> for aol traffic i'm doing this:
> 
>  #http://webmaster.info.aol.com/proxyinfo.html
>  #insert all hosts from above, sample:
> 
>  AOLPROXY="64.12.96.0/19"
> 
>  for aolproxys in $AOLPROXY ; do
>   iptables -t mangle -A PREROUTING -p tcp -s $aolproxys -d VirtualIP/32
> --dport 80 -j MARK --set-mark 1
>  done
> 
>  ipvsadm -A -f 1 -s wrr -p 3600 -M 255.255.255.0
>  ipvsadm -a -f 1 -r RealIP -g
>  #=> All listed AOL traffic ois now going to 'RealIP'

Oh. I think if it works for you it should work for me. Two questions :

Is there an easy way to do it in keepalived.conf ? What is the meaning of the 
-M option when you use -f.

Finally, here are the IPs AOL told me they use for their clients :

64.12.0.0 - 64.12.255.255
152.163.0.0 - 152.163.255.255
172.128.0.0 - 172.191.255.255 
195.93.0.0 - 195.93.63.255
195.93.64.0 - 195.93.127.255
198.81.0.0 - 198.81.31.255
202.67.64.0 - 202.67.95.255
205.188.0.0 - 205.188.255.255

I'll try to find my way with it, many thanks for your help,

François.

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