Welcome to Centmin Mod Community
Register Now

FTP doesnt connect sometimes

Discussion in 'Other Centmin Mod Installed software' started by radbrad, May 11, 2020.

  1. radbrad

    radbrad New Member

    18
    1
    3
    Feb 15, 2020
    Ratings:
    +1
    Local Time:
    12:47 AM
    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 32bit or 64bit / CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.08stable or 123.09beta01
    • Nginx Version Installed: i.e. 1.15.3
    • PHP Version Installed: i.e. 5.6.37, 7.0.31, 7.1.21, 7.2.9
    • MariaDB MySQL Version Installed: i.e. 10.0.x or 10.1.xx or 10.2.xx
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2 or cmupdate command
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.
    I am using Filezilla for FTP. What i noticed is sometimes it doesn't connect for no reason. Im getting the error while connecting to my FTP via Filezilla

    Code:
    Status:    Connecting to XX.XXX.XX.XXX:21...
    Status:    Connection established, waiting for welcome message...
    Response:    220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
    Response:    220-You are user number 1 of 1000 allowed.
    Response:    220-Local time is now 13:38. Server port: 21.
    Response:    220-This is a private system - No anonymous login
    Response:    220-IPv6 connections are also welcome on this server.
    Response:    220 You will be disconnected after 15 minutes of inactivity.
    Command:    AUTH TLS
    Response:    502 AUTH TLS OK.
    Command:    AUTH SSL
    Error:    Could not connect to server
    Status:    Waiting to retry.
    .
    What can be the cause?
     
    Last edited: May 11, 2020
  2. eva2000

    eva2000 Administrator Staff Member

    44,163
    10,066
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,556
    Local Time:
    5:17 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    so sometimes you can and sometime you can't login ? do you log in from multiple devices without your home network ? i.e. desktop, laptop, mobile etc ?

    CSF firewall related CSF - CSF Firewall info. Similar to Sysadmin - Locked myself out due to CSF? How long is the IP blocked? maybe ?
    1. Who's your web host ?
    2. Your ISP ip address static/dynamic ?
    3. What were you doing connection wise to your server leading up to the blockage ?
    4. If you're on dynamic ip, you may need additional steps CSF Firewall as per Getting Started Guide step 4
    5. Other steps: check if you ISP ips are blocked using csf -g grep command
      Code:
      csf -g YOURIPADDRESS
      commands you can see for csf via
      Code:
      csf -h
      whitelist your ISP range of ips if you know the range
      Code:
      csf -a IPADDRESSORRANGE
      remove temp and permanent blocks from csf
      Code:
      csf -tr IPADDRESS
      csf -dr IPADDRESS
      also check CSF /var/log/lfd.log for clues. Don't post the output of this command due to sensitive info
      Code:
      tail -50 /var/log/lfd.log
      another log is /var/log/messages you can grep it for your ips. Don't post the output of this command due to sensitive info
      Code:
      grep IPADDRESS /var/log/messages
      and your /var/log/secure. Don't post the output of this command due to sensitive info
      Code:
      tail -20 /var/log/secure
    Do you have a VPN connection you can use ? Try using that to SSH into your server. If you have VPN like private one with dedicated IP, you can also whitelist that VPN IP in CSF Firewall. That's what i usually do so have multiple avenues to connect to server via SSH.