The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SFTP being blocked by IPTables

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

  1. connect1

    connect1 Registered

    Joined:
    Jan 16, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page