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

    Client side FTP Passive Mode after Upgrade to 2.2

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    23 Posts 9 Posters 9.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.
    • V
      valshare
      last edited by

      I have read it 5 times. Does it mean that i can't use it with the MS ftp.exe Client? I can't use a other because the software that we use need it.

      1 Reply Last reply Reply Quote 0
      • dotdashD
        dotdash
        last edited by

        If you can't edit the batch process, you might be able to find a replacement command-line ftp client that supports the correct options.
        There are plenty of choices that support passive connections, you could rename the binary. You need to know what options it's passing though.

        edit: waffling on the link, not sure it's what you need, but it's free..
        http://www.ipswitchft.com/moveit-managed-file-transfer/file-transfer/clients/moveit-freely

        1 Reply Last reply Reply Quote 0
        • V
          valshare
          last edited by

          Thanks for help out. Tomorrow i will try ncftp. Hope it will work.

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

            you can use it as long as where your connecting allows active..  Problem is with that ftp.exe I don't think you can send public IP, if your client is on private

            So in an active connection the ftp server makes the connection to the IP and port you give it with port command..  So say its ftp.pfsense.com and your on your box behind pfsense.

            In an active connection you box is on 192.168.1.100 for example.. You would send hey connect to me on 192.168.1.100 port 5001  well clearly that would not work because 192.168.1.100 is private and ftp.pfsense sure not going to be able to talk to that IP.  But with a helper pfsense wuould of change it to what pfsense wan public IP was and said oh need to forward port 5001 to 192.168.1.100

            And that is how it worked.

            In passive the server sends you the IP to connect too.  So normally clients behind pfsense don't have any issues if outbound is not locked down.  But if the passive server is behind pfsense you need to tell the server to use your public when sends the pasv command and manually forward the ports the server is going to use say 5000 to 6000.

            Problem is the ftp.exe from windows only does ACTIVE connections..

            Where is the ftp server and where is the client??  This is a great write up on how ftp works for active and passive.  This should be basic understanding for anyone using ftp even as a user if you ask me.  If you admin a firewall were firewall be used in or out of then, then yeah understanding this is mandatory.. http://slacksite.com/other/ftp.html

            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
            • jimpJ
              jimp Rebel Alliance Developer Netgate
              last edited by

              And now… https://forum.pfsense.org/index.php?topic=89841.0

              Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

              Need help fast? Netgate Global Support!

              Do not Chat/PM for help!

              1 Reply Last reply Reply Quote 0
              • D
                dlogan
                last edited by

                I'm a little confused about the ftp proxy.  Was this something that was on and working by default in 2.1.x?  Because I never configured any such proxy on the pfsense router or any settings in the ftp clients on the lan.

                But, now that I've upgraded to 2.2.2, outbound FTP file transfer is broken.

                Since I have outbound ports locked down, I'm not sure how to handle this problem.  If the ftp proxy was necessary to get ftp clients working, even if insecure, why would it be stripped out?  Why not just make it an option?  Worried about security, well now I may have to allow everything outbound just so FTP will work.  So much for blocking torrents and stuff….

                1 Reply Last reply Reply Quote 0
                • dotdashD
                  dotdash
                  last edited by

                  The proxy was built in in 2.1.x
                  It is now a package on 2.2.x If you need it, install the package.
                  Not sure what the drama is about.

                  1 Reply Last reply Reply Quote 0
                  • D
                    dlogan
                    last edited by

                    @dotdash:

                    The proxy was built in in 2.1.x
                    It is now a package on 2.2.x If you need it, install the package.
                    Not sure what the drama is about.

                    Thanks, didn't realize this.  I just installed it.  Does it require any configuration or is it seemless like before when it was built in?  The service won't start for me…does this install require a reboot or is there something I can run cmd line to get the daemon to start?

                    1 Reply Last reply Reply Quote 0
                    • D
                      doktornotor Banned
                      last edited by

                      How about you go to Services - FTP Client Proxy and configure the thing? Sigh…

                      1 Reply Last reply Reply Quote 0
                      • D
                        dlogan
                        last edited by

                        I configured the proxy the other day.  It works for some devices, but other devices have a problem with it and I have to set them statically and bypass the proxy.  The built-in proxy in the previous version of pfsense worked seemlessly.

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

                          "It works for some devices, but other devices have a problem with it"

                          Like what??  ftp is ftp is ftp is ftp.. Its either active or passive.. How exactly would proxy that opens up the ports for an active connection not work with any client sending the ftp commands?

                          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
                          • D
                            dlogan
                            last edited by

                            @johnpoz:

                            "It works for some devices, but other devices have a problem with it"

                            Like what??  ftp is ftp is ftp is ftp.. Its either active or passive.. How exactly would proxy that opens up the ports for an active connection not work with any client sending the ftp commands?

                            I don't really have the details available to me about what ftp client is even being used.  I think these are retail bar code scanner guns that when docked ftp some file to a remote location.  Some of the devices we've had to set DHCP reservations for and put in a list of IPs to bypass the ftp proxy.  Others only work if the ftp-proxy is on.

                            The pfsense logs show repetitive lines like this:

                            
                             ftp-proxy[20575]: #57 client command too long or not clean.
                            
                            

                            I have them functional, but before when the ftp proxy was built-in, I never had to mess with any of this.  So obviously the package is not the same in some way.

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

                              So its not sending valid ftp commands then?

                              Why don't you sniff and lets see the command its sending.  This way the package could be fixed to address clients sending extra info and such in their commands.

                              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.