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

    Unable to connect to passive ftp

    Scheduled Pinned Locked Moved NAT
    6 Posts 3 Posters 1.6k 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
      ToXSL
      last edited by

      Hi,
          I have pfsense installed in my lan network. Whenever i try to connect ftp of my cloud servers (mainly aws servers) they give the following error in filezilla:

      " Server sent passive reply with unroutable address. Using server address instead. "

      Thanks

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

        So your server in in aws are sending rfc1918 address most likely because they behind a nat as well.  Have their ftp send the correct public IP address and that error goes away.  This has ZERO to do with pfsense.

        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
          ToXSL
          last edited by

          Thanks johnpoz for the quick reply.

          I am able to connect to the server via ftp when i am not under pfsense. The problem is somewhere in pfsense.

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            No, it isn't.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

              No sorry its not.. Unless your blocking outbound ports and only allowing specific ports.. Pfsense doesn't have anything to do with your clients connection to some box on the internet via some high port..

              Out of the box with the lan any any rule your going to be able to passive ftp… If you locked down pfsense to prevent outbound traffic on high ports then sure it could be issue connecting to passive ftp server.. But the error you gave from your filezilla client has ZERO to do with pfsense ZERO... That is the server sending some rfc1918 address vs its actual public IP.  This because the server also behind a nat..

              "" Server sent passive reply with unroutable address. Using server address instead. ""

              This needs to be corrected at the server, but your client like filezilla can handle such nonsense.  Which again is not related to pfsense..

              Here is the advice I give to pretty much anyone asking a FTP question.. First step is to actually understand how ftp works.. Which seems to be everyone asking questions about it doesn't have a clue ;)  People that understand how it works never have any issues... heheeh

              Here is great link to get you started.
              http://slacksite.com/other/ftp.html

              Why don't you turn on detailed logging in filezilla and then connect to some ftp server your trying to talk to on the data channel with passive... So here I just hit ftp.freebsd.org - when I do a directory listing via passive you can see the IP the server sends me and the port.. 1st 4 numbers are the IP, the next 2 numbers are the port via 218*256 + 26 or port 55834

              freebsdftp.png
              freebsdftp.png_thumb

              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
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                Quick. If you are going to blame pfSense describe the passive FTP process without google, etc or wikipedia.

                Chattanooga, Tennessee, USA
                A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                Do Not Chat For Help! NO_WAN_EGRESS(TM)

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