LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

tunnel, forward, all ports

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: tunnel, forward, all ports
From: Alex Senin <alex@xxxxxxxxxxxxxxx>
Date: Wed, 20 Mar 2002 12:39:49 +0200
Padraig Brady wrote:
> Alex Senin wrote:
>
>> Is it possible to forward all traffic ( all ports ) througth VIP to
>> realservers ?
>
>
> Just use port 0. I.E. set up a VIP:0 -> RIP1:0, RIP2:0, ...
> Note the will do persistency across multiple ports also.
> for e.g. connections from a client to both port 80 & 443
> will get sent to the same real server.
>
> Padraig.

My config file :

LVSCONF_FORMAT=1.1
LVS_TYPE=VS_TUN
INITIAL_STATE=on
CLEAR_IPVS_TABLES=Y
VIP=eth0:0 real 255.255.255.255 real
DIP=eth0 director 192.168.1.111 255.255.255.0 192.168.1.255
SERVICE=t 0 rr client
SERVER_VIP_DEVICE=tunl0:0
SERVER_NET_DEVICE=eth0
SERVER_GW
SERVER_GW=client


and this is an error after I tryed to run configure script:

sh-2.04# configure_lvs lvs.tun
Error: cannot use port 0 in service line.
print_service_lines: port 0 not allowed in SERVICE line.
sh-2.04#

Packages:
ipvs-1.0.0
configure_lvs - 0.9.2

HOW FORWARD ALL PORTS ???

P.S:
                and the REAL question is:
                How to forward all ports, exclude port X, Y, Z ???







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