LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] cant get passive ftp working through nat for clustered f

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [lvs-users] cant get passive ftp working through nat for clustered ftp hosts.
From: Ivan Havlicek <ivan@xxxxxxxxxxx>
Date: Mon, 15 Jun 2015 10:48:05 +0200
Hi,

I use proftpd, but i guess there are some similar things.
I has also the same ipvs setup and has also only active ftp working...

Perhaps, to make work the passive mode, we should add a permanent
listener on passive ports on the centos box, with something like

ipvsadm -A -t $realip:50000-60000 -s wrr
ipvsadm -a -t $realip:50000-60000 -r 10.1.6.11 -m
ipvsadm -a -t $realip:50000-60000 -r 10.1.6.12 -m

firewall-cmd --zone=public --add-port=50000-60000/udp --permanent

First, it is not working (multiple ports are not allowed) but i also prefer,
for security reasons to have not so many ports opened on my server.

In active mode, the ip_vs_ftp do all the job via conntrack :

conntrack -L | grep dport=21

In this case, the only needed setup to make it work is to allow FTP
traffic :

firewall-cmd --zone=public --add-port=21/udp --permanent

and setup via ipvsadm the loadbalancing.

So, do you really need the ftp passive mode ?
--
                            Ivan

_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

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