PureFTP Resets Passive Ports & IP Address
So I keep going in to change /etc/pure-ftpd.conf and replacing the passive ports and FTP address on lines
However, every time I update a pureFTP setting through WHM, this resets itself, also whenever the server does an update this resets itself back to the default... Any thoughts on how to change it so that it will always stick to my ports and IP after every update etc? Clearly the preset data is stored somewhere... Thanks
PassivePortRange 30000 50000
# Force an IP address in PASV/EPSV/SPSV replies. - for NAT.
# Symbolic host names are also accepted for gateways with dynamic IP
# addresses.
ForcePassiveIP IP.IP.IP.IP(where this is my public IP)However, every time I update a pureFTP setting through WHM, this resets itself, also whenever the server does an update this resets itself back to the default... Any thoughts on how to change it so that it will always stick to my ports and IP after every update etc? Clearly the preset data is stored somewhere... Thanks
-
Hello, You will need to follow the instructions documented on the URL below to ensure the changes are preserved: FTP FAQ - Version 68 Documentation - cPanel Documentation Thank you. 0 -
This still happens today. This range needs to stick due to firewall considerations. The page linked to no longer exists, how can we get "PassivePortRange" to stick to what we need it to today? This should not be changing without our consent. 0 -
This still happens today. This range needs to stick due to firewall considerations. The page linked to no longer exists, how can we get "PassivePortRange" to stick to what we need it to today? This should not be changing without our consent.
Hi, to make changes to your FTP configuration, you need to change the local file as described in the docs:0 -
As noted, it's not recommended to edit the /etc/pure-ftpd.conf file directly, and you should instead use the steps outlined in the docs above. 0 -
Thanks for the advice Michael + Rex, I'll give that a go on all our WHM servers. To be fair it's not often that the config gets overwritten, and apparently only one of our 100+ clients actually use FTP. (Everyone else appears to use SCP/SFTP/SSHFS.) What we won't be doing is just allowing the default range through the firewall simply because of the vastness of such a range. 20k ports is rather excessive! 0 -
You can limit the port range that pure-ftpd uses through this process, and then just open that range in the firewall. I've had my machine limited to 500 ports for years with no ill effects. 0
Please sign in to leave a comment.
Comments
7 comments