Unable to connect via FTP

Discussion in 'Installation/Configuration' started by rezz, Apr 25, 2024.

Tags:
  1. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    Ok, well thing is... if you used the codes above, you unlikely used passive mode, or did you?
    Looks like too few ports or an issue with the firewall in general still .
     
  2. rezz

    rezz New Member HowtoForge Supporter

    Yeah I specifically used
    Code:
    For explicit TLS / SSL:
    set ftp:ssl-force true
    connect ftp://ftp.domain.tld
    I'll play around some more with the firewall settings on the provider side I guess
     
  3. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    I meant, please try passive mode on the server, too =)
    Good luck!
     
  4. rezz

    rezz New Member HowtoForge Supporter

    Ah lol apologies. Just tried with passive mode on and I was able to connect just fine and list dirs as well

    Code:
    lftp :~> set ftp:passive-mode on
    lftp :~> set ftp:ssl-force true
    lftp :~> connect server.com
    lftp server.com:~> login user
    lftp [email protected]:~> ls
    drwxr-xr-x   11 0          0                4096 Apr 25 14:43 .
    drwxr-xr-x   11 0          0                4096 Apr 25 14:43 ..
    drwx------    2 5016       client6          4096 Apr 25 01:28 .ssh
    drwxr-xr-x    2 0          0                4096 Apr 25 01:28 backup
    drwxr-xr-x    2 5016       client6          4096 Mar  4 18:30 cgi-bin
    drwxr-xr-x    3 0          0                4096 Apr 25 14:43 home
    drwxr-xr-x    2 0          0                4096 Apr 27 00:08 log
    drwx--x---    2 5016       client6          4096 Mar  4 18:30 private
    drwxr-xr-x    2 0          0                4096 Apr 25 02:24 ssl
    drwxrwx---    2 5016       client6          4096 Apr 25 01:28 tmp
    drwxr-x--x   15 5016       client6          4096 Mar  5 17:02 web
     
    ahrasis and ztk.me like this.
  5. rezz

    rezz New Member HowtoForge Supporter

    So I completely disabled the provider firewall and retried with filezilla and winscp and was still unable to connect...

    To confirm the firewall was actually disabled, I accessed the ispconfig portal from a different IP and it loaded up just fine.
     
    Last edited: Apr 30, 2024
  6. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    Really strange. And even harder to debug ugh.
    Usually I'd setup a virtual network with some VM at home and use some snapshots of whatever is broken.
    If that works, it could be a "hidden" firewall or anti ddos implementation gone wrong or whatever imagination can offer :/
    A plus for a local lab is, one could watch the local ufw firewall ( which I assume is enabled ) and check if some drop / reject counters increase ; but with a machine on the internet, they always will.

    Even found (1) something on the net where it is claimed a
    update-ca-certificates --fresh

    is part of the solution, though I have a hard time beleiving it, I can not say it's invalid to give it a try.


    (1) https://askubuntu.com/questions/150...sues-on-ubuntu-22-04-issues-with-dell-library
     

Share This Page