当发现登入 vsftpd 很慢,但登入后便会十分畅顺,这个问题很机会是 vsftpd 开启了反解查询登入的 IP 所致。以下是 vsftpd 关于反解的说明:
|
1 2 3 4 5 |
reverse_lookup_enable Set to YES if you want vsftpd to transform the ip address into the hostname, before pam authentication. This is useful if you use pam_access including the hostname. If you want vsftpd to run on the environment where the reverse lookup for some hostname is available and the name server doesn’t respond for a while, you should set this to NO to avoid a performance issue. Default: YES |
要解决这个问题,只需关闭 vsftpd 的 reverse_lookup_enable 即可,而这个选项默认值是开启,即 YES 的状态。
先开启 vsftpd 的设定档:
# vi /etc/vsftpd/vsftpd.conf
找到 “reverse_lookup_enable” 一行,如果没有这一行需要自行加入,设定成 NO:
reverse_lookup_enable=NO
储存后重新启动 vsftpd:
# systemctl restart vsftpd