each with its own configuration file.
To do this, first assign all relevant IP addresses to network devices or alias network devices on
the system. Refer to the chapter titled Network Configuration in Red Hat Enterprise Linux
System Administration Guide for more information about configuring network devices and
device aliases. Additional information can be found about network configuration scripts in
Chapter 8, Network Interfaces
.
Next, the DNS server for the FTP domains must be configured to reference the correct machine.
If the DNS server is running on Red Hat Enterprise Linux, refer to the chapter titled BIND
Configuration in Red Hat Enterprise Linux System Administration Guide for instructions about
using the Domain Name Service Configuration Tool (
system-config-bind
). For information
about BIND and its configuration files, refer to
Chapter 12, Berkeley Internet Name Domain
(BIND)
.
For
vsftpd
to answer requests on different IP addresses, multiple copies of the daemon must
be running. The first copy must be run using the
vsftpd
initscripts, as outlined in
Section 4,
“Starting and Stopping
vsftpd
”
. This copy uses the standard configuration file,
/etc/vsftpd/vsftpd.conf
.
Each additional FTP site must have a configuration file with a unique name in the
/etc/vsftpd/
directory, such as
/etc/vsftpd/vsftpd-site-2.conf
. Each configuration file
must be readable and writable only by root. Within each configuration file for each FTP server
listening on an IPv4 network, the following directive must be unique:
listen_address=N.N.N.N
Replace
N.N.N.N
with the unique IP address for the FTP site being served. If the site is using
IPv6, use the
listen_address6
directive instead.
Once each additional server has a configuration file, the
vsftpd
daemon must be launched
from a root shell prompt using the following command:
vsftpd /etc/vsftpd/<configuration-file> &
In the above command, replace
<configuration-file>
with the unique name for the server's
configuration file, such as
/etc/vsftpd/vsftpd-site-2.conf
.
Other directives to consider altering on a per-server basis are:
•
anon_root
•
local_root
•
vsftpd_log_file
•
xferlog_file
Starting Multiple Copies of
vsftpd
281
Summary of Contents for ENTERPRISE LINUX 4.5.0 -
Page 1: ...Red Hat Enterprise Linux 4 5 0 4 5 0 Reference Guide ISBN N A Publication date ...
Page 2: ...Red Hat Enterprise Linux 4 5 0 ...
Page 4: ...Red Hat Enterprise Linux 4 5 0 ...
Page 24: ...xxiv ...
Page 26: ......
Page 36: ...12 ...
Page 72: ...48 ...
Page 112: ...88 ...
Page 122: ...98 ...
Page 140: ...116 ...
Page 142: ......
Page 300: ...276 ...
Page 318: ...294 ...
Page 320: ......
Page 332: ...308 ...
Page 350: ...326 ...
Page 378: ...354 ...
Page 388: ...364 ...
Page 394: ...370 ...
Page 395: ...Part IV Appendixes ...
Page 396: ......