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