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

    VPN point to point

    Scheduled Pinned Locked Moved General pfSense Questions
    40 Posts 2 Posters 3.3k 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.
    • R
      rmainero @stephenw10
      last edited by

      @stephenw10 Captura de pantalla 2023-09-26 071455.png Captura de pantalla 2023-09-26 071354.png

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        That looks like the same side of the tunnel. Do you have any logs from the other side?

        R 1 Reply Last reply Reply Quote 0
        • R
          rmainero @stephenw10
          last edited by

          @stephenw10

          Do you want any record on the side of the cisco?

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Any errors shown. From the pfSense logs it looks like the other side is either not seeing packets we are sending or is rejecting them.

            R 1 Reply Last reply Reply Quote 0
            • R
              rmainero @stephenw10
              last edited by

              @stephenw10 said in VPN point to point:

              Any errors shown. From the pfSense logs it looks like the other side is either not seeing packets we are sending or is rejecting them.

              Ok, I'll send them to you tomorrow, because now it's up and working.

              R 1 Reply Last reply Reply Quote 0
              • R
                rmainero @rmainero
                last edited by

                @rmainero

                you can pass me an email where you reverse a full video of the error

                1 Reply Last reply Reply Quote 0
                • stephenw10S
                  stephenw10 Netgate Administrator
                  last edited by

                  You can upload files for me here: https://nc.netgate.com/nextcloud/index.php/s/ai7Km5LsYWZRQMf

                  R 1 Reply Last reply Reply Quote 0
                  • R
                    rmainero @stephenw10
                    last edited by

                    @stephenw10
                    I already uploaded the file

                    1 Reply Last reply Reply Quote 0
                    • stephenw10S
                      stephenw10 Netgate Administrator
                      last edited by

                      Hmm, nothing instantly jumps out but something that can cause a connection to succeed once then fail is an encryption mismatch at phase2. If it matches phase1 it will initially use that for phase2 in an IKEv2 connection but then fail at rekey. Check that.

                      It could also be something con figured with more allowed at one end. So pfSense will allow connections that configured with one of the enabled algorithms but the other end might only have one.

                      If you can copy/paste the complete logs from when it's failing it's much easier to review than a video.

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        rmainero @stephenw10
                        last edited by

                        @stephenw10 said in VPN point to point:

                        If you can copy/paste the complete logs from when it's failing it's much easier to review than a video.
                        Captura de pantalla 2023-09-27 070335.png

                        debug cisco 881.txt

                        1 Reply Last reply Reply Quote 0
                        • stephenw10S
                          stephenw10 Netgate Administrator
                          last edited by

                          When does it fail, after how long? When it first rekeys?

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            rmainero @stephenw10
                            last edited by

                            @stephenw10 said in VPN point to point:

                            When does it fail, after how long? When it first rekeys?

                            I pick it up at 7 am and at 14 pm it falls off and I pick it up again manually. If you think I can give you access to see the team as a whole, my English is not very good

                            1 Reply Last reply Reply Quote 0
                            • stephenw10S
                              stephenw10 Netgate Administrator
                              last edited by

                              Mmm, it looks like the re-auth time is ~7h so that lines up; it fails at re-auth.

                              Really I would want to see the full log from both sides covering the time where it tries to re-auth and fails.

                              I would also compare the VPN config from both sides carefully. It looks like one side allows connections the other side would refuse.

                              The error shown is a key mismatch:
                              https://docs.netgate.com/pfsense/en/latest/troubleshooting/ipsec-logs.html#phase-1-pre-shared-key-mismatch
                              But since it can connect when pfSense establishes the tunnel that appears to be correct. Unless somehow Cisco has multiple keys.

                              Steve

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                rmainero @stephenw10
                                last edited by

                                @stephenw10 said in VPN point to point:

                                But since it can connect when pfSense establishes the tunnel that appears to be correct. Unless somehow Cisco has multiple keys.

                                This started after the update of pfsense to 2.7 before the configurations were in des and md5, what generates noise is that the other point works correctly the problem is only this point

                                1 Reply Last reply Reply Quote 0
                                • stephenw10S
                                  stephenw10 Netgate Administrator
                                  last edited by

                                  Ah OK. So you had to update the ciphers at both ends and then this started?

                                  R 1 Reply Last reply Reply Quote 0
                                  • R
                                    rmainero @stephenw10
                                    last edited by

                                    @stephenw10 said in VPN point to point:

                                    Ah OK. So you had to update the ciphers at both ends and then this started?

                                    That's right, modify both points, and only one has this behavior the other works perfect

                                    R 1 Reply Last reply Reply Quote 0
                                    • stephenw10S
                                      stephenw10 Netgate Administrator
                                      last edited by

                                      How do you mean 'both points'?

                                      Two tunnels?

                                      The other tunnel that's configured in pfSense? What's at the other end of that?

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        rmainero @stephenw10
                                        last edited by

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          rmainero @rmainero
                                          last edited by

                                          @rmainero
                                          router cisco 881 both points

                                          What I see is that the problem point rises in port 4500 nat-t and the other in port 500 but both are in automatic

                                          1 Reply Last reply Reply Quote 0
                                          • stephenw10S
                                            stephenw10 Netgate Administrator
                                            last edited by

                                            It's more that when one side moves from port 500 to port 4500 for the key exchange the other side rejects it. You can see in the logs that happens both ways.

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