1830367 Members
2248 Online
110001 Solutions
New Discussion

Change FTP port

 
Ana Ramirez
Occasional Contributor

Change FTP port

Hello all the people!!!!
I have a questin that may sound simple for you, I started 2 months ago in UNIX, and I would like to change the access port from 21 to xxxx. Anyone know how to accomplish this? Thank you very much in advance.
5 REPLIES 5
Ivan Ferreira
Honored Contributor

Re: Change FTP port

Why do you want to do that. It a port scanner may find out your new port.

Anyway, it depends of the ftp server, in VSFTPD, you have the listen and ftp_data_port directive in the configuration file.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Steven E. Protter
Exalted Contributor

Re: Change FTP port


Hello to you Ana

http://www.cae.wisc.edu/site/public/?title=linbegin

http://www.informit.com/articles/article.asp?p=20665

first link advises against this course of action.

The second link advises how to do it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alessandro Pilati
Esteemed Contributor

Re: Change FTP port

Have you inetd or xinetd?

You can Change the port in /etc/inetd.conf of service ftp and restart inetd, or
if you have xinetd you can
create a new service in /etc/services,
create a file in /etc/xinetd.d/ that refers to the new service created /etc/services,
then restart xinetd ( service xinetd restart )

Regards,
Alex

if you don't try, you'll never know if you are able to
Ana Ramirez
Occasional Contributor

Re: Change FTP port

Thanx Ivan, Steven...

For security (rules here in mi work that I don't understand...)I have to blocked port 21, but I need another port in order to have a proxy conection... that's the reason that I need to add another FTP port, but it dosn't be port 21

Alex, I have inetd, I'm working on UNIX v11.0

Thanx a lot to all, I'm going to prove all your recomendations...

see you soon boys!!!!
Steven E. Protter
Exalted Contributor

Re: Change FTP port

Use sftp

openssh server is secure, runs on port 22.

Client is built into all Linux machines and there are good free ones for Windows.

Be secure, don't use ftp. ftp does clear text authentication. That means your passwords fly across the network without the benefit of encryption.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com