Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    FTP connection error via filezilla

    Scheduled Pinned Locked Moved NAT
    6 Posts 2 Posters 512 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      twg
      last edited by

      hello can anyone help me
      I have this ftp folder error
      State: The server sent a passive response with a non-routable address. Using the server address as an alternative.
      Command: MLSD

      johnpozJ 1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator @twg
        last edited by johnpoz

        @twg is some server out on the internet, is your server behind pfsense?

        This really isn't a pfsense issue.. The ftp server should be setup to send its public IP..

        If your using filezilla as a client you could set this..

        client.jpg

        if you are setting up a server, you need to set the public IP for passive mode.. Should of asked you this when ran through the wizard

        ftpserver.jpg

        or set here.. where I have 1.2.3.4 that would be your actual public IP.

        orsethere.jpg

        If this server is one your running behind pfsense, and outside users are wanting to connect using passive you would also want to set a specific passive port range and then forward that on pfsense to the ftpservers rfc1918 address.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • T
          twg
          last edited by

          Hi, thanks for your help, but it's still giving me an error:
          Command: MLSD
          Error: Connection timed out after 20 seconds of inactivity
          Error: Failed to get folder list

          johnpozJ 1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator @twg
            last edited by johnpoz

            @twg and again where is the server, where is the client?? Is it your server?

            Is its still sending bad passive? And you tried to override that with that filezilla client setting?

            BTW: why anyone still uses ftp is beyond me.. If this was sftp, which is only using the single port 22, then you wouldn't have the issue of nat and control channel and data channel or passive vs active..

            Is this server managed by you and outside pfsense on the internet, or you are hosting it behind pfsense - and your client is out on the internet? or is it some server out on the internet managed by someone else?

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 0
            • T
              twg
              last edited by

              Hello
              email server is on my server within my network pfsense is used to manage the links and the firewall is just not running ftp other services are ok

              johnpozJ 1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator @twg
                last edited by johnpoz

                @twg

                Where are you trying to ftp from?? Where is the client?

                So this server is on say 192.168.0.100 behind pfsense.. And you out on the internet want to ftp to it..

                So you forwarded 21 to your ProFTPD Server (ProFTPD) [192.168.0.122] on pfsense.. Did you forward the passive ports? You setup in proftpd to use?

                Did you setup proftpd to send your correct public IP?

                I connected to the IP you use to connect to the forums so I could see if ftp even answered.

                For passive to work, you also have to forward the ports the server will use for its passive ports.. I can not get logged into see what it sends, If you PM me an account that would work I could see what its sending for the port, or try active where it would connect to my client.

                Is your server a plesk?

                https://www.plesk.com/kb/support/how-to-configure-the-passive-ports-range-for-proftpd-on-a-plesk-server-behind-a-firewall/

                It defaults to a really large passive range 49152-65535 , I would for sure change that to something more like 100 ports or even just 10 if you don't have lots of clients at the same time.. Then you need to forward those ports on pfsense to I assume 192.168.0.122, without the passive ports being forwarded then no the data channel will never work when the client uses passive mode. Even if you told the client to use the IP you connected to when the server sends rfc1918 IP.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.