LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: FTP

To: "LinuxVirtualServer.org users mailing list." <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: FTP
From: Jan Klopper <janklopper@xxxxxxxxx>
Date: Thu, 10 Mar 2005 13:16:36 +0100
Graeme Fowler wrote:

Hi

Quoting LVS@xxxxxxxxx:

Is there a good "How To" out there that anyone has run across for running FTP through LVS?
I've done some searches and I haven't yet seen anything complete.


Erm... I probably wouldn't class this as a HOWTO, but it might help you.

For LVS-NAT (which is what I'm doing):

1. At boot time on the director, make sure that the module "ip_vs_ftp" is
loaded. For RedHat-alikes:

echo "/sbin/modprobe -v ip_vs_ftp" >> /etc/rc.d/rc.local (or /etc/rc.local.
depending on version).

2. Make sure that you have a virtual server definition for both TCP ports 20 and
21 pointing to the appropriate realservers on TCP ports 20 and 21.

3. If using any form of iptables for firewalling, make sure your clients can
reach TCP ports 20 and 21 on the director's VIP and the clients RIP.

4. Tell the clients not to use passive mode.

...erm... that's it. It works for me.

HTH

Graeme

_______________________________________________
LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://www.in-addr.de/mailman/listinfo/lvs-users

Yup,

You need to enable ftp helper option for LVS in the kernel. (and load it at boot if you make it a module)

greets

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