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

    remote ftp ssl access failed

    Scheduled Pinned Locked Moved Firewalling
    59 Posts 4 Posters 12.2k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator @sasa1
      last edited by johnpoz

      Ok - you send the hello... Then the server closes the session (fin,ack) vs sending back the server hello

      This has nothing to do with pfsense.

      fin.jpg

      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

      S 1 Reply Last reply Reply Quote 0
      • S
        sasa1 @johnpoz
        last edited by

        @johnpoz I have tried from many servers that they are on distinct networks (even geographically distant) but when I am behind pfsense I always have the same problem.
        how can such a thing happen?
        thanks.

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

          I have no idea - I am behind pfsense, zero issues as you have seen. But clearly the server sends you a FIN vs server hello.. How does that have anything to do with pfsense?

          Are you running IPS on pfsense? pfsense has nothing to do with this communication, it passes traffic or it doesn't.. Its not going have the server send you a FIN..

          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

          S 1 Reply Last reply Reply Quote 0
          • S
            sasa1 @johnpoz
            last edited by

            @johnpoz I also tried on a new PC with Windows 10 (the other PCs are with Windows Server), only the operating system and nothing else and I have the same error message.

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

              Maybe the site doesn't like your IP?

              The server is sending you a fin vs server hello.. Contact them.. Pfsense doesn't send fin in place of server, the server your talking to does that.

              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

              S 1 Reply Last reply Reply Quote 0
              • S
                sasa1 @johnpoz
                last edited by

                @johnpoz I also tried from other networks (with different public IP address) but unfortunately the behavior does not change
                I cannot understand how this situation is possible
                anyway thanks for the support

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

                  I don't understand it either.. I have no issues, using pfsense (pfsense wouldn't interfere with traffic anyway).. its either allowed or its not.. Your allowed to talk to the server via port 21... The same session is used to. Your seeing a fin back from the server, pfsense can not send those.

                  Can you send me a pcap from the wan side this time to validate that the client hello is being sent out the wan.. you can send to the same email address you did before.

                  Its possible with IPS that the client hello is being blocked, and then the server says well no client hello so just close.. Are you running ips - Snort? Or Suricata?

                  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

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

                    I got your latest email, not the actual capture but a picture.

                    In that looks like your sending fin to server, vs your hello.

                    Again I ask are you running IPS? The lan side sniff does not match up with the wan side. On the lan your showing sending a client hello and server sending back fin. But on wan side looks like your just sending fin and not the client hello.

                    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

                    S 1 Reply Last reply Reply Quote 0
                    • S
                      sasa1 @johnpoz
                      last edited by

                      @johnpoz I sent you the .cap file, I don't use any IPS.
                      Thanks.

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

                        I got your email - no cap attached as stated in the email.

                        edit: Never mind I see it..

                        Dude I have no idea - your lan sniff shows client hello sent.. Then server sends you fin.. On your wan sniff you only send fin, no client hello..

                        Do a sniff at the same time.. But no its never going to work if you send fin vs client hello.

                        edit: ssh to pfsense twice.. then run two captures using tcpdump writing them to files. Using your interfaces vs mine where igb0 and igb1 are lan and wan on my setup.

                        sametime.jpg

                        We can then merge these sniffs and take a look at what is going on lan and wan at the same time

                        Here for example

                        merge.jpg

                        You can grab the files you write via tcpdump by just sftp to your pfsense box..

                        You can see via the timestamps, etc.. as you see my client sends the hello and then .000019 seconds later it leaves the wan... packets 13 and 14 in the above picture.

                        please do such a capture and send me the files. This is turning out to be quite odd issue for sure..

                        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

                        S 1 Reply Last reply Reply Quote 0
                        • S
                          sasa1 @johnpoz
                          last edited by

                          @johnpoz hi, I have sent you the two requested files.
                          Thanks.

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

                            Those are not taken at the same time...

                            Sniff at the SAME TIME!!!

                            I want to see what goes in, and then what comes out... You can not do that when you sniff on one side, and then sniff on the other side and run the test again.

                            The easy way is open 2 ssh sessions to pfsense.. So you can run sniff on lan and one on wan running at the same time.

                            It would be nice if way to do it in the gui - but I do no think there is..

                            Another way is you could do 1 in the gui, and the other one via tcpdump via ssh session.

                            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

                            S 1 Reply Last reply Reply Quote 0
                            • S
                              sasa1 @johnpoz
                              last edited by

                              @johnpoz sorry, now i did the capture at the same time and i sent you the files

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

                                Your running this all on vmware..

                                What are you running on pfsense - any packages, the ftp client proxy maybe? How exactly do you have this setup in vmware?

                                Pfsense would not send a fin on behalf of a connection out of the box..

                                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

                                S 1 Reply Last reply Reply Quote 1
                                • S
                                  sasa1 @johnpoz
                                  last edited by sasa1

                                  @johnpoz yes, the client ftp proxy service is running on LAN interface.

                                  this is the problem !! i disabled the ftp proxy client service and i managed to connect in ftp !!!

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

                                    Where you listening on port 21? Ok yeah I enabled this is and instantly fails.. Why did you not mention you were running this from the get go? This would never work with ftps because it can not see the control connection. Pretty sure I mentioned that early in the thread..

                                    It won't work because the ftp active helper can not open the port on pfsense for the connection from the server to client in active mode. And I don't have the active ports forwarded by hand.

                                    I guess I should of been more clear on that - and asked up front about running the proxy. But since this proxy helper does not work with tls, why would you have it enabled?

                                    Glad finally sorted - and will make it easier to find the next time someone has a sim issue..

                                    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

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      sasa1 @johnpoz
                                      last edited by

                                      @johnpoz I apologize for not having clearly written that I use ftp proxy client, this service is enabled as I need it for other vm that have different needs.

                                      Thanks for your help and patience with me.
                                      Regards.

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

                                        That is not needed unless your accessing a ftp via active...

                                        Ftp is dead, should of been 10 years ago..

                                        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.