1824707 Members
3844 Online
109674 Solutions
New Discussion юеВ

Change FTP port

 
SOLVED
Go to solution
Gokce Toykuyu
New Member

Change FTP port

Hello Everyone,
I have question that may sound very simple or ambigious to some of you. I recently setup a server running Redhat Linux 7.2. I am running wuftpd 2.6.2, 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.
Gokce
I made an offer he couldn't refuse.
2 REPLIES 2
Kodjo Agbenu
Honored Contributor
Solution

Re: Change FTP port

Hello,

It seems very simple :

1. Edit /etc/services and add a new service (let's say ftp2 on TCP port 10021) :

ftp2 10021/tcp # FTP service on another port

2. Go to /etc/xinetd.d, edit wu-ftpd and change the service name from "ftp" to "ftp2" :

service ftp2
{
...
}

3. Restart xinetd on the main console :

/etc/init.d/xinetd restart


To connect from command-line FTP client, use :

ftp

For example :

ftp 192.168.1.2 10021


Good luck.

Kodjo
Learn and explain...
Gokce Toykuyu
New Member

Re: Change FTP port

Thank you so much. It worked like a charm!
Gokce
I made an offer he couldn't refuse.