How to configure or enable passive mode in vsftpd ?

Started by Dipak Bhoi, October 02, 2014, 08:48:23 PM

Previous topic - Next topic

Dipak Bhoi

Hello Guys,

To configure passive mode in vsftp you have to add below parameters in vsftpd.conf file.

1. Login to your server via ssh over root user.

2. Open vsftp's configuration file.

Quote#vi /etc/vsftpd/vsftpd.com

3. Add following three lines into files.

Quotepasv_enable=Yes
pasv_max_port=5000
pasv_min_port=3000

4. Save and close the file. Restart the vsftpd service.

Quote#service vsftpd restart

Now you need to open this ports range into server filrewall.

If there is a APF, CSF, WHM, installed on your server then follow my post how to open ports in firewall Otherwise fire below commands.

Quote#iptables -I INPUT -p tcp --destination-port 3000:5000 -j ACCEPT

#service iptables save

Then restart the iptable service.

Quote#service iptables restart

Enjoy !!
MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.