Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com Apr 6 '12 at 17:19

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

1 Answer 1

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.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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