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

Ipsec Configuration not Working!

Scheduled Pinned Locked Moved IPsec
66 Posts 6 Posters 13.8k 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
    rcoleman-netgate Netgate @ibnkamala
    last edited by Jun 7, 2022, 7:07 PM

    @ibnkamala Version of pfSense is helpful here. As well as any logs that appear (click the icon on the status screen that looks like a ledger).

    Ryan
    Repeat, after me: MESH IS THE DEVIL! MESH IS THE DEVIL!
    Requesting firmware for your Netgate device? https://go.netgate.com
    Switching: Mikrotik, Netgear, Extreme
    Wireless: Aruba, Ubiquiti

    I 3 Replies Last reply Jun 7, 2022, 7:17 PM Reply Quote 1
    • I
      ibnkamala @rcoleman-netgate
      last edited by ibnkamala Jun 7, 2022, 7:29 PM Jun 7, 2022, 7:17 PM

      @rcoleman-netgate Thanks for your reply, That's true I am having to different versions.
      2b19243a-4646-49fe-a6fe-f7e7b5ae6621-image.png
      This is from the side which is not able to get the local and remote IDs.

      Some logs from this side :

      Jun 7 21:24:33 charon 13[NET] <con2000|112> sending packet: from 10.10.0.5[500] to remote-public-ip[500] (304 bytes)
      Jun 7 21:24:33 charon 13[IKE] <con2000|112> retransmit 3 of request with message ID 0
      Jun 7 21:24:32 charon 13[NET] <con1000|55> sending packet: from 10.10.0.5[4500] to ignore-this-please[4500] (80 bytes)
      Jun 7 21:24:32 charon 13[ENC] <con1000|55> generating INFORMATIONAL response 5624 [ ]
      Jun 7 21:24:32 charon 13[ENC] <con1000|55> parsed INFORMATIONAL request 5624 [ ]
      Jun 7 21:24:32 charon 13[NET] <con1000|55> received packet: from ignore-this-please[4500] to 10.10.0.5[4500] (80 bytes)
      Jun 7 21:24:29 charon 13[CFG] vici client 9893 disconnected
      Jun 7 21:24:29 charon 13[CFG] vici client 9893 requests: list-sas
      Jun 7 21:24:29 charon 06[CFG] vici client 9893 registered for: list-sa
      Jun 7 21:24:29 charon 14[CFG] vici client 9893 connected
      Jun 7 21:24:29 charon 06[CFG] ignoring acquire, connection attempt pending
      Jun 7 21:24:29 charon 14[KNL] creating acquire job for policy 10.10.0.5/32|/0 === remote-public-ip/32|/0 with reqid {2}
      Jun 7 21:24:27 charon 14[NET] <con1000|55> sending packet: from 10.10.0.5[4500] to ignore-this-please[4500] (80 bytes)
      Jun 7 21:24:27 charon 14[ENC] <con1000|55> generating INFORMATIONAL response 5623 [ ]
      Jun 7 21:24:27 charon 14[ENC] <con1000|55> parsed INFORMATIONAL request 5623 [ ]
      Jun 7 21:24:27 charon 14[NET] <con1000|55> received packet: from ignore-this-please [4500] to 10.10.0.5[4500] (80 bytes)
      Jun 7 21:24:24 charon 14[CFG] vici client 9892 disconnected
      Jun 7 21:24:24 charon 06[CFG] vici client 9892 requests: list-sas
      Jun 7 21:24:24 charon 10[CFG] vici client 9892 registered for: list-sa
      Jun 7 21:24:24 charon 14[CFG] vici client 9892 connected
      Jun 7 21:24:22 charon 10[CFG] ignoring acquire, connection attempt pending
      Jun 7 21:24:22 charon 14[KNL] creating acquire job for policy 10.10.0.5/32|/0 === remote-public-ip/32|/0 with reqid {2}
      Jun 7 21:24:22 charon 14[NET] <con1000|55> sending packet: from 10.10.0.5[4500] to ignore-this-please [4500] (80 bytes)
      Jun 7 21:24:22 charon 14[ENC] <con1000|55> generating INFORMATIONAL response 5622 [ ]
      Jun 7 21:24:22 charon 14[ENC] <con1000|55> parsed INFORMATIONAL request 5622 [ ]
      Jun 7 21:24:22 charon 14[NET] <con1000|55> received packet: from ignore-this-please [4500] to 10.10.0.5[4500] (80 bytes)

      1 Reply Last reply Reply Quote 0
      • I
        ibnkamala @rcoleman-netgate
        last edited by ibnkamala Jun 7, 2022, 7:21 PM Jun 7, 2022, 7:19 PM

        @rcoleman-netgate and this is the other side's version
        edc77e22-ef16-4252-b782-47ba35655a06-image.png

        And some logs:

        Jun 7 18:55:06

        charon

        38100

        11[CFG] vici client 825 connected

        Jun 7 18:55:06

        charon

        38100

        14[CFG] vici client 825 registered for: list-sa

        Jun 7 18:55:06

        charon

        38100

        14[CFG] vici client 825 requests: list-sas

        Jun 7 18:55:06

        charon

        38100

        11[CFG] vici client 825 disconnected

        Jun 7 18:55:08

        charon

        38100

        15[IKE] <con1|6> retransmit 3 of request with message ID 0

        Jun 7 18:55:08

        charon

        38100

        15[NET] <con1|6> sending packet: from 192.168.1.27[500] to remote-public-ip[500] (304 bytes)

        Jun 7 18:55:12

        charon

        38100

        15[CFG] vici client 826 connected

        1 Reply Last reply Reply Quote 0
        • I
          ibnkamala @rcoleman-netgate
          last edited by Jun 7, 2022, 7:33 PM

          @rcoleman-netgate since I am not very strong on how to read the logs and understand what is wrong, could you please help me on that?

          concerning the version is that mean I must have same version on both sides?

          1 Reply Last reply Reply Quote 0
          • I
            ibnkamala
            last edited by Jun 10, 2022, 10:01 AM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • I
              ibnkamala
              last edited by Jun 10, 2022, 12:33 PM

              Anyone can help me please, I am 100% sure that use in both sides IKEv2, simplest PSK which is "123" and everything is matched but still I am not able to establish the connection?!!!

              Jun 10 11:57:55 charon 08[IKE] <con2000|146> IKE_SA con2000[146] state change: CONNECTING => DESTROYING
              Jun 10 11:57:55 charon 08[CHD] <con2000|146> CHILD_SA con2000{165} state change: CREATED => DESTROYING
              Jun 10 11:57:55 charon 08[IKE] <con2000|146> received AUTHENTICATION_FAILED notify error
              Jun 10 11:57:55 charon 08[ENC] <con2000|146> parsed IKE_AUTH response 1 [ N(AUTH_FAILED) ]

              Any help would be really appreciated :)

              S 1 Reply Last reply Jun 10, 2022, 2:23 PM Reply Quote 0
              • S
                SteveITS Galactic Empire @ibnkamala
                last edited by Jun 10, 2022, 2:23 PM

                @ibnkamala I don't have direct advice for you but note 2.6 made several changes to IPSec, did you review those?

                Possibly, upgrade the 2.4.5 which is a few versions old?

                Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                Upvote 👍 helpful posts!

                1 Reply Last reply Reply Quote 0
                • G
                  gabacho4 Rebel Alliance
                  last edited by Jun 10, 2022, 3:02 PM

                  Would be super helpful if you would show screenshots of the P1 and P2 settings for both sides. And while you’re at it, update the 2.4.5 box. Not really interested in trying to troubleshoot an unsupported version of pfsense.

                  I 1 Reply Last reply Jun 11, 2022, 10:16 AM Reply Quote 0
                  • I
                    ibnkamala @gabacho4
                    last edited by Jun 11, 2022, 10:16 AM

                    @gabacho4 thanks for your reply I am going to share both sites configurations and here is the screenshot when I try to connect the tunnel.

                    SIte-A-phases.png SIte-A.png
                    SiteB.png

                    Thanks for your help, for sure I am going to update to a newer version but I wanted to test it first.

                    G 1 Reply Last reply Jun 11, 2022, 10:24 AM Reply Quote 0
                    • G
                      gabacho4 Rebel Alliance @ibnkamala
                      last edited by Jun 11, 2022, 10:24 AM

                      @ibnkamala those are not the p1 and p2 settings. What you’ve sent is a screenshot of the ipsec status. It tells me nothing other than the fact that your IPSec connection isn’t working which has already been established by your other posts. Please send screenshots of the actual p1 and p2 configurations for both sides of the tunnel. Those are what you configured when you went to VPN - IPSec and then created the p1 and p2.

                      I 1 Reply Last reply Jun 11, 2022, 12:02 PM Reply Quote 1
                      • I
                        ibnkamala @gabacho4
                        last edited by ibnkamala Jun 11, 2022, 12:08 PM Jun 11, 2022, 12:02 PM

                        @gabacho4 I am sorry, here are phase 1 and 2 configs for siteA:

                        Phase 1:
                        1.png
                        2.png 3.png 4.png

                        Phase 2
                        phase2-1.png phase2-2.png phase2-3.png

                        G 1 Reply Last reply Jun 11, 2022, 12:10 PM Reply Quote 0
                        • G
                          gabacho4 Rebel Alliance @ibnkamala
                          last edited by Jun 11, 2022, 12:10 PM

                          @ibnkamala you’re killing me bro. And what about side B?! I need both sides to compare. Come on.

                          1 Reply Last reply Reply Quote 1
                          • I
                            ibnkamala
                            last edited by Jun 11, 2022, 12:12 PM

                            here are phase 1 and 2 configs for siteB:
                            Phase 1:
                            1.png 2.png 3.png 4.png

                            Phase 2

                            Phase2-1.png Phase2-2.png Phase2-3.png

                            Thanks a lot for your help

                            G 1 Reply Last reply Jun 11, 2022, 12:21 PM Reply Quote 0
                            • G
                              gabacho4 Rebel Alliance @ibnkamala
                              last edited by gabacho4 Jun 11, 2022, 12:22 PM Jun 11, 2022, 12:21 PM

                              @ibnkamala ok so one side is behind NAT if I recall right. Try this. For the “my identifier” and “peer identifier” change from IP address to KeyID tag for both. Then make the id for the local router “SideA” and the remote “SideB”. On the remote side make the my identifier “SideB” and the peer identifier “SideA”. Be sure to change the other side to use KeyID tag as well of course.

                              I 1 Reply Last reply Jun 11, 2022, 12:23 PM Reply Quote 0
                              • I
                                ibnkamala @gabacho4
                                last edited by Jun 11, 2022, 12:23 PM

                                @gabacho4 both sides are behind the NAT

                                G 1 Reply Last reply Jun 11, 2022, 12:24 PM Reply Quote 0
                                • G
                                  gabacho4 Rebel Alliance @ibnkamala
                                  last edited by Jun 11, 2022, 12:24 PM

                                  @ibnkamala ok. Make those changes. Also you’re positive that the routers in front of the pfsense boxes allows IPSec pass through?

                                  I G 2 Replies Last reply Jun 11, 2022, 12:28 PM Reply Quote 1
                                  • I
                                    ibnkamala @gabacho4
                                    last edited by Jun 11, 2022, 12:28 PM

                                    @gabacho4 in both side routers IPsec is allowed to pass through,
                                    Could you please tell me, what do you mean by "Then make the id for the local router “SideA” and the remote “SideB""?

                                    I really appreciate you great help

                                    G 1 Reply Last reply Jun 11, 2022, 12:33 PM Reply Quote 0
                                    • G
                                      gabacho4 Rebel Alliance @gabacho4
                                      last edited by Jun 11, 2022, 12:29 PM

                                      Also, just to emphasize, you really need to update the other side to pfsense 2.6.0. The IPSec settings and configuration between 2.4.5 and 2.6 have changed. It’s possible this will never work until you update.

                                      1 Reply Last reply Reply Quote 1
                                      • G
                                        gabacho4 Rebel Alliance @ibnkamala
                                        last edited by Jun 11, 2022, 12:33 PM

                                        @ibnkamala said in Ipsec Configuration not Working!:

                                        @gabacho4 in both side routers IPsec is allowed to pass through,
                                        Could you please tell me, what do you mean by "Then make the id for the local router “SideA” and the remote “SideB""?

                                        I really appreciate you great help

                                        Under:

                                        Phase 1 Proposal (Authentication) - change My Identifier to KeyID tag from My IP Address. Also change the Peer identifier to KeyID. Make My identifier KeyID tag value SiteA and peer identifier KeyID tag value SiteB. Then do the same thing on the other router except the My identifier will be SiteB and the peer will be SiteA

                                        I 1 Reply Last reply Jun 11, 2022, 12:53 PM Reply Quote 0
                                        • I
                                          ibnkamala @gabacho4
                                          last edited by Jun 11, 2022, 12:53 PM

                                          @gabacho4 is this correct?
                                          siteA-KeyTag.png siteB-KeyTag.png

                                          G 1 Reply Last reply Jun 11, 2022, 12:54 PM Reply Quote 0
                                          11 out of 66
                                          • First post
                                            11/66
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received