Page 1 of 1

change ftp port number

Posted: Mon Nov 30, 2015 4:32 pm
by chaiyuttochai
I want to change FTP Default-Port for security issue.
I already follow this link
http://twincreations.co.uk/change-defau ... for-vsftp/

After Restart vsftp-service I also config iptable to enable my custom ports
I still cannot login

Can anyone tell me how i can change it?

My server is Centos 6.6

Re: change ftp port number

Posted: Wed Dec 02, 2015 2:14 pm
by rgawron
Procedure is OK.
Please paste your

Code: Select all

vsftpd.conf
and

Code: Select all

 iptables -S 
I try change on my server

Re: change ftp port number

Posted: Thu Dec 03, 2015 2:56 am
by chaiyuttochai
Here is the config
Please guide me.. thx

IPTABLE
Image

VSFTP
Image

-Did i config anythings wrong ?
I cannot logon with port 2500 then i try port 22 it still enable to logon
Am so confuse. Should it be enable to logon with port 2500 and 22 cannot am i right?

Re: change ftp port number

Posted: Thu Dec 03, 2015 9:38 am
by serverliving
What's the error message you get when connecting?.

Also did you open port 2500 through VestaCP Web interface?.

Re: change ftp port number

Posted: Sun Dec 06, 2015 9:41 am
by chaiyuttochai
SFTP return "refuse"
And i already config iptable to accept port 2500 on tcp

Re: change ftp port number

Posted: Tue Feb 16, 2016 9:25 am
by Melinda
Enter the command WRKSRVTBLE and scroll down to the services that are labeled ftp-control. Use the command ADDSRVTBLE to duplicate these entries exactly as they appear, with the exception that you will specify a new port number. To get lowercase values to stay lowercase, make sure they are enclosed in single quotes.