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

    FTP Clients cant download Files from External FTP Server - Pfsense Config Help

    Scheduled Pinned Locked Moved NAT
    6 Posts 2 Posters 3.8k 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.
    • H
      humps
      last edited by

      I'm Running Pfsense 2.0.1 with Dual WAN fail-over (2 WAN + 1 LAN - No Load Balancing)

      I Close all Outgoing Ports on Pfsense and only open Ports that i use ie. 20,21,445,80,etc

      I'm having problems downloading files from External FTP servers (ftp.server.com) using any FTP client (Filezilla)
      I can connect to the FTP server and login to the server but i cant list directory or download any files - error: 425 Can't open data connection.

      I think the problem has to do with how Passive FTP Servers Work with incoming connections on a HIGH ports, i have not figured out how to fix this problem regardless of countless reading on the forums and the wiki plus numerous configurations but still no luck….... :-[
      Right now i feel so confused, i'm tired of reading, i've removed all my configurations and ready to start from scratch can someone share there setup and breakdown it down slowly so i can understand how to configure Pfsense for FTP.

      Any Help Appreciated
      Thanks Much

      1 Reply Last reply Reply Quote 0
      • H
        humps
        last edited by

        ??? *bump
        still here…...trying to get some help with this problem
        any help appreciated

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

          well if you have ports closed - then no your not going to be able to ftp on the data side..  Because its not going to use the ports you have open.

          Here is a good writeup on how ftp both active and passive work.
          http://slacksite.com/other/ftp.html

          So in active connection server would be making the connection back to you from source port 20 to some random port the client sent to the server.  So do you have helper running that would open that connection based upon what it saw in the control connection to what the client sent the server?

          In an passive connection the client would make some connection to a random high port that the server used.  Port 20 wold never be used in this type of ftp.

          If your wanting to lock down traffic – best is to allow all ports to IP of whatever ftp server you want to access.

          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
          • H
            humps
            last edited by

            Thanks for the Link, it was a good read . . . ;)

            @_" If your wanting to lock down traffic – best is to allow all ports to IP of whatever ftp server you want to access."_

            Ok Thanks I will try that

            I May also try opening all outbound ports for the Specific IP address of the computer that need access to a FTP Server.

            Sorry for the late reply

            Thanks again
            Much Appreciated

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

              but that would allow that ip to do whatever it wanted on anything.  It would be more secure to just allow all ports, or at least the high ports to the ip of the ftp server they need access to.

              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
              • H
                humps
                last edited by

                @It would be more secure to just allow all ports, or at least the high ports to the ip of the ftp server they need access to.

                You are so RIGHT…I will take your advice as it relates to the above

                Thanks Much again

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