Getting Openvz VPS FTP to work with CSF Firewall

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Getting Openvz VPS FTP to work with CSF Firewall

    CSF is a great Linux firewall to use instead of raw IP tables and includes a WHM add on module for cPanel servers, but getting FTP to run successfully needs a couple of tweaks especially if the server is a VPS using Virtuozzo as not all the IP Table modules get loaded.

    As a work around you need to open more higher numbered ports so FTP can connect, in WHM go to CSF>Firewall Configuration> and allow TCP_In 30000:50000 - restart the firewall.




    Then you need to edit your ftp server to use these passive ports, so it's either pure or pro, edit the conf file:
    Code:
    /etc/pure-ftpd.conf
    Uncomment the line below:
    Code:
    # Port range for passive connections replies. - for firewalling.
    PassivePortRange          30000 50000


    Restart the FTP Server
    Code:
    service ftpd restart
    and all should be ok, make sure that the port range in both the TCP_IN and range in the ftp config are the same.

    WWW.9XHOST.NET

    #2
    its not working. i try

    Comment

    Working...
    X