<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using StrongSwan to connect R81.10 GW using xauth-hybrid in SASE and Remote Access</title>
    <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175985#M5277</link>
    <description>&lt;P&gt;It's possible you'll need to apply a hotfix.&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk118536" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk118536&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, even that suggests IKEv2 will be a better experience.&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_RemoteAccessVPN_AdminGuide/Topics-VPNRG/strongSwan-Client-Support.htm" target="_self"&gt;The documentation&lt;/A&gt; clearly mentions IKEv2 and StrongSWAN:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 916px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/20230i3062E870FDB508ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It would be a wise idea to enable "Prefer IKEv2, Support IKEv1" in Global Properties.&lt;BR /&gt;This should not impact your existing Remote Access connections to make this change.&lt;/P&gt;
&lt;P&gt;Otherwise, I suggest a TAC case: &lt;A href="https://help.checkpoint.com" target="_blank"&gt;https://help.checkpoint.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 23 Mar 2023 21:51:43 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2023-03-23T21:51:43Z</dc:date>
    <item>
      <title>Using StrongSwan to connect R81.10 GW using xauth-hybrid</title>
      <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175793#M5273</link>
      <description>&lt;P&gt;I try to connect to a r81.10 gateway using a linux distribution with strongswan.&lt;BR /&gt;Gateway accepts user:password only. Tested with Windows Version of Checkpoint Endpoint Software. Have to use ikev1.&lt;/P&gt;&lt;P&gt;The error looks like a PSK would not match but xauth-hybrid should be used. so the server is verified by certificate (it is exported from smart console and imported to strongswan) und the client with username:password.&lt;/P&gt;&lt;P&gt;I can not find whats wrong.&lt;/P&gt;&lt;P&gt;Anyone can give a hint?&lt;/P&gt;&lt;P&gt;ipsec.conf:&lt;/P&gt;&lt;P&gt;config setup&lt;BR /&gt;charondebug="ike 4,knl 4,cfg 3,chd 4"&lt;/P&gt;&lt;P&gt;conn checkpointvpn&lt;BR /&gt;type=tunnel&lt;BR /&gt;leftfirewall=yes&lt;BR /&gt;rightauth=pubkey&lt;BR /&gt;leftauth=xauth #no difference in using xauth-eap or xauth-hydrid&lt;BR /&gt;keyexchange=ikev1&lt;BR /&gt;xauth_identity=&amp;lt;username&amp;gt;&lt;BR /&gt;leftsourceip=%config&lt;BR /&gt;right=1.2.3.4 # r81.10 gateway ip&lt;BR /&gt;rightid=1.2.3.4&lt;BR /&gt;rightsubnet=0.0.0.0/0&lt;BR /&gt;rightcert=gateway.pem&lt;BR /&gt;ike=aes256-sha1-modp1024&lt;BR /&gt;esp=3des-sha1&lt;BR /&gt;lifetime=1h&lt;BR /&gt;reauth=yes&lt;BR /&gt;rekey=yes&lt;BR /&gt;margintime=1m&lt;BR /&gt;auto=add&lt;BR /&gt;dpdaction=restart&lt;BR /&gt;dpddelay=30s&lt;BR /&gt;dpdtimeout=60s&lt;/P&gt;&lt;P&gt;ipsec.secrets:&lt;/P&gt;&lt;P&gt;&amp;lt;username&amp;gt; : EAP "&amp;lt;password&amp;gt;"&lt;/P&gt;&lt;P&gt;ipsec version:&lt;BR /&gt;Linux strongSwan U5.9.8/K6.1.0-kali5-amd64&lt;BR /&gt;University of Applied Sciences Rapperswil, Switzerland&lt;/P&gt;&lt;P&gt;ipsec up checkpointvpn:&lt;BR /&gt;initiating Main Mode IKE_SA checkpointvpn[1] to 1.2.3.4&lt;BR /&gt;generating ID_PROT request 0 [ SA V V V V V ]&lt;BR /&gt;sending packet: from 192.168.178.94[500] to 1.2.3.4[500] (240 bytes)&lt;BR /&gt;received packet: from 1.2.3.4[500] to 192.168.178.94[500] (124 bytes)&lt;BR /&gt;parsed ID_PROT response 0 [ SA V V ]&lt;BR /&gt;received FRAGMENTATION vendor ID&lt;BR /&gt;received NAT-T (RFC 3947) vendor ID&lt;BR /&gt;selected proposal: IKE:AES_CBC_256/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_1024&lt;BR /&gt;generating ID_PROT request 0 [ KE No NAT-D NAT-D ]&lt;BR /&gt;sending packet: from 192.168.178.94[500] to 1.2.3.4[500] (244 bytes)&lt;BR /&gt;received packet: from 1.2.3.4[500] to 192.168.178.94[500] (232 bytes)&lt;BR /&gt;parsed ID_PROT response 0 [ KE No NAT-D NAT-D ]&lt;BR /&gt;local host is behind NAT, sending keep alives&lt;BR /&gt;generating ID_PROT request 0 [ ID HASH N(INITIAL_CONTACT) ]&lt;BR /&gt;sending packet: from 192.168.178.94[4500] to 1.2.3.4[4500] (108 bytes)&lt;BR /&gt;received packet: from 1.2.3.4[4500] to 192.168.178.94[4500] (40 bytes)&lt;BR /&gt;parsed INFORMATIONAL_V1 request 812249139 [ N(INVAL_ID) ]&lt;BR /&gt;ignoring unprotected INFORMATIONAL from 1.2.3.4&lt;BR /&gt;message verification failed&lt;BR /&gt;ignore malformed INFORMATIONAL request&lt;BR /&gt;INFORMATIONAL_V1 request with message ID 812249139 processing failed&lt;BR /&gt;sending retransmit 1 of request message ID 0, seq 3&lt;BR /&gt;sending packet: from 192.168.178.94[4500] to 1.2.3.4[4500] (108 bytes)&lt;BR /&gt;sending retransmit 2 of request message ID 0, seq 3&lt;BR /&gt;sending packet: from 192.168.178.94[4500] to 1.2.3.4[4500] (108 bytes)&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 18:50:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175793#M5273</guid>
      <dc:creator>SwitchW0rm</dc:creator>
      <dc:date>2023-03-22T18:50:50Z</dc:date>
    </item>
    <item>
      <title>Re: Using StrongSwan to connect R81.10 GW using xauth-hybrid</title>
      <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175836#M5274</link>
      <description>&lt;P&gt;Why do you have to use IKEv1?&lt;BR /&gt;I’m pretty sure we only tested this with IKEv2.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Mar 2023 22:02:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175836#M5274</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-03-22T22:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using StrongSwan to connect R81.10 GW using xauth-hybrid</title>
      <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175875#M5275</link>
      <description>&lt;P&gt;the gateway settings work for a variety of windows clients in production. my edge case does not warrant any changes including downtime and possible disruptions. so it is fix.&lt;/P&gt;&lt;P&gt;Global Properties -&amp;gt; Remote Access -&amp;gt; VPN - Authentication and Encryption&lt;BR /&gt;Encryption method&lt;BR /&gt;IKEv1 only checked&lt;/P&gt;&lt;P&gt;so i guess IKEv2 is forbidden.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 08:48:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175875#M5275</guid>
      <dc:creator>SwitchW0rm</dc:creator>
      <dc:date>2023-03-23T08:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using StrongSwan to connect R81.10 GW using xauth-hybrid</title>
      <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175925#M5276</link>
      <description>&lt;P&gt;i managed to get the first step done. authenticate the gateway side by give a full identiy &lt;A href="mailto:user@domain" target="_blank" rel="noopener"&gt;user@domain&lt;/A&gt;. but after this still stucks. gateway side says: malformed packet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;charon-cmd --host 1.2.3.4 --identity user@domain.local --xauth-username user@domain.local --ike-proposal aes256-sha1-modp1024 --profile ikev1-hybrid --cert /home/xxx/Desktop/xxxxxx.pem
