Wednesday, September 14, 2011

How to enable passive ftp in vsftpd

Sponsored Links
This post explains how to configure or enable passive ftp in vsftpd and open the ports in csf firewall. This is configuring in centos linux. It will also work in other linux distors.

# vi /etc/vsftpd/vsftpd.conf

##Add the following lines

pasv_enable=YES
pasv_promiscuous=NO
port_enable=YES
port_promiscuous=NO
pasv_max_port=65534
pasv_min_port=49152

Save the file.


Restart the vsftpd service
#service vsftpd restart

If you are installed firewalls like csf. Open the port range in that.
#vi /etc/csf/csf.conf
<!-- adsense -->
# Allow incoming TCP ports
TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,1345,873,49152:65534"

# Allow outgoing TCP ports
TCP_OUT = "20,21,22,25,53,80,110,113,443,873,49152:65534"

# Allow incoming UDP ports
UDP_IN = "20,21,53,49152:65534"

# Allow outgoing UDP ports
# To allow outgoing traceroute add 33434:33523 to this list
UDP_OUT = "20,21,53,113,123,49152:65534"

Save the file and restart csf

#csf -r

Thats it. You rocks.
Sponsored Links

No comments:

Post a Comment

Be nice. That's all.