Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Apr 6 '12 at 17:19

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

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? – Advanced SEO Apr 29 '12 at 10:35

Your Answer


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.