00[PTS] TPM 2.0 - could not load "libtss2-tcti-tabrmd.so.0"
00[LIB] plugin 'tpm': failed to load - tpm_plugin_create returned NULL
00[LIB] providers loaded by OpenSSL: default legacy
00[LIB] created TUN device: ipsec1
00[LIB] dropped capabilities, running as uid 0, gid 0
00[DMN] Starting charon-cmd IKE client (strongSwan 5.9.8, Linux 6.1.0-kali5-amd64, x86_64)
00[LIB] loaded plugins: charon-cmd ldap pkcs11 aesni aes rc2 sha2 sha1 md5 mgf1 rdrand random nonce x509 revocation constraints pubkey pkcs1 pkcs7 pkcs12 sshkey pem openssl gcrypt pkcs8 af-alg fips-prf gmp curve25519 agent chapoly xcbc cmac hmac kdf ctr ccm gcm drbg curl kernel-libipsec kernel-netlink resolve socket-default bypass-lan eap-identity eap-md5 eap-gtc eap-mschapv2 eap-tls eap-ttls xauth-generic
00[JOB] spawning 16 worker threads
09[IKE] installed bypass policy for 192.168.178.0/24
11[IKE] initiating Main Mode IKE_SA cmd[1] to 1.2.3.4
09[KNL] error installing route with policy fe80::/64 === fe80::/64 out
11[ENC] generating ID_PROT request 0 [ SA V V V V V ]
09[IKE] installed bypass policy for fe80::/64
09[IKE] interface change for bypass policy for fe80::/64 (from ipsec0 to eth0)
09[KNL] error installing route with policy fe80::/64 === fe80::/64 out
11[NET] sending packet: from 192.168.178.94[47267] to 1.2.3.4[4500] (180 bytes)
13[NET] received packet: from 1.2.3.4[4500] to 192.168.178.94[47267] (124 bytes)
13[ENC] parsed ID_PROT response 0 [ SA V V ]
13[IKE] received FRAGMENTATION vendor ID
13[IKE] received NAT-T (RFC 3947) vendor ID
13[CFG] selected proposal: IKE:AES_CBC_256/HMAC_SHA1_96/PRF_HMAC_SHA1/MODP_1024
13[ENC] generating ID_PROT request 0 [ KE No NAT-D NAT-D ]
13[NET] sending packet: from 192.168.178.94[47267] to 1.2.3.4[4500] (244 bytes)
12[NET] received packet: from 1.2.3.4[4500] to 192.168.178.94[47267] (232 bytes)
12[ENC] parsed ID_PROT response 0 [ KE No NAT-D NAT-D ]
12[IKE] local host is behind NAT, sending keep alives
12[IKE] remote host is behind NAT
12[ENC] generating ID_PROT request 0 [ ID HASH N(INITIAL_CONTACT) ]
12[NET] sending packet: from 192.168.178.94[38829] to 1.2.3.4[4500] (124 bytes)
02[NET] received packet: from 1.2.3.4[4500] to 192.168.178.94[38829] (1756 bytes)
02[ENC] parsed ID_PROT response 0 [ ID CERT CERT SIG N((24576)) V ]
02[IKE] received DPD vendor ID
02[IKE] received end entity cert "O=management..xxxxxx, CN=xxxxxx VPN Certificate"
02[IKE] received issuer cert "O=management..xxxxxx"
02[CFG]   using trusted certificate "O=management..xxxxxx, CN=xxxxxx VPN Certificate"
02[CFG]   using untrusted intermediate certificate "O=management..xxxxxx"
02[CFG]   self-signed certificate "O=management..xxxxxx" is not trusted
02[CFG] checking certificate status of "O=management..xxxxxx, CN=xxxxxx VPN Certificate"
02[CFG]   fetching crl from 'O=management..xxxxxx, CN=ICA_CRL4' ...
02[LIB] unable to fetch from O=management..xxxxxx, CN=ICA_CRL4, no capable fetcher found
02[CFG] crl fetching failed
02[CFG]   fetching crl from 'http://fwmgt.domain.local:18264/ICA_CRL4.crl' ...
02[LIB] libcurl request failed [7]: Failed to connect to fwmgt.domain.local port 18264 after 0 ms: Couldn't connect to server
02[CFG] crl fetching failed
02[CFG] certificate status is not available
02[IKE] authentication of '1.2.3.4' with RSA_EMSA_PKCS1_NULL successful
16[NET] received packet: from 1.2.3.4[4500] to 192.168.178.94[38829] (1756 bytes)
16[IKE] received retransmit of response with ID 0, but next request already sent
14[NET] received packet: from 1.2.3.4[4500] to 192.168.178.94[38829] (1756 bytes)
14[IKE] received retransmit of response with ID 0, but next request already sent
09[NET] received packet: from 1.2.3.4[4500] to 192.168.178.94[38829] (76 bytes)
09[ENC] parsed TRANSACTION request 863364433 [ HASH CPRQ(SUBNET SUP) ]
09[ENC] generating TRANSACTION response 863364433 [ HASH CP ]
09[NET] sending packet: from 192.168.178.94[38829] to 1.2.3.4[4500] (76 bytes)
11[NET] received packet: from 1.2.3.4[4500] to 192.168.178.94[38829] (40 bytes)
11[IKE] queueing INFORMATIONAL_V1 request as tasks still active&lt;/PRE&gt;</description>
      <pubDate>Thu, 23 Mar 2023 14:59:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175925#M5276</guid>
      <dc:creator>SwitchW0rm</dc:creator>
      <dc:date>2023-03-23T14:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Using StrongSwan to connect R81.10 GW using xauth-hybrid</title>
      <link>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175985#M5277</link>
      <description>&lt;P&gt;It's possible you'll need to apply a hotfix.&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk118536" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk118536&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, even that suggests IKEv2 will be a better experience.&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/R81/WebAdminGuides/EN/CP_R81_RemoteAccessVPN_AdminGuide/Topics-VPNRG/strongSwan-Client-Support.htm" target="_self"&gt;The documentation&lt;/A&gt; clearly mentions IKEv2 and StrongSWAN:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 916px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/20230i3062E870FDB508ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It would be a wise idea to enable "Prefer IKEv2, Support IKEv1" in Global Properties.&lt;BR /&gt;This should not impact your existing Remote Access connections to make this change.&lt;/P&gt;
&lt;P&gt;Otherwise, I suggest a TAC case: &lt;A href="https://help.checkpoint.com" target="_blank"&gt;https://help.checkpoint.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Mar 2023 21:51:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/SASE-and-Remote-Access/Using-StrongSwan-to-connect-R81-10-GW-using-xauth-hybrid/m-p/175985#M5277</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-03-23T21:51:43Z</dc:date>
    </item>
  </channel>
</rss>

