Once you have installed the FTP server successfully, Now all you have to do is open an FTP client like FileZilla and connect to the server using its IP address, hostname or domain name. Restart the ProFTPD service: proftpd stop & service proftpd start To save firewall rules under ubuntu 14.04 server, enter: iptables-persistent save A INPUT -p tcp -m tcp -dport 21 -m conntrack -ctstate NEW,ESTABLISHED -j -A INPUT -p udp -m udp -dport 21 -m conntrack -ctstate NEW,ESTABLISHED -j -A INPUT -p tcp -m tcp -dport 49152:65534 -m conntrack -ctstate NEW,ESTABLISHED -j -A INPUT -p udp -m udp -dport 49152:65534 -m conntrack -ctstate NEW,ESTABLISHED -j -A OUTPUT -p tcp -m tcp -dport 21 -m conntrack -ctstate NEW,ESTABLISHED -j -A OUTPUT -p udp -m udp -dport 21 -m conntrack -ctstate NEW,ESTABLISHED -j -A OUTPUT -p tcp -m tcp -dport 49152:65534 -m conntrack -ctstate NEW,ESTABLISHED -j -A OUTPUT -p udp -m udp -dport 49152:65534 -m conntrack -ctstate NEW,ESTABLISHED -j -A INPUT -j DROP Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel. Then set the ProFTPD service to start at boot: proftpd defaults Status: Connection attempt failed with "ECONNREFUSED - Connection refused by server". Status: Retrieving directory listing.This is happening when using ftp client FileZilla. Status: Insecure server, it does not support FTP over TLS. Tatus: Connection established, waiting for welcome message. I encountered the following technical issues. NB: Make sure that you grant write permissions to ftp-user User and ftp-user group, and remember to replace ftp-user with your username in the next command: -R ftp-user:ftp-user /home/ftp-userĪnd if you don’t grant write permissions to your ftp-user you will definitely encounter the following errors: After installing proftpd on my ubuntu 14.04 server. My username is named “ftp-user”, please replace ftp-user with your username in the next command: adduser -home /home/ftp-user -shell /bin/false ftp-user I will disable shell access for this user by assigning the “/bin/false” shell to him to ensure that he can not login by SSH. Create FTP Userīefore you create a user for Proftpd, please add /bin/false to your /etc/shells file: echo “/bin/false” > /etc/shellsĬreate a user with a home directory where he will get access to by FTP. # Use this to jail all users in their homesĮxit and save the file with the command :wq. To limit users to their home directory uncomment the line that says DefaultRoot: Let’s edit the configuration file for ProFTPD: vi /etc/proftpd/nfĬhange the ServerName to the hostname of your server. For this installation I selected “Standalone” method, and then OK to finish the installation. There are two installation methods, inetd and the standalone. sudo apt-get install proftpdĭuring the installation, you’ll be prompted to choose the installation method that you prefer. Install ProFTPD and all required packages. sudo apt-get update -y & sudo apt-get upgrade -y First make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal. I will show you through the step by step installation ProFTPD in ubuntu 14.04 server. This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. Along with vsftpd and Pure-FTPd, ProFTPD is among the most popular FTP servers in Unix-like environments today. ProFTPD is Free and open-source software, compatible with Unix-like systems and Microsoft Windows (via Cygwin). ProFTPD (short for Pro FTP daemon) is an FTP server.
0 Comments
Leave a Reply. |