Hi Linux users,
This is going to be a less content blog post, I will just tell how we can install proftpd in various flavors or servers we have with us.
- How to install proftpd in CentOS and Redhat Linux:
The method is very easy as you all know, we can do it with the help of yum. Please do the below commands on the server.
# yum install proftpd # service proftpd start
Configure proftpd to run at boot time:
With the help of the below command we can configure FTP to run when the system boots up.
# chkconfig proftpd on
- How to install proftpd in Ubuntu/Debian:
On a debian/ubuntu system, we would go for the below commands to have proftpd on it.
# sudo apt-get install proftpd # sudo service proftpd start
NOTE: Open the port 21 in IP tables for FTP:
# iptables -A INPUT -s 10.75.39.1/32 -i eth0 -d 0/0 -p TCP –dport 21 -j ACCEPT # iptables -A INPUT -s 10.2.4.5/32 -i eth0 -d 0/0 -p TCP –dport 21 -j ACCEPT
In the above example, replace the networks 10.75.39.1/32 and 10.2.4.5/32 with the client network which is allowed to use FTP on server.
If you want to allow FTP from all locations, run:
# iptables -A INPUT -s 0.0.0.0/0 -i eth0 -d 0/0 -p TCP –dport 21 -j ACCEPT
That’s all, thank you for checking! 🙂