📄 readme
字号:
This example shows how to run vsftpd in "standalone" mode - i.e. withoutneeding to run an inetd of some kind (inetd, xinetd, tcpserver etc).vsftpd has supported standalone mode since v1.1.0.With the release of v1.1.3, the feature list of standalone mode has grown sothat large internet sites no longer need to use an inetd.Previously, large internet sites were forced to use xinetd for the importantfeature of "limit number of concurrent connections from a single IP address".Unfortunately, there seem to be xinetd stability issues - various largersites are reporting that xinetd's session counting can go wrong and incorrectlykick off users because it thinks the FTP site is full when it is not.vsftpd now natively handles maximum session counts and maximum session per IPcounts. It can also do native access control via tcp_wrappers integration andeven per-connect-IP configurability.To use this example config:1) Copy the vsftpd.conf file in this directory to /etc/vsftpd.conf.2) Start up vsftpd, e.g.vsftpd &3) That should be it!The example vsftpd.conf is based on the vsftpd.conf from the INTERNET_SITEexample. Let's look at the differences (at the top):# Standalone modelisten=YESThis tells vsftpd to run in standalone mode. Do NOT try and run vsftpd froman inetd with this option set - it won't work, you may well get 500 OOPS:could not bind listening socket.max_clients=200max_per_ip=4The maximum number of session is 200 (new clients will get refused with abusy message). The maximum number of sessions from a single IP is 4 (the5th connect will get refused with a suitable message).One further note on standalone mode, regarding virtual IPs. This is veryeasy - just run one copy of vsftpd per virtual IP (remembering to give eacha separate config file on the command line).Distinguish which vsftpd is for which virtual IP with a setting like thisin the vsftpd.conf:listen_address=192.168.1.2And launch vsftpd with a specific config file like this:vsftpd /etc/vsftpd.conf.site1 &
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -