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
![](http://dl2.iteye.com/upload/attachment/0121/5355/1b174831-49a4-3d11-9042-5a860a5c1cae.png)