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

    Outbound and inbound FTP stopped working

    Scheduled Pinned Locked Moved NAT
    45 Posts 3 Posters 11.7k 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.
    • K
      kcpoole
      last edited by

      @johnpoz:

      So filezilla works in what test you uploading to whlac.org.au in passive mode? When I tried just now yep

      So 182.50.153.244 is the webhost ftp server you need to send stuff too.  And your doing this from something on your 192.168 network..  Why can you not just use passive?  What ftp client are scripting to?  Windows build int ftp?
      YEP, batch file that does a billion other things too and has been running for about 4 years now, behing pfsense for 2 years no issue

      You can script filezilla easy..  Or  you could use winscp again scripts easy.
      Yep and I then need to rewrite other apps to go and call a windows app to fix what went wrong.

      If on linux what ftp client are you using? ftp command line. it is a server so no X server

      So when you used active connection pfsense changed the IP for your port command, and sent on the syn part of the connection from the server as you saw that on your sniff.  But your client did not respond..
      So traces tell us, When I set pasv in the FTP comand it still no work.

      So you have something wrong on your client.  Possibly but why would 4 different clients ( 2 win2003, 1 x win 2008, and Debian ( server) all break at the same time?

      When you test from filezilla did you test both active and passive - did that work?  Or just the passive worked? Passive worked ( the default) so did not test further, I might later if get time

      As to webhost not supporting sftp, that is easy enough - change webhosts ;)  Run your own vps, etc. Its not like you can not host a website at a billion different places.  If one doesn't provide the services you want - move to one that does ;)
      It not my Webhost or my Script. I host the application on my server for a client. I have no control over their webhost or application.

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

        So if it was pfsense - why would filezilla work?  Test the active connection using filezilla.

        As I stated from the beginning understanding ftp is key to troubleshooting this.  Why would you not test the active???  Just to have the info, be it you use it or not.  And pretty sure that is what your script it using.

        Your going to have to follow the path..  Sniff traffic on both sides of pfsense, are the ports right for the command given.  Clearly taffic was sent to your client from pfsense.  So why did it not respond??

        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
        • K
          kcpoole
          last edited by

          @johnpoz:

          Clearly taffic was sent to your client from pfsense.  So why did it not respond??

          Absolutely no idea which is why this is swo frustrating.

          The only common thing between any of this is PFsense, Differnet FTP site works, Different client works, Seems that different FTP application works too, but I need to investigate that more it seems.

          Ken

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

            So different ftp sties work, different clients works.  You have validated that pfsense is doing what it is suppose to do - yet you still think pfsense is the issue :rolleyes:

            You have a sniff of pfsense sending your ftp machine traffic, and that machine not answering - but hey its pfsense, dude really??

            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
            • K
              kcpoole
              last edited by

              @johnpoz:

              So different ftp sties work, different clients works.  You have validated that pfsense is doing what it is suppose to do - yet you still think pfsense is the issue :rolleyes:

              You have a sniff of pfsense sending your ftp machine traffic, and that machine not answering - but hey its pfsense, dude really??

              Rep Really!

              Finally had a chance to dedicate some time to this again and schedule downtime to try some things.
              First one was to install a new firewall with no rules aside from the default outbound nat and an inbound rule to my protected server i am using to upload from.

              Happy to say the result is that ftp upload works perfectly thru the newly installed  firewall.

              Reinstalled all of my other firewall rules and services to my hosted network and all is good.

              I have no idea what has caused pfSense to break, but it most definitely did. From now on I will ensure that i will always have a second device to failover to, or a method to easily roll back to known good configuration at all times.

              Thanks for your assistance

              ps, if anyone is interested I can make available a vmware backup of the installation to facilitate further analysis.

              Ken

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

                "I have no idea what has caused pfSense to break"

                You had a sniff of pfsense sending the traffic on - how is that pfsense broke??

                pfsensesendingtraffic.png
                pfsensesendingtraffic.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
                • K
                  kejianshi
                  last edited by

                  Its sorta easy to change something you thought was small and break things…
                  Which takes me back to my statement 2 months ago.  Wipe, reinstall.

                  1 Reply Last reply Reply Quote 0
                  • K
                    kcpoole
                    last edited by

                    @kejianshi:

                    Its sorta easy to change something you thought was small and break things…
                    Which takes me back to my statement 2 months ago.  Wipe, reinstall.

                    Update from last night, the problem reappeared this morning with the new install.

                    reinstallagain with only no inbound rules at all and the default outbound NAT rules applied. Same thing is still happening. Not able to get the FTP data transfer happening.

                    In order to test i rejigged the windows host to bypass the firewall and connect directly to the internet FTP up and down works fine.

                    I have found a few posts on issues with Pfsense and Vmware Nics, has anyone ever experienced issue with PFsense on vamware ( esxi ) before?
                    In the original post on the subject I mentioned that the problem first arose after an unclean shutdown of the host. the only thing i can think of now is some weird interaction between Vmware and Pfsense

                    Ken

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

                      I am running pfsense on esxi, have been for years.

                      Dude you did a sniff on pfsense showing it sending the traffic on - and I thought you even had a sniff on the client seeing the traffic???  If not do that test again..

                      Seems to me is your ftp client/server is the problem and your looking in the wrong place..

                      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
                      • K
                        kcpoole
                        last edited by

                        yep we had packet captures that showed traffic both inside and out.

                        The ftp server my users are trying to connect to is accessible with no issue, from every other network / internet connection I have access to (6 different sites), and with as many different clients. Windows, Linux, smartphone. The ONLY site I cannot connect from successfully is those behind the PFsense ( and monowall) firewalls running i have tried on this Vmhost.
                        A windows server on the same vmnetwork but outside the firewall can ftp OK.

                        The FTP server running behind this same vmhost, shows the same issues when trying to connect from outside regardless of what firewall I use. From within the VM network, I can connect to the ftp service running internally withing the protected network as long as do not have the firewall as the default gateway.

                        It seems that any connection to an FTP server that has the firewall in the path in any fashion fails.

                        As i mentioned all was working successfully with no changes to any of the clients, hosts, and networks up until the Vmserver was forced down.

                        The only thing I can now try is to replace the vmhost host itself ( or reinstall ESXi ) and see if the problem still persists.
                        The vmhost is the only place it can be failing.

                        Ken

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