Control Web Panel

WebPanel => FTP => Topic started by: rflsantana on October 28, 2015, 11:06:46 AM

Title: How to change ftp port
Post by: rflsantana on October 28, 2015, 11:06:46 AM
Hi Guys!
I wonder how do I change the default FTP port . It's because? My ISP is blocking port 21 .
Title: Re: How to change ftp port
Post by: Gogo on October 28, 2015, 11:27:52 AM
Why would an ISP do that? They do not.

If you are sure that u use correct connection port then you can try to setup your dmz settings in your router.

If you use root login then u must use the ssh port to login via sftp.
Title: Re: How to change ftp port
Post by: Igor S. on November 03, 2015, 10:21:15 AM
Hello.

Hi Guys!
I wonder how do I change the default FTP port . It's because? My ISP is blocking port 21 .

You can change port in the /etc/pure-ftpd/pure-ftpd.conf :

Code: [Select]
Igor ~# grep Bind /etc/pure-ftpd/pure-ftpd.conf
Bind 234
# Bind                      127.0.0.1,21
Igor ~# /etc/init.d/pure-ftpd restart
Stopping pure-ftpd:                                        [  OK  ]
Starting pure-ftpd:                                        [  OK  ]
Igor ~# netstat -nlp|grep -i ftp
tcp        0      0 0.0.0.0:234                 0.0.0.0:*                   LISTEN      13592/pure-ftpd (SE
tcp        0      0 :::234                      :::*                        LISTEN      13592/pure-ftpd (SE
Igor ~#
Title: Re: How to change ftp port
Post by: zirvesunucum on April 25, 2017, 10:31:07 PM
Look this topic : http://forum.centos-webpanel.com/ftp/how-to-change-default-ftp-port-21-centos-web-panel/