Is there any way to limit connection to FTP, to allow only connection from certain IP, or range of IPs if Pure-FTPd is installed on server.

Something like .ftpaccess, ftp access configuration file? But .ftpaccess does not work with Pure-FTPd?

link|improve this question
feedback

migrated from stackoverflow.com Apr 6 at 17:19

This question came from our site for professional and enthusiast programmers.

1 Answer

The best way to do this is to use a firewall like iptables to filter ip addresses connecting to the ftp port. If you are using debian or ubuntu, look into ufw firewall. ufw is extremely simple to use.

link|improve this answer
I have centos. Can you provide me with more details how and where to do that? – user1038179 Apr 29 at 10:35
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.