How to prevent any public ftp

General support questions including new installations
Post Reply
rtcary
Posts: 140
Joined: 2005/10/13 18:40:55
Contact:

How to prevent any public ftp

Post by rtcary » 2016/08/15 21:37:57

When I type in ftp.my_domain, I am taken to /var/ftp/pub. I would like to have it so that url does not work at all.

I am use vsftp, AND I know just enough Linux to get into trouble :-).

With appreciation...

Todd

mghe
Posts: 766
Joined: 2015/11/24 12:04:43
Location: Katowice, Poland

Re: How to prevent any public ftp

Post by mghe » 2016/08/16 13:45:35

You can disable it by firewall for outside server clients, by DNS to disable sub domain entry, and by services to disable ftp services.

Simply disable services :

# service vsftpd stop

check service level on

# chkconfig --list vsftp

and disable it by

chkconfig --level 3 vsftp off <- depend of: chkconfig --list vsftp

Post Reply