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

    What is pftpx?

    Scheduled Pinned Locked Moved pfSense Packages
    38 Posts 7 Posters 29.1k 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.
    • S
      sullrich
      last edited by

      If you are not using a default allow all LAN rule then this is a bug and will be fixed in the next coming weeks.

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

        Thanks Sullrich.

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

          Dear Sullrich,

          I had patched my PFsense to 1.0.1-SNAPSHOT-01-24-2007

          Referring to FTP discussion in the forum i had configure my PFSENSE as below

          WAN & LAN interface - disable the userland FTP proxy application - UNCHECKED

          My FTP server connected to LAN interface and using NAT to have its own public address.

          In firewall rules:
          LAN - server outgoing to any - FTP (21) allow.
          WAN - any incoming to FTP server - FTP(21) allow.

          When i test from public, i am able to FTP to the server public address and authenticate. However unable to transfer data or do listing.

          I assume that this latest Snapshot had fixed the bug you mentioned.

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

            also be sure wat you are doing. for passive ftp mode you need to map a large amount of tcp ports on your ftp-server and allow this ports to interact with any and cofigure this ports to be used by your ftp server for passive ftp mode. for active ftp mode you no only need to map 21 port to your ftp server, but also allow traffic going from port nr 20 to any from ftp server.

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

              The ftphelper usually takes care of all this. You only need port 21 usually and the helper will do the rest.

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

                @hoba:

                The ftphelper usually takes care of all this. You only need port 21 usually and the helper will do the rest.

                but what about multihomed multi-WAN setups? active ftp works only with ftp helper (similar to conntrack_ftp from iptables or not?)

                recently i configured my pfsense to serve dual-WAN setup. wan interface works with htp-helper and i disabled ftp helper for opt1 interface and mapped a large amount of tcp ports to the server and it works. server is configured to act with the OPT1 public IP in headers, so ftp-helper on wan interface still can work well, and connections coming from OPT1 are served too. but what to do to work with the third wan connection?

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

                  FAQ.  Multiwan and FTP do not work.

                  This has been mentioned hundreds of times on the forum and there is even a faq entry at faq.pfsense.com

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

                    Dual-WAN and ftp works well!!!!

                    but one and only bug i see is that when somebody connects to my server from WAN (where still work ftp-helper) in my server logs i see only my pfsense lan IP, not ip address of the user from outside :)

                    1 Reply Last reply Reply Quote 0
                    • R
                      rsw686
                      last edited by

                      @Mercredi:

                      Dual-WAN and ftp works well!!!!

                      but one and only bug i see is that when somebody connects to my server from WAN (where still work ftp-helper) in my server logs i see only my pfsense lan IP, not ip address of the user from outside :)

                      It will always show the pfsense ip in the server logs. Theres no way around that as pftpx is proxying the connections.

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

                        every WAN interface on my system is serving dedicated ip-networks. it is made for traffic cost economy for users from different local area networks, that didnt have free of charge peering between each other. my question is - is it possible to change ftp-servers headers (containing server IP for data transer) in passive mode based on accesing IP? i would ask this question also on filezilla server forum, but maybe you guys know.

                        or maybe its possible to get work pfsense and filezilla server alltogether? pfsense would in any way do acknowledge to the ftp server from wich interface connection is coming, some sort of ftp-helper, but server-wide :)

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

                          @Mercredi:

                          every WAN interface on my system is serving dedicated ip-networks. it is made for traffic cost economy for users from different local area networks, that didnt have free of charge peering between each other. my question is - is it possible to change ftp-servers headers (containing server IP for data transer) in passive mode based on accesing IP? i would ask this question also on filezilla server forum, but maybe you guys know.

                          or maybe its possible to get work pfsense and filezilla server alltogether? pfsense would in any way do acknowledge to the ftp server from wich interface connection is coming, some sort of ftp-helper, but server-wide :)

                          It is possible, yes, with pftpx-routeto, which is in the pfPorts collection in the tools repo.

                          Although it would require some effort to bring into our backend.

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

                            you mean we need to create bounty? :) i found one solution a minute ago, i can setup multiple instances of ftp server, listening to the different ports and fix a multiWAN issue :)

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

                              @Mercredi:

                              you mean we need to create bounty? :) i found one solution a minute ago, i can setup multiple instances of ftp server, listening to the different ports and fix a multiWAN issue :)

                              Well a bounty sure wouldn't hurt ;)

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

                                first of all what exctly pftpx-routeto can do?

                                its time to completely fix a multiwan ftp issue for all pfsense users :)

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

                                  It can route out multiple wans.

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

                                    I tried using smartFTP as the client and tested with both active and passive.

                                    But i am still unable to list the directory. I am able to authenticate to the FTP server.

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

                                      I had browse throught the forum regarding FTP. These are few doubts i am having

                                      1. I had enable FTP proxy in all interface (WAN, LAN, SYNC and DMZ) in both master and secondary PFsense. However when using following command
                                      # ps waux | grep ftp | grep -v grep
                                      proxy  1270  0.0  0.0  656  420  ??  Ss  Mon04PM  0:01.47 /usr/local/sbin/pftpx -c 8021 -g 8021 LAN Interface IP
                                      proxy  52041  0.0  0.0  656  444  ??  Ss    3:41PM  0:00.01 /usr/local/sbin/pftpx -c 8023 -g 8021 SYNC Interface IP

                                      I cannot see the other interface WAN and DMZ IP. Any other setting required?

                                      2. In syslog, i am getting this error
                                      pfsense01 pftpx[1269]: #825 server refused connection

                                      3. I am using 1:1 nat. Where the server FTP server (sitting in LAN) is NAT to a public IP address and the IP is created as CARP IP in alias too. In WAN rules, i had allow port 21 to this server. I did not used Port Forward as mentioned in forum since I am using 1:1. Is this configuration correct??

                                      As mentioned, external clients from Public Internet are able to authenticate but unable to list the directory using SMART FTP program.
                                      Any ideas??

                                      regards
                                      hsiang

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

                                        Upgrade to the latest snapshot.

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

                                          I had update both pfsenseA (master) and pfsenseB (Backup) to 1.0.1-SNAPSHOT-02-21-2007

                                          I had enable ftp-proxy (box unchecked) in all LAN, DMZ and WAN interface. But after issue command # ps waux | grep ftp | grep -v grep
                                          I still only obtain pftpx proxy for interface below only
                                          proxy  1290  0.0  0.0  656  416  ??  Ss    9:27AM  0:00.01 /usr/local/sbin/pftpx -c 8021 -g 8021 LAN
                                          proxy  8663  0.0  0.0  656  488  ??  Ss    9:42AM  0:00.01 /usr/local/sbin/pftpx -c 8023 -g 8021 SYNC

                                          In addition, problem became more messy as below:
                                          1. When i connect to one of external remote site. I am able to authenticate but unable to list the directory. ( Response: 425 Can't open data connection. Error: Could not retrieve directory listing).
                                          I tried to disable the LAN or WAN ftp-proxy. But still faced the same error.

                                          2. When i tried from internet to ftp to one of my FTP server in LAN. It having the same error too. ( Response: 425 Can't open data connection. Error:Could not retrieve directory listing)

                                          I am using FileZilla to make the ftp connection. It having the same error too when i use command prompt.

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

                                            Anyone can advise me on this…

                                            i had tried my configurations

                                            1. using both passive and active connection in FTP Client - FAILED.
                                            2. enable / disable FTP-helper in LAN and WAN - FAILED.

                                            Regards
                                            Hsiang

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