Skip to content

Instantly share code, notes, and snippets.

@matthijs166
Created December 1, 2018 19:22
Show Gist options
  • Save matthijs166/6e7d8e8bd60c43312fb6b1f0f563b3d1 to your computer and use it in GitHub Desktop.
Save matthijs166/6e7d8e8bd60c43312fb6b1f0f563b3d1 to your computer and use it in GitHub Desktop.
add passive ports
Create a file in /etc/pure-ftpd/conf/PassivePortRange, inside, just write the port range separated with a space.
echo "29799 29899" > /etc/pure-ftpd/conf/PassivePortRange
(for max 50 connected clients)
pure-ftpd uses files in conf dir as parameters. Be carefull setting your ports, they must NOT be used by the kernel.
You must have 2 ports for every client (max 100 clients, you need 200 ports).
If you need more or less than 50 default clients allowed, you must:
echo "50" > /etc/pure-ftpd/conf/MaxClientsNumber
Replace 50 with the number you want to allow...
Remember to restart pureftpd.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment