Depending on how you manage iptables/netfilter, the easier of the two is probably denying with tcp_wrappers. Step 1
Run the command whereis -b vsftpd. Make a note of the first path it returns. In my case, that is /usr/sbin/vsftpd.
Next, using that path, run the command ldd /usr/sbin/vsftpd | grep 'libwrap.so'. Did you see any results? If so, vsftpd has been compiled with tcp_wrappers support. If not, the rest of the steps won't do anything. Step 2
Edit /etc/hosts.deny and add a line that looks like: where "10.0.0.1" is the IP of the person you want to deny.
That should take care of it. If the person you're trying to deny is sufficiently clever, though, there are probably going to be more steps to take. |