vsftpd : limit connection to a set of IP addresses
Solution 1:
Seems you can use TCP Wrappers
(just tested it on my Ubuntu) and use hosts.allow
and hosts.deny
to filter vsftpd access.
Add the following to your vsftpd.conf
file :
tcp_wrappers=YES
Restart vsftpd.
In /etc/hosts.deny
deny everyone for vsftpd :
vsftpd: ALL
Then, in /etc/hosts.allow
add the authorized IPs :
vsftpd:192.168.0.39 192.168.0.50