pureftpd and PASV port modification

Discussion in 'Installation/Configuration' started by KenKnight, May 21, 2009.

  1. KenKnight

    KenKnight Member

    Hi all,

    I'm trying to adjust the PASV range that pureftpd is using. I found the pure-ftpd.conf in the fail2ban directory and have added the following line in there;

    PassivePortRange 30000 35000

    and restarted using the /etc/init.d/pure-ftpd-mysql restart command
    however it doesn't appear to made any difference.

    Any suggestions would be greatly appreciated.


    Edit: I found that the configuration is done through individual files in the pure-ftpd/conf directory, however, even after putting a PassivePortRange file in there with the appropriate values (at least I think they are appropriate) it is still not functioning correctly. I also have modified the port forwarding on the firewall to allow this range.
    Last edited: May 21, 2009
  2. KenKnight

    KenKnight Member


    I got it.

    I had to add another file in the conf directory for masquerading.

    Now it appears to be working.

  3. mmk

    mmk New Member

    Hi. I am having the exact same problem. Could you please explain the masquerading part in more detail?

  4. mmk

    mmk New Member

    Nevermind, I figured it out.

    Adding ForcePassiveIP x.x.x.x to /etc/pure-ftpd/pure-ftpd.conf did the trick for me. (x.x.x.x = public IP of the server)

Share This Page