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

    FTP Client Proxy Package

    Scheduled Pinned Locked Moved Cache/Proxy
    69 Posts 37 Posters 73.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.
    • F
      Fiden
      last edited by

      Jimp,
      PLease could you tell me how to add the ftp-proxy package to pfsense.

      Thank you so much

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        It's a package, so it installs like any other package from System > Packages.

        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
        • W
          wgr
          last edited by

          Hello,

          in the field "Proxy Bypass: Source "I can "Enter an IP address or alias for source client host(s) which should bypass the proxy.", to exclude Clients from the proxy, right?

          I have to use a vice versa scenario. That means, only certain computers or users are allowed, to use ftp, all others (more than 600) are not allowed. Since the user defined rules seem to be behind the ftp-proxy rules (which are dynamic?), it's not possible to set the needed ftp-restrictions in the user defined rules.

          How can I solve this problem?

          Best regards Werner

          1 Reply Last reply Reply Quote 0
          • jimpJ
            jimp Rebel Alliance Developer Netgate
            last edited by

            If the other users should not be able to reach FTP servers, make sure "Early firewall rule" is unchecked in the FTP Proxy options and then put in a block rule to prevent them from reaching FTP at all.

            pass tcp from <people allowed="" to="" reach="" ftp="">to any port 21
            block tcp from any to any port 21

            If they should be allowed to reach other FTP servers just not using the proxy, there is not currently a way to accommodate that in the package at this time.</people>

            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
            • M
              michaelL
              last edited by

              I installed this into PFSense because we just made the switch over from an Apple router to a Soekris box with PFSense installed. FTP wasn't not working at all, I tried making multiple firewall rules and installing this package has completely fixed any issue we had with FTP. Thanks for the product!

              1 Reply Last reply Reply Quote 0
              • G
                GreggN
                last edited by

                I'm probably making some simple mistake, but ftp client proxy package isn't working for me.  My pfsense firewall has a static IPv4 WAN address.  The LAN address is a typical RFC1918 address.  The squid package is working fine with the clients explicitly specifying the proxy in their browser configuration.  I'm not using transparent proxy because this pfsense firewall isn't my default route. pfSense version 2.3.1-RELEASE-p1.  I've tried with filezilla and a couple other ftp clients, but haven't found a working combination of settings yet.  I'm configuring the ftp client to connect to the LAN address of pfsense on port 21, with Passive mode, using the USER@HOST type of proxy.  I've also tried Active mode, and port 8021 and many other variations.  Usually my ftp client software shows that it's connected to the LAN address of pfSense, and then just times out waiting for the Welcome message.

                What mistake am I making?

                1 Reply Last reply Reply Quote 0
                • jimpJ
                  jimp Rebel Alliance Developer Netgate
                  last edited by

                  The FTP client does not connect to pfSense on port 21. It connects to the actual FTP server directly and the proxy intercepts.

                  Though if you have a proxy like squid explicitly configured in the client, it may be using that for FTP, depending on your proxy settings.

                  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
                  • G
                    GreggN
                    last edited by

                    Thanks for the quick reply.  Our previous ftp proxy required us to configure the ftp client software to talk to the proxy, which would then pass the communications out to the ftp server and return the responses to the ftp client.

                    If I'm understanding your answer, the FTP Client Proxy Package for pfSense only works in transparent mode, intercepting ftp communications and facilitating them in some way.  I'm afraid that we can't restructure our entire network to make all traffic flow through this single firewall, so this isn't a solution for me.

                    Thanks anyway.

                    1 Reply Last reply Reply Quote 0
                    • J
                      jordi
                      last edited by

                      Thanks for this package.

                      We are in a multi-wan configuration, with a special failover configuration. Some specific outbound connections use WAN1 as gateway and the rest use WAN2.

                      In our case, instead of 'Proxy Bypass' addresses, we would need it the other way round: use it for specific outbound connections (all using WAN1), and bypass the rest.
                      As it is now, when we activate this package, all problematic connections going through WAN1 work (great!), but then all FTP connections using WAN2 stop working… we cannot set all FTP through WAN1.

                      Is there any way to get this?

                      Thanks a lot for your help.

                      Regards from Barcelona,
                      Jordi.

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        No, there is no way to accommodate policy routing or use any WAN but the default gateway, the ftp-proxy daemon is not capable of it.

                        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
                        • J
                          jordi
                          last edited by

                          @jimp:

                          No, there is no way to accommodate policy routing or use any WAN but the default gateway, the ftp-proxy daemon is not capable of it.

                          Thanks for your fast response. I get it.

                          Anyway, In our case an option just the opposite to 'Proxy Bypass: Destination' (something like 'Proxy Use: Destination' - and bypass every other IPs) would do it. I drop it just in case you are looking for new features to add in the next release  ;)

                          Thanks again.

                          Regards from Barcelona,

                          Jordi.

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

                            Hi,
                            I have a problem with the FTP Proxy package on pfSense 2.2.2.
                            I opened a thread about this problem: https://forum.pfsense.org/index.php?topic=113899.0
                            Thanks!

                            1 Reply Last reply Reply Quote 0
                            • J
                              Jorval
                              last edited by

                              Thanks jimp for this Package!

                              i had trouble with an external ftp connection.
                              installed your package and it worked right out-of-the-box!

                              thanks a lot.

                              1 Reply Last reply Reply Quote 0
                              • I
                                itd
                                last edited by

                                Hi

                                Is this package compatible with 2.3.1-RELEASE-p5?

                                Best regards

                                Steve

                                1 Reply Last reply Reply Quote 0
                                • M
                                  Marlenio
                                  last edited by

                                  Yes, it is. If found in package list, then it's compatible.  :)

                                  Marlenio

                                  1 Reply Last reply Reply Quote 0
                                  • M
                                    mka
                                    last edited by

                                    @Marlenio:

                                    @Marlenio:

                                    @jimp:

                                    Make an alias and put the alias name there.

                                    Thanks in advance. :) :)

                                    I try. I made an alias with two Ip and put the name in "Proxy Bypass: Destination", restart service, but it doesn't works.

                                    EDIT: alias works if declare IPs like a "/32" network, but not like single host. :)

                                    Did not worked for me but a workaroud is to create a NAT rule per destination on port 21 and tick the "No RDR (NOT)" option to bypass the proxy.

                                    1 Reply Last reply Reply Quote 0
                                    • S
                                      shaunikwadhawan
                                      last edited by

                                      Hi All,

                                      I am facing an issue where I cannot get my clients(on WAN side) to connect to FTP server (On LAN side). I have installed the ftp-proxy and also included the conntrack and passive rules to the ftp server. Whenever I try to connect via Filezilla it disconnects right after the PASV command.

                                      Below is the network:

                                      3750 Switch (WAN) >>>>>(WAN)Pfsense(LAN)>>>>>FTP Server.

                                      When I run a copy ftp command it times out. I can telnet to port 21 and without pfsense it works just fine.

                                      Windows cmd ftp works fine and filexilla work fine for active mode. However for passive I just cant seem to connect.

                                      Appreciate your help.

                                      Thanks.

                                      1 Reply Last reply Reply Quote 0
                                      • jimpJ
                                        jimp Rebel Alliance Developer Netgate
                                        last edited by

                                        This proxy is not intended for that scenario, it is for clients on LAN connecting to remote FTP servers. Please start a new thread for that question.

                                        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
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.