- filezilla 連接ftp提示
421 service not available
- ftp xxx.xxx.xxx.xxx提示
421 service not available
- 抓包,提示
421 service not available
思路
- 先看日誌,把日誌開起來
vi /etc/vsftpd.conf
use_localtime=YES
dual_log_enable=YES
- 連接一次,日誌報錯
Tue Apr 23 14:39:26 2019 [pid 42813] CONNECT: Client "117.149.3.174", "Connection refused: tcp_wrappers denial."
- 查看
/etc/hosts.deny
all:all
- 原來是服務被禁止登錄了,那麼只要開來就可以了
- 在
/etc/hosts.allow
中加上
vsftpd:all:allow