Disable anonymous access to vsftpd servers from hosts in certain IP ranges

One configuration vsftpd.conf file

tcp_wrappers=YES
After configuration, execute the following command to restart the vsftpd server

[root@localhost vsftpd]# systemctl restart vsftpd.service

 
Second, edit the /etc/hosts.allow file and add a line of command
vsftpd:192.168.0.0/255.255.255.0:DENY
 
Three tests

 
 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326376299&siteId=291194637
Recommended