Changing FTP port issue
I am trying for the last few weeks to simply change my FTP port from 21 to something more secure.
I am using pureftpd on Centos 7.6
I have changed BIND 21 to BIND 2121 then added it into my CSF firewall TCP setting for IN then restarted both services. The error after this is that FTP logs in successfully, but timeout retrieving directory.
Then I found out I need to enable Passive ports. which I found was already enabled. So I used a port number in the range that I found there ie 50000. Add it in CSF, restart both services. But still retrieving directory.
It would seem that every article, tutorial says the same. Simply change BIND port in pureftp config, add to firewall, restart services and its done? but it is not done at all because it does not work.
Why does everything have to be so convoluted and impossible to figure out within two weeks just to change one number to stop getting a brute force attack and an email every minute of every day?
-
Then I found out I need to enable Passive ports. which I found was already enabled. So I used a port number in the range that I found there ie 50000. Add it in CSF, restart both services. But still retrieving directory.
Hello @Ben Taylor, You'll need to authorize more than just a single port from the default passive port range. We provide a guide on this at:0 -
Hello @Ben Taylor, You'll need to authorize more than just a single port from the default passive port range. We provide a guide on this at: Let me know if this helps. Thank you.
I have followed this the best I can. But my port is still 21. I have literally read every article over the last five years for changing ports for pureftpd and none of them go into how to add more than one for for passive mode.0 -
16+ hours on this over two weeks. Only solid solution is service pure-ftpd stop0 -
16+ hours on this over two weeks. Only solid solution is
service pure-ftpd stop
I take that back. Pure-Ftpd restarted itself along with the excessive brute force attack emails.0
Please sign in to leave a comment.
Comments
5 comments