Is it possible to setup vsftpd to only accept connections from a certain set of IP addresses?
I've looked at the /etc/vsftpd.conf for options but there is no hint at that. The manual does not either.
My Server OS : Red Hat Enterprise Linux Server release 6.5 (Santiago)
Best Answer
Seems you can use
TCP Wrappers
(just tested it on my Ubuntu) and usehosts.allow
andhosts.deny
to filter vsftpd access.Add the following to your
vsftpd.conf
file :Restart vsftpd.
In
/etc/hosts.deny
deny everyone for vsftpd :Then, in
/etc/hosts.allow
add the authorized IPs :