Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SFTP being blocked by IPTables

Discussion in 'General Discussion' started by connect1, Jan 16, 2015.

  1. connect1

    connect1 Registered

    Jan 16, 2015
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Every so often, I don't know what triggers it the FTP user will be presented this through FileZilla log:

    Command: PASS ************
    Response: 530 Login authentication failed
    Error: Critical error
    Error: Could not connect to server

    I've been redundantly using iptables -F which allow the SFTP to work again for a certain amount of time and then I must do it again.

    Linux version 2.6.32-504.3.3.el6.x86_64
    WHM 11.46.1 (build 4)
    CENTOS 6.6 x86_64

    I'm using pureftpd and I require the use of 'require explicit FTP over TLS'.
    I believe it has something to do with iptables blocking passive ports.
    version: iptables-1.4.7-14.el6.x86_64

    It's been a while but I've tried a few times to search the forums and google for a resolution. I modified the /etc/pureftpd file to include:

    PassivePortRange 49152 65534

    I've also tried to add this port range to iptables. I don't really know much about iptables to troubleshoot this issue. So i've just been using iptables -F. It's starting to get to the point of inconvenience and would like to fix it asap. Any direction would be appreciated.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    I suggest using a firewall management tool such as CSF to manage your firewall rules. This should address the issue.

    CSF Firewall

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice