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

    IPsec phase 2 ID value mismatch

    Scheduled Pinned Locked Moved 2.2 Snapshot Feedback and Problems - RETIRED
    11 Posts 4 Posters 5.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.
    • C
      charliem
      last edited by

      I can confirm this … just tried it yesterday and I'm seeing the same thing.  Haven't had time to investigate, but google shows me this code fragment:

      
      	// validate that the responders
      	// ids match the initiator ids
      	//
      
      	if( !cmp_ph2id( ph2->ph2id_ls, ph2->ph2id_rd, true ) ||
      		!cmp_ph2id( ph2->ph2id_ld, ph2->ph2id_rs, true ) )
      	{
      		log.txt( LLOG_ERROR, 
      			"ii : phase2 rejected, id value mismatch\n"
      			"ii : - loc %s -> %s\n" 
      			"ii : - rmt %s -> %s\n",
      			txtid_ls,
      			txtid_ld,
      			txtid_rs,
      			txtid_rd );
      
      		packet.notify = ISAKMP_N_INVALID_ID_INFORMATION;
      		return LIBIKE_FAILED;
      	}
      
      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by

        I'm glad I'm not the only one.  How does one escalate this to a bug report?  I'm going to see if I can temporarily fix it by manually editing the strongSwan configuration files.

        1 Reply Last reply Reply Quote 0
        • ?
          Guest
          last edited by

          No progress, I'm afraid.  I can break strongSwan in various ways but I've failed to get a connection working.  Could someone from the pfSense team comment on this, please?

          1 Reply Last reply Reply Quote 0
          • ?
            Guest
            last edited by

            Would someone from the pfSense team please comment on this problem even if only to confirm that this is not a problem with pfSense but with either Shrew Soft's client or my configuration?  Thanks.

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by

              Just in case anyone else encounters this problem…

              The cause was having the policy generation level in the Shrew Soft site configuration set to 'unique'.  Changing it to 'auto' fixed the problem.

              I now have a working IPsec connection (having been forced to manually edited the strongSwan configuration files to achieve a working hybrid RSA + Xauth set-up).

              1 Reply Last reply Reply Quote 0
              • C
                cmb
                last edited by

                @sdc395:

                I now have a working IPsec connection (having been forced to manually edited the strongSwan configuration files to achieve a working hybrid RSA + Xauth set-up).

                Manually editing what and how? That should definitely work without touching the conf file.

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by

                  I was aiming for a hybrid RSA + xauth set-up but choosing "Hybrid RSA + Xauth" from the phase 1 authentication method drop-down gives me something else (I'm not sure what it would be called).  I made the following changes…

                  In strongswan.conf:
                  Remove xauth-generic configuration block.

                  In ipsec.conf:
                  Remove "rightauth = pubkey"
                  Change "rightauth2 = xauth" to "rightauth = xauth"
                  Change "leftauth = xauth-generic" to "leftauth = pubkey"

                  In ipsec.secrets:
                  Change "PSK" to "XAUTH"

                  All this comes with the caveat that this is the first time I've attempted to configure strongSwan and that I'm an IPsec novice.  I'm not saying the configuration written by pfSense is wrong, only that I couldn't make it work with Shrew Soft.  My changes are based on the example configuration at http://www.strongswan.org/uml/testresults5rc/ikev1/xauth-id-rsa-hybrid/.

                  1 Reply Last reply Reply Quote 0
                  • ?
                    Guest
                    last edited by

                    Any chance of some feedback on this?

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by

                      I assume the lack of response means the problem is not within pfSense.  Presumable someone has knocked up a working hybrid RSA + xauth Shrew Soft configuration to confirm this.  Would you mind posting it so I can import it into Shrew Soft and retire my hand-crafted modifications?

                      Thanks

                      1 Reply Last reply Reply Quote 0
                      • D
                        doktornotor Banned
                        last edited by

                        Disable the Cisco Unity plugin in VPN - IPsec - Advanced settings

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