Deploy FTP from NAT VPS

Deploying an FTP server is not that hard for NAT VPS. All you need to do is understand which port available for your VPS. Please refer to your client area “Additional Information”.

I prefer recommend Centos 7 or Almalinux 8 for deploying FTP server. Let’s get started.

Now first make sure all packages are updated and reboot.

yum update -y; yum install epel-release -y; reboot

Install vsftpd

yum install vsftpd -y
systemctl enable vsftpd
systemctl start vsftpd

Now configuring vsftpd

cp /etc/vsftpd/vsftpd.conf /etc/vsftpd/vsftpd.conf.default
vi /etc/vsftpd/vsftpd.conf

And mke a changes for this :


Take a look on listen_port. This should replace with your active ports, for example 2201. As well ftp_data_port we can replace it 2201.

For passive port, this should be change in order FTP NAT VPS to work. Replace it with your available ports. I recommend to use 2 ports as well. For example pasv_min_port=2203 and pasv_max_port=2204. This counted as 2 ports.

Now restart service because there are some changes.

systemctl restart vsftpd

Now create a user. And make sure create a strong password.

adduser newuser
passwd newuser

Now we add the userlist and adjust the folder.

echo 'newuser' | sudo tee –a /etc/vsftpd/user_list
sudo mkdir –p /home/newuser/ftp/upload
sudo chmod 550 /home/newuser/ftp
sudo chmod 750 /home/newuser/ftp/upload
sudo chown –R newuser: /home/newuser/ftp
systemctl restart vsftpd

Now you ready for use this FTP server on NAT VPS.

Leave a Reply 0

Your email address will not be published. Required fields are marked *