On Fri, Jun 27, 2003 at 05:26:16PM +0200, Matthias Krauss wrote:
> Hello List,
> after i couldnt get IPVS Framework to run (ip_vs.h not found) i tried
> it with the debian package which looks better.
>
> I'm trying to configure a virtual server defininition with
> fwmarks (which are present), somehow they dont apply, i used
>
> virtual_server 10.0.1.67 fwmark 1
>
> with a couple of real servers, ipvsadm output is:
>
> TCP 10.0.1.67:0 wrr persistent 3600
> -> web1.intern:www Route 100 0 0
> -> web2.intern:www Route 100 0 0
> -> web3.intern:www Route 100 0 0
>
> when i configure "virtual_server 10.0.1.67 80" then all real servers
> apply fine, failover and mail notifies apply also. ipvsadm output is:
>
> TCP 10.0.1.67:80 wrr persistent 3600
> -> web1.intern:www Route 100 0 0
> -> web2.intern:www Route 100 0 0
> -> web3.intern:www Route 100 0 0
>
> How can i solve this ?
If you want to use firewall marks, then you must configure your
virtual services with firewall marks using ipvsadm. From the
out put below it appears that you have cofigured a tcp virtual service
instead. This is detailed in the man page. But as a rough guide
if you have iptables/ipchanis configured to mark packets with
firewall mark 1.
ipvsadm -A -f 1 -s www
ipvsadm -a -f 1 web1.intern:www -g
ipvsadm -a -f 1 web2.intern:www -g
ipvsadm -a -f 1 web3.intern:www -g
...
--
Horms
|