LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: FTP

To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: FTP
From: Graeme Fowler <graeme@xxxxxxxxxxx>
Date: Thu, 10 Mar 2005 11:52:21 +0000
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


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