I am trying to set up a simple Linux Virtual Server to distribute
requests to a single IP Address/Port across a small group of systems,
including the target host. I have built a modified 2.0.36 kernel for
Red Hat Linux 5.2 for Intel and ippfvsadm. Running ippfvsadm produces
the following output:
ippfvs (LinuxDirector) version 0.8 (NAT, LocalNode, WRR)
IP Port Forwarding & Virtual Server Table
Protocol Local Addr:Port ==>
Remote Addr:Port Weight
...
All the systems are on the same network segment, for example:
192.168.1.10 master
192.168.1.21 slave1
192.168.1.22 slave2
192.168.1.23 slave3
192.168.1.254 gateway
All of the systems have a server running which is listening on the same
port number, for example 4444.
What combination of ipfwadm and ippfvsadm commands are needed on
"master" to achieve the desired behaviour?
My guess was something like the following:
ipfwadm -F -a accept -m -P tcp -S 192.168.1.21
ipfwadm -F -a accept -m -P tcp -S 192.168.1.22
ipfwadm -F -a accept -m -P tcp -S 192.168.1.23
ippfvsadm -A -t 192.168.1.10:4444 -R 192.168.1.10:4444
ippfvsadm -A -t 192.168.1.10:4444 -R 192.168.1.21:4444
ippfvsadm -A -t 192.168.1.10:4444 -R 192.168.1.22:4444
ippfvsadm -A -t 192.168.1.10:4444 -R 192.168.1.23:4444
All systems on the segment have their default route set to "gateway",
192.168.1.254.
However, this doesn't seem to work ...
Can someone suggest a solution that should work? Also, is the first of
the ippfvsadm commands given above the correct way to configure for
LocalNode operation?
Also, can anyone confirm that this version of the Linux Virtual Server
works on Red Hat Linux 5.2 for Alpha? I have tried the above with
"master" as either Intel or Alpha with similar results.
Many thanks in anticipation
--
John Connett (jrc@xxxxxxxxxxxxxx)
|