I am having a problem with passive FTP on my LVS-NAT cluster. I have
configured ipchains with the following marks:
-A input -s 0.0.0.0/0.0.0.0 -d 66.180.233.20/255.255.255.255 21:21 -p 6 -m 1
-A input -s 0.0.0.0/0.0.0.0 -d 66.180.233.20/255.255.255.255 10000:20000 -p
6 -m 1
I have configured my realserver to only use ports 10000-20000 for incoming
passive ftp connections.
I have also configured my lvs.cnf as follows:
virtual mediamanagerFTP {
active = 1
address = 66.180.233.20 eth0:1
vip_nmask = 255.255.255.0
fwmark = 1
port = 21
persistent = 900
expect = "OK"
send_program = "/usr/local/bin/ftp-test %h"
load_monitor = none
scheduler = rr
protocol = tcp
timeout = 6
reentry = 15
quiesce_server = 0
server slipstream-101 {
address = 192.168.2.10
active = 0
weight = 1
}
server slipstream-102 {
address = 192.168.2.11
active = 1
weight = 1
}
}
/usr/local/bin/ftp-test returns the text "OK" in this case.
This is what i get when I start pulse:
Aug 23 13:14:06 loadserver-101 pulse[xxxx]: STARTING PULSE AS MASTER
Aug 23 13:14:06 loadserver-101 pulse: pulse startup succeeded
Aug 23 13:14:24 loadserver-101 pulse[xxxx]: partner dead: activating lvs
Aug 23 13:14:24 loadserver-101 lvs[xxxx]: starting virtual service
mediamanager active: 80
Aug 23 13:14:24 loadserver-101 lvs[xxxx]: create_monitor for
mediamanager/slipstream-102 running as pid xxxx
Aug 23 13:14:24 loadserver-101 nanny[xxxx]: starting LVS client monitor for
66.180.233.20:80
Aug 23 13:14:24 loadserver-101 lvs[xxxx]: starting virtual service
mediamanagerFTP active: 21
Aug 23 13:14:24 loadserver-101 lvs[xxxx]: create_monitor for
mediamanagerFTP/slipstream-102 running as pid xxxx
Aug 23 13:14:24 loadserver-101 nanny[xxxx]: starting LVS client monitor for
66.180.233.20:21
Aug 23 13:14:24 loadserver-101 nanny[xxxx]: making 192.168.2.11:21 available
Aug 23 13:14:27 loadserver-101 nanny[xxxx]: making 192.168.2.11:80 available
Aug 23 13:14:29 loadserver-101 pulse[xxxx]: gratuitous lvs arps finished
However when I try to connect to 66.180.233.20:21 from an outside host I get
connection refused... any ideas?
-Javier
|