Re: Ftp connect only selected ip es
Please do not post support questions in General Lounge. General Lounge is meant for off-topic conversations that are not about cPanel. This question is related to something that is part of cPanel, so I moved it to a more appropriate section.
You can restrict access to FTP in the WebHost Manager, in
Home » Security Center » Host Access Control. This is documented here:
http://documentation.cpanel.net/display/ALD/Host+Access+Control
Note that you must use ProFTPd for this. Pure-FTPd will not respect the rules you set in
Host Access Control. You can switch from Pure-FTPd to ProFTPD in
Home » Service Configuration » FTP Server Selection.
Port 21 is the standard FTP port, and FTP clients expect to use it. Because of that, changing the FTP port is generally a bad idea. You can effectively restrict access using
Host Access Control. Note that
Host Access Control will not prevent an unwanted visitor from making a connection, but it will prevent it from logging in.
Another option is to configure the iptables firewall on your server to block the unwanted IP addresses. cPanel does not provide a firewall configuration tool, so you may want to install a third-party tool like CSF or APF if you have not done so already. Information about those tools is available on their respective sites:
ConfigServer Security & Firewall
https://www.rfxn.com/projects/advanced-policy-firewall/