Chapter 23. FTP
366
By default, the
vsftpd
service does
not
start automatically at boot time. To configure the
vsftpd
service to start at boot time, use an initscript utility, such as
/sbin/chkconfig
,
/usr/sbin/ntsysv
, or
the
Services Configuration Tool
program. Refer to
Chapter 16, Controlling Access to Services
for
more information regarding these tools.
23.4.1. Starting Multiple Copies of
vsftpd
Sometimes one computer is used to serve multiple FTP domains. This is a technique called
multihoming
. One way to multihome using
vsftpd
is by running multiple copies of the daemon, 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
Chapter 15, Network Configuration
for more information about configuring network
devices and device aliases. Additional information can be found about network configuration scripts in
Chapter 14, Network Interfaces
.
Next, the DNS server for the FTP domains must be configured to reference the correct machine.
For information about BIND and its configuration files, refer to
Chapter 17, 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 23.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>
[amp ]
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
Содержание ENTERPRISE LINUX 5 - VIRTUAL SERVER ADMINISTRATION
Страница 22: ...xxii ...
Страница 28: ......
Страница 36: ...10 ...
Страница 40: ...14 ...
Страница 96: ...70 ...
Страница 116: ...90 ...
Страница 144: ...118 ...
Страница 146: ......
Страница 158: ...132 ...
Страница 165: ...Installing and Removing Packages 139 Figure 11 7 Installing and removing packages simultaneously ...
Страница 166: ...140 ...
Страница 172: ...146 ...
Страница 178: ......
Страница 228: ...202 ...
Страница 264: ...238 ...
Страница 318: ...292 ...
Страница 330: ...304 ...
Страница 388: ...362 ...
Страница 428: ...402 ...
Страница 452: ......
Страница 458: ...432 ...
Страница 476: ...450 ...
Страница 478: ...452 ...
Страница 494: ...468 ...
Страница 498: ...472 ...
Страница 530: ...504 ...
Страница 536: ...510 ...
Страница 544: ...Chapter 36 Log Files 518 Figure 36 7 Log file contents after five seconds ...
Страница 546: ......
Страница 550: ...524 ...
Страница 576: ......
Страница 584: ...558 ...
Страница 608: ......
Страница 776: ...750 ...
Страница 796: ...770 ...
Страница 800: ...774 ...
Страница 804: ......
Страница 806: ...780 ...
Страница 808: ...782 ...
Страница 816: ...790 ...
Страница 820: ...794 ...
Страница 822: ...796 ...
Страница 830: ...804 ...
Страница 836: ...810 ...
Страница 844: ...818 ...
Страница 848: ...822 ...