HOW TO CHANGE FTP PORT IN KLOXO

Login to your vps by using root access on ssh (port 22).

Your pureftp configuration is in /etc/xinetd.d/pureftp, edit this file using text editor such vi or vim, this time I use vi as text editor. By default it will looks like

{

disable = no
socket_type     = stream
wait            = no
user            = root
server          = /usr/sbin/pure-ftpd
server_args     = -A -c5000 -C8 -D -fftp  -H -I15 -lpuredb:/etc/pure-ftpd/pureftpd.pdb -lunix -L2000:8 -m4 -s -p30000:50000 -U133:022 -u100 -Oclf:/var/log/kloxo/pureftpd.log -g/var/run/pure-ftpd.pid -k99 -Z -Y 1
groups          = yes
flags           = REUSE

}

 

  • At the first line “service ftp” change to “service pureftp”
  • save the file and exit vi.
  • Now edit /etc/services and look for these line
    ftp             21/tcp
    ftp             21/udp          fsp fspd
  • copy these line and add 2 more lines as below
    pureftp         20021/tcp
    pureftp         20021/udp               fsp fspd
    ftp             21/tcp
    ftp             21/udp          fsp fspd
  • save the file and exit.
  • Restart xinetd

service xinetd restart

Check all of listen port :

netstat -an | grep LISTEN

 

There is no more listen on port 21 but you will find on port 20021

tcp        0      0 0.0.0.0:20021               0.0.0.0:*                   LISTEN

 
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s