Block FTP access using the IPtables(Default system firewall) 1) If you want to completely disable the FTP access on the server then run the command : ROOT@SERVER[#] IPTABLES -A INPUT -P TCP –DPORT 21 -J DROP 2) If you want to block FTP access for a Specific IP then run the below command : ROOT@SERVER[#]