在Debian系统中,可通过以下方式限制vsftp访问:
/etc/vsftpd.conf
,设置userlist_enable=YES
,指定userlist_file=/etc/vsftpd.userlist
,并在该文件中添加允许访问的用户,userlist_deny=NO
表示仅允许列表中用户访问。/etc/vsftpd.conf
,设置tcp_wrappers=YES
,然后编辑/etc/hosts.deny
和/etc/hosts.allow
,在hosts.deny
中拒绝所有IP,hosts.allow
中添加允许访问的IP。