{"id":359882,"date":"2024-05-21T00:41:54","date_gmt":"2024-05-21T00:41:54","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=359882"},"modified":"-0001-11-30T00:00:00","modified_gmt":"2024-05-21T00:41:54","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=359882","title":{"rendered":"<span>IPSec Site to Site \u0438\u043b\u0438 Strongswan to Palo Alto<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>  \u0416\u0438\u043b \u0431\u044b\u043b \u043e\u0434\u0438\u043d \u0441\u0438\u043b\u044c\u043d\u044b\u0439 \u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 Strongswan VPN \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u043e\u0431\u043b\u0430\u043a\u0430\u0445. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b \u043d\u0430 \u0441\u0435\u0431\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u043e Let&#8217;s Encrypt \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0443 \u0438 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0434\u0440\u0443\u0436\u0438\u043b \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 Strongswan&#8230; \u0418 \u0442\u0443\u0442 \u043a\u0430\u043a \u0433\u0440\u043e\u043c \u26a1 \u0441\u0440\u0435\u0434\u0438 \u044f\u0441\u043d\u043e\u0433\u043e \u043d\u0435\u0431\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442 \u0441 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438 ?: &#171;\u0425\u043e\u0447\u0443 \u0432\u043f\u043d! \u0423 \u043c\u0435\u043d\u044f, \u043c\u043e\u043b, \u043f\u0430\u043b\u043e \u0430\u043b\u044c\u0442\u043e \u0438 \u0441\u0442\u0440\u043e\u043d\u0433\u0441\u0432\u0430\u043d \u0432\u0430\u0448 \u0432 \u0433\u043b\u0430\u0437\u0430 \u043d\u0435 \u0432\u0438\u0434\u044b\u0432\u0430\u043b&#8230;&#187;<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/94b\/f6d\/594\/94bf6d594252a4a3f829fb3d3bf8e0a3.png\" width=\"440\" height=\"372\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/94b\/f6d\/594\/94bf6d594252a4a3f829fb3d3bf8e0a3.png\"\/><\/figure>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 strongSwan \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b <abbr class=\"habraabbr\" title=\"\u0412\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 (SA) \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 IPSec\" data-title=\"&lt;p>\u0412\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 (SA) \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 IPSec&lt;\/p>&#187; data-abbr=&#187;IKEv2&#8243;>IKEv2<\/abbr>, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 <a href=\"https:\/\/www.ietf.org\/rfc\/rfc7296.txt,\" rel=\"noopener noreferrer nofollow\">RFC 7296<\/a>, \u0442\u043e \u0432\u0441\u0451 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f! \u0418\u0437 \u0442\u0435\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u043f\u043e Palo Alto \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0433\u0440\u0443\u043f\u043f\u044b <abbr class=\"habraabbr\" title=\"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0414\u0438\u0444\u0444\u0438-\u0425\u0435\u043b\u043b\u043c\u0430\u043d\u0430 (\u0430\u043d\u0433\u043b. Diffie\u2013Hellman key exchange protocol, DH) - \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0434\u0432\u0443\u043c \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0439 \u043e\u0442 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b \u0441\u0432\u044f\u0437\u0438\" data-title=\"&lt;p>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0414\u0438\u0444\u0444\u0438-\u0425\u0435\u043b\u043b\u043c\u0430\u043d\u0430 (\u0430\u043d\u0433\u043b. Diffie\u2013Hellman key exchange protocol, DH) &#8212; \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0434\u0432\u0443\u043c \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0439 \u043e\u0442 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b \u0441\u0432\u044f\u0437\u0438&lt;\/p>&#187; data-abbr=&#187;Diffie-Hellman&#187;>Diffie-Hellman<\/abbr>, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Strongswan. \u041d\u043e \u043f\u0440\u0438 \u0448\u0442\u0443\u0440\u043c\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 <abbr class=\"habraabbr\" title=\"Request for Comments - \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b\" data-title=\"&lt;p>Request for Comments &#8212; \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b&lt;\/p>&#187; data-abbr=&#187;RFC&#187;>RFC<\/abbr> \u0431\u044b\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0433\u0440\u0443\u043f\u043f <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc5114#section-3.2\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a> (<a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc5114#section-3.2\" rel=\"noopener noreferrer nofollow\">rfc5114#section-3.2<\/a>) \u0438 <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc5114#section-4\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a> (<a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc5114#section-4\" rel=\"noopener noreferrer nofollow\">rfc5114#section-4<\/a>), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 Strongswan <a href=\"https:\/\/docs.strongswan.org\/docs\/5.9\/config\/IKEv2CipherSuites.html#_diffie_hellman_groups\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>, \u043d\u0443 \u0438 \u0441\u0442\u043e\u0438\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c \u0441\u0430\u043c\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e <a href=\"https:\/\/www.iana.org\/assignments\/ikev2-parameters\/ikev2-parameters.xhtml#ikev2-parameters-8\" rel=\"noopener noreferrer nofollow\">IANA<\/a>. \u0421\u043e\u0431\u0440\u0430\u043b \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\"><strong>\u0418\u043c\u044f \u0433\u0440\u0443\u043f\u043f\u044b<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\"><strong>\u041d\u043e\u043c\u0435\u0440 \u0433\u0440\u0443\u043f\u043f\u044b<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\"><strong><abbr class=\"habraabbr\" title=\"\u0420\u0430\u0437\u043c\u0435\u0440 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430\" data-title=\"&lt;p>\u0420\u0430\u0437\u043c\u0435\u0440 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;Symmetric&#187;>Symmetric<\/abbr><\/strong><\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\"><strong><abbr class=\"habraabbr\" title=\"\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430 RSA\" data-title=\"&lt;p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430 RSA&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;RSA&#187;>RSA<\/abbr><\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0421\u0442\u0440\u043e\u043a\u0430 \u0432 Strongswan<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">1024-bit MODP Group with 160-bit Prime Order Subgroup<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">22<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">80<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">1024<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>modp1024s160<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">2048-bit MODP Group with 224-bit Prime Order Subgroup<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">23<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">112<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">2048<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>modp2048s224<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">2048-bit MODP Group with 256-bit Prime Order Subgroup<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">24<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">112<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">2048<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>modp2048s256<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">192-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">25<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">80<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">1024<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp192<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">224-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">26<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">112<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">2048<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp224<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">256-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">19<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">3072<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp256<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">384-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">20<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">192<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">7680<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp382<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">521-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">21<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">256<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">15360<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp521<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0421\u00a0\u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0441\u043e\u043e\u0442\u043d\u0435\u0441\u043b\u0438 \u043a\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438\u0441\u044c ?, \u043d\u043e \u043d\u0435 \u0442\u0443\u0442 \u0442\u043e \u0431\u044b\u043b\u043e, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<p><code>parsed IKE_AUTH response 1 [ N(NO_PROP) ]<br \/>generating INFORMATIONAL request 2 [ N(AUTH_FAILED) ]<\/code><\/p>\n<p><code>parsed IKE_AUTH response 1 [ N(AUTH_FAILED) ]<br \/>received AUTHENTICATION_FAILED notify error<\/code><\/p>\n<p>\u0421 \u0442\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p><code>IKEv2 IKE SA negotiation is succeeded as initiator, non-rekey. Established SA: 10.10.10.10[4500]-1x.1x.1x.1x[4500] SPI:e1c24d39e8fbe6a9:cab51c19f27f54ce lifetime 28800 Sec<\/code><\/p>\n<p><code>IKEv2 child SA negotiation is failed as initiator, non-rekey. Failed SA: 10.10.10.10[4500]-1x.1x.1x.1x[4500] message id:0x0000000D. Error code 19<\/code> <\/p>\n<p><code>IKEv2 child SA negotiation failed when processing SA payload. no suitable proposal found in peer's SA payload<\/code><\/p>\n<p>\u0417\u043d\u0430\u0447\u0438\u0442 \u043a\u043b\u0438\u0435\u043d\u0442 \u0442\u043e\u0447\u043d\u043e \u0437\u0430 <abbr class=\"habraabbr\" title=\"NAT (Network Address Translation) \u2014 \u044d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432 \u0441\u0435\u0442\u044f\u0445 TCP\/IP, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.\" data-title=\"&lt;p>NAT (Network Address Translation) \u2014 \u044d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432 \u0441\u0435\u0442\u044f\u0445 TCP\/IP, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.&lt;\/p>&#187; data-abbr=&#187;NAT&#187;>NAT<\/abbr> ?, \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c:<\/p>\n<p><code>rightid=10.10.10.10<\/code><\/p>\n<p>\u0418 \u0432\u0438\u0434\u0438\u043c \u0441 \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b Palo Alto:<\/p>\n<p><code>charon: 08[IKE] authentication of '10.10.10.10' with pre-shared key successful<\/code><\/p>\n<p>\u041e-\u043e-\u043e, \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0436\u0430\u0442\u044c \u0437\u0430 \u0447\u0430\u0435\u043c&#8230;. \u0438 \u043e\u043f\u044f\u0442\u044c ?:<\/p>\n<p><code>charon: 08[IKE] no acceptable proposal found<br \/>charon: 08[IKE] failed to establish CHILD_SA, keeping IKE_SA<br \/>charon: 08[ENC] generating IKE_AUTH response 1 [ IDr AUTH N(AUTH_LFT) N(NO_PROP) ]<\/code><\/p>\n<p>\u0427\u0442\u043e \u0436&#8230; \u0434\u043e\u0441\u0442\u0430\u0451\u043c \u0438\u0437 \u0437\u0430\u043a\u0440\u043e\u043c\u043e\u0432 \u0441\u0432\u043e\u0439 \u043f\u043e\u0432\u0438\u0434\u0430\u0432\u0448\u0438\u0439 \u0432\u0438\u0434\u044b, \u0441\u0442\u0430\u0440\u044b\u0439, \u043f\u043e\u0442\u0451\u0440\u0442\u044b\u0439, \u0441\u043b\u0435\u0433\u043a\u0430 \u0432 \u043f\u044b\u043b\u0438 &#8212; \u0431\u0443\u0431\u0435\u043d! \u0418 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c&#8230;<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/039\/e28\/dd4\/039e28dd4e3b896dc951e4a19babb208.png\" width=\"920\" height=\"736\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/039\/e28\/dd4\/039e28dd4e3b896dc951e4a19babb208.png\"\/><\/figure>\n<p>\u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430\u0448\u0438 \u043b\u043e\u0433\u0438. \u0411\u0443\u0431\u0435\u043d \u043f\u043e\u043c\u043e\u0433!<\/p>\n<p><code>charon: 08[CFG] received proposals: ESP:AES_GCM_16_256\/NO_EXT_SEQ<br \/>charon: 08[CFG] configured proposals: ESP:AES_CBC_256\/HMAC_SHA2_256128\/NO_EXT_SEQ, ESP:AES_CBC_128\/AES_CBC_192\/AES_CBC_256\/HMAC_SHA2_256_128\/HMAC_SHA2_384_192\/HMAC_SHA2_512_256\/HMAC_SHA1_96\/AES_XCBC_96\/NO_EXT_SEQ<\/code><\/p>\n<p><abbr class=\"habraabbr\" title=\"\u0420\u0435\u0436\u0438\u043c GCM (Galois\/Counter Mode) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u043c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043a\u0430\u043a \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u0438 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0432 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043b\u043e\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445.\" data-title=\"&lt;p>\u0420\u0435\u0436\u0438\u043c &lt;a href=&quot;https:\/\/ru.wikipedia.org\/wiki\/Galois\/Counter_Mode&quot;>GCM&lt;\/a> (Galois\/Counter Mode) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u043c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043a\u0430\u043a \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u0438 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0432 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043b\u043e\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445.&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;GCM&#187;>GCM<\/abbr> \u043f\u0440\u043e\u0442\u0438\u0432 <abbr class=\"habraabbr\" title=\"\u0420\u0435\u0436\u0438\u043c CBC (Cipher Block Chaining) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c. \u0412 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u043b\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 &quot;\u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438&quot; (IV).\" data-title=\"&lt;p>\u0420\u0435\u0436\u0438\u043c &lt;a href=&quot;https:\/\/ru.wikipedia.org\/wiki\/\u0420\u0435\u0436\u0438\u043c_\u0441\u0446\u0435\u043f\u043b\u0435\u043d\u0438\u044f_\u0431\u043b\u043e\u043a\u043e\u0432_\u0448\u0438\u0444\u0440\u043e\u0442\u0435\u043a\u0441\u0442\u0430&quot;>CBC&lt;\/a> (Cipher Block Chaining) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c. \u0412 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u043b\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c&lt;br> \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 &quot;\u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438&quot; (IV).&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;CBC&#187;>CBC<\/abbr> &#8212; \u043d\u0435\u0440\u0430\u0432\u043d\u0430\u044f \u0441\u0445\u0432\u0430\u0442\u043a\u0430. \u041c\u0435\u043d\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<p><code>esp=aes256gcm16<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442! \u041f\u043e\u0431\u0435\u0434\u0430 \u0437\u0430 \u043d\u0430\u043c\u0438! ?<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e \u0438\u0442\u043e\u0433\u0443, \u0438\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 (\u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e IP)<\/summary>\n<div class=\"spoiler__content\">\n<p><code>IKE Version: 2\u00a0<br \/>Phase 1<br \/>\u00a0IKEv2\u00a0encryption: AES\u2011CBC-256<br \/>\u00a0Integrity hash: SHA256<br \/>\u00a0PRF hash: SHA256<br \/>\u00a0Diffie\u2011Hellman group: group=20<br \/>\u00a0Life\u2011time: 86\u00a0400\u00a0seconds<br \/>Phase 2<br \/>\u00a0IKEv2\u00a0encryption: AES-256<br \/>\u00a0Integrity hash: SHA256<br \/>\u00a0PFS: Yes, group=20<br \/>\u00a0Life\u2011time: 28\u00a0800\u00a0seconds<\/code><\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 ipsec.conf<\/summary>\n<div class=\"spoiler__content\">\n<p><code>conn strongswan-to-paloalto<br \/>    type=tunnel<br \/>    authby=psk<br \/>    left=%defaultroute<br \/>    leftid=1x.1x.1x.1x<br \/>    leftsubnet=10.1.1.1\/24<br \/>    right=2x.2x.2x.2x<br \/>    rightid=10.10.10.10<br \/>    rightsubnet=10.2.2.2\/24<br \/>    rightsendcert=never<br \/>    keyexchange=ikev2<br \/>    ike=aes256-sha256-ecp384<br \/>    esp=aes256gcm16<br \/>    ikelifetime=86400s<br \/>    lifetime=28800s<br \/>    dpdaction=restart<br \/>    auto=start<\/code><\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/773274\/\"> https:\/\/habr.com\/ru\/articles\/773274\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>  \u0416\u0438\u043b \u0431\u044b\u043b \u043e\u0434\u0438\u043d \u0441\u0438\u043b\u044c\u043d\u044b\u0439 \u0438 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0439 Strongswan VPN \u0441\u0435\u0440\u0432\u0435\u0440 \u0432 \u043e\u0431\u043b\u0430\u043a\u0430\u0445. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u043b \u043d\u0430 \u0441\u0435\u0431\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043f\u043e Let&#8217;s Encrypt \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0443 \u0438 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u0434\u0440\u0443\u0436\u0438\u043b \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 Strongswan&#8230; \u0418 \u0442\u0443\u0442 \u043a\u0430\u043a \u0433\u0440\u043e\u043c \u26a1 \u0441\u0440\u0435\u0434\u0438 \u044f\u0441\u043d\u043e\u0433\u043e \u043d\u0435\u0431\u0430 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442 \u0441 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c\u0438 ?: &#171;\u0425\u043e\u0447\u0443 \u0432\u043f\u043d! \u0423 \u043c\u0435\u043d\u044f, \u043c\u043e\u043b, \u043f\u0430\u043b\u043e \u0430\u043b\u044c\u0442\u043e \u0438 \u0441\u0442\u0440\u043e\u043d\u0433\u0441\u0432\u0430\u043d \u0432\u0430\u0448 \u0432 \u0433\u043b\u0430\u0437\u0430 \u043d\u0435 \u0432\u0438\u0434\u044b\u0432\u0430\u043b&#8230;&#187;<\/p>\n<figure class=\"\"><\/figure>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 strongSwan \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b <abbr class=\"habraabbr\" title=\"\u0412\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 (SA) \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 IPSec\" data-title=\"&lt;p>\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 (SA) \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 IPSec&#187; data-title=&#187;&lt;p>\u0412\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u0434\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0430\u0441\u0441\u043e\u0446\u0438\u0430\u0446\u0438\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 (SA) \u0432 \u043f\u0430\u043a\u0435\u0442\u0435 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u043e\u0432 IPSec&lt;\/p>&#187; data-abbr=&#187;IKEv2&#8243;>IKEv2<\/abbr>, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0432 <a href=\"https:\/\/www.ietf.org\/rfc\/rfc7296.txt,\" rel=\"noopener noreferrer nofollow\">RFC 7296<\/a>, \u0442\u043e \u0432\u0441\u0451 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f! \u0418\u0437 \u0442\u0435\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u043b\u0438 \u043f\u043e Palo Alto \u0435\u0441\u0442\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0433\u0440\u0443\u043f\u043f\u044b <abbr class=\"habraabbr\" title=\"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0414\u0438\u0444\u0444\u0438-\u0425\u0435\u043b\u043b\u043c\u0430\u043d\u0430 (\u0430\u043d\u0433\u043b. Diffie\u2013Hellman key exchange protocol, DH) - \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0434\u0432\u0443\u043c \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0439 \u043e\u0442 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b \u0441\u0432\u044f\u0437\u0438\" data-title=\"&lt;p>\u0449\u0438\u0439 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0439 \u043e\u0442 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b \u0441\u0432\u044f\u0437\u0438&#187; data-title=&#187;&lt;p>\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0414\u0438\u0444\u0444\u0438-\u0425\u0435\u043b\u043b\u043c\u0430\u043d\u0430 (\u0430\u043d\u0433\u043b. Diffie\u2013Hellman key exchange protocol, DH) &#8212; \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u0434\u0432\u0443\u043c \u0438 \u0431\u043e\u043b\u0435\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u0430\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0431\u0449\u0438\u0439 \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u043a\u043b\u044e\u0447, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043d\u0435\u0437\u0430\u0449\u0438\u0449\u0435\u043d\u043d\u044b\u0439 \u043e\u0442 \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u0438\u0432\u0430\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b \u0441\u0432\u044f\u0437\u0438&lt;\/p>&#187; data-abbr=&#187;Diffie-Hellman&#187;>Diffie-Hellman<\/abbr>, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043d\u0435\u0442 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 Strongswan. \u041d\u043e \u043f\u0440\u0438 \u0448\u0442\u0443\u0440\u043c\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 <abbr class=\"habraabbr\" title=\"Request for Comments - \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b\" data-title=\"&lt;p>\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b&#187; data-title=&#187;&lt;p>Request for Comments &#8212; \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442 \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 \u043f\u0440\u043e\u043d\u0443\u043c\u0435\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u044b&lt;\/p>&#187; data-abbr=&#187;RFC&#187;>RFC<\/abbr> \u0431\u044b\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u0433\u0440\u0443\u043f\u043f <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc5114#section-3.2\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a> (<a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc5114#section-3.2\" rel=\"noopener noreferrer nofollow\">rfc5114#section-3.2<\/a>) \u0438 <a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc5114#section-4\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a> (<a href=\"https:\/\/www.rfc-editor.org\/rfc\/rfc5114#section-4\" rel=\"noopener noreferrer nofollow\">rfc5114#section-4<\/a>), \u0430 \u0442\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 Strongswan <a href=\"https:\/\/docs.strongswan.org\/docs\/5.9\/config\/IKEv2CipherSuites.html#_diffie_hellman_groups\" rel=\"noopener noreferrer nofollow\">\u0442\u0443\u0442<\/a>, \u043d\u0443 \u0438 \u0441\u0442\u043e\u0438\u0442 \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c \u0441\u0430\u043c\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e <a href=\"https:\/\/www.iana.org\/assignments\/ikev2-parameters\/ikev2-parameters.xhtml#ikev2-parameters-8\" rel=\"noopener noreferrer nofollow\">IANA<\/a>. \u0421\u043e\u0431\u0440\u0430\u043b \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\"><strong>\u0418\u043c\u044f \u0433\u0440\u0443\u043f\u043f\u044b<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\"><strong>\u041d\u043e\u043c\u0435\u0440 \u0433\u0440\u0443\u043f\u043f\u044b<\/strong><\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\"><strong><abbr class=\"habraabbr\" title=\"\u0420\u0430\u0437\u043c\u0435\u0440 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430\" data-title=\"&lt;p>\u0447\u0430&#187; data-title=&#187;&lt;p>\u0420\u0430\u0437\u043c\u0435\u0440 \u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;Symmetric&#187;>Symmetric<\/abbr><\/strong><\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\"><strong><abbr class=\"habraabbr\" title=\"\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430 RSA\" data-title=\"&lt;p>tle=&#187;&lt;p>\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430 RSA&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;RSA&#187;>RSA<\/abbr><\/strong><\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>\u0421\u0442\u0440\u043e\u043a\u0430 \u0432 Strongswan<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">1024-bit MODP Group with 160-bit Prime Order Subgroup<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">22<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">80<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">1024<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>modp1024s160<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">2048-bit MODP Group with 224-bit Prime Order Subgroup<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">23<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">112<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">2048<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>modp2048s224<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">2048-bit MODP Group with 256-bit Prime Order Subgroup<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">24<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">112<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">2048<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>modp2048s256<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">192-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">25<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">80<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">1024<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp192<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">224-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">26<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">112<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">2048<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp224<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">256-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">19<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">128<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">3072<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp256<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">384-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">20<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">192<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">7680<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp382<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td data-colwidth=\"318\" width=\"318\">\n<p align=\"left\">521-bit Random ECP Group<\/p>\n<\/td>\n<td data-colwidth=\"74\" width=\"74\">\n<p align=\"left\">21<\/p>\n<\/td>\n<td data-colwidth=\"105\" width=\"105\">\n<p align=\"left\">256<\/p>\n<\/td>\n<td data-colwidth=\"68\" width=\"68\">\n<p align=\"left\">15360<\/p>\n<\/td>\n<td>\n<p align=\"left\"><strong>ecp521<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0421\u00a0\u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u043b\u0438\u0441\u044c, \u0441\u043e\u043e\u0442\u043d\u0435\u0441\u043b\u0438 \u043a\u00a0\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438\u0441\u044c ?, \u043d\u043e \u043d\u0435 \u0442\u0443\u0442 \u0442\u043e \u0431\u044b\u043b\u043e, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<p><code>parsed IKE_AUTH response 1 [ N(NO_PROP) ]<br \/>generating INFORMATIONAL request 2 [ N(AUTH_FAILED) ]<\/code><\/p>\n<p><code>parsed IKE_AUTH response 1 [ N(AUTH_FAILED) ]<br \/>received AUTHENTICATION_FAILED notify error<\/code><\/p>\n<p>\u0421 \u0442\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b, \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435:<\/p>\n<p><code>IKEv2 IKE SA negotiation is succeeded as initiator, non-rekey. Established SA: 10.10.10.10[4500]-1x.1x.1x.1x[4500] SPI:e1c24d39e8fbe6a9:cab51c19f27f54ce lifetime 28800 Sec<\/code><\/p>\n<p><code>IKEv2 child SA negotiation is failed as initiator, non-rekey. Failed SA: 10.10.10.10[4500]-1x.1x.1x.1x[4500] message id:0x0000000D. Error code 19<\/code> <\/p>\n<p><code>IKEv2 child SA negotiation failed when processing SA payload. no suitable proposal found in peer's SA payload<\/code><\/p>\n<p>\u0417\u043d\u0430\u0447\u0438\u0442 \u043a\u043b\u0438\u0435\u043d\u0442 \u0442\u043e\u0447\u043d\u043e \u0437\u0430 <abbr class=\"habraabbr\" title=\"NAT (Network Address Translation) \u2014 \u044d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432 \u0441\u0435\u0442\u044f\u0445 TCP\/IP, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.\" data-title=\"&lt;p>\u0430\u0434\u0440\u0435\u0441\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.&#187; data-title=&lt;p>NAT (Network Address Translation) \u2014 \u044d\u0442\u043e \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u0432 \u0441\u0435\u0442\u044f\u0445 TCP\/IP, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0438\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c IP-\u0430\u0434\u0440\u0435\u0441\u0430 \u0442\u0440\u0430\u043d\u0437\u0438\u0442\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432.&lt;\/p>&#187; data-abbr=&#187;NAT&#187;>NAT<\/abbr> ?, \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c:<\/p>\n<p><code>rightid=10.10.10.10<\/code><\/p>\n<p>\u0418 \u0432\u0438\u0434\u0438\u043c \u0441 \u043d\u0430\u0448\u0435\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u044b Palo Alto:<\/p>\n<p><code>charon: 08[IKE] authentication of '10.10.10.10' with pre-shared key successful<\/code><\/p>\n<p>\u041e-\u043e-\u043e, \u043c\u043e\u0436\u043d\u043e \u0431\u0435\u0436\u0430\u0442\u044c \u0437\u0430 \u0447\u0430\u0435\u043c&#8230;. \u0438 \u043e\u043f\u044f\u0442\u044c ?:<\/p>\n<p><code>charon: 08[IKE] no acceptable proposal found<br \/>charon: 08[IKE] failed to establish CHILD_SA, keeping IKE_SA<br \/>charon: 08[ENC] generating IKE_AUTH response 1 [ IDr AUTH N(AUTH_LFT) N(NO_PROP) ]<\/code><\/p>\n<p>\u0427\u0442\u043e \u0436&#8230; \u0434\u043e\u0441\u0442\u0430\u0451\u043c \u0438\u0437 \u0437\u0430\u043a\u0440\u043e\u043c\u043e\u0432 \u0441\u0432\u043e\u0439 \u043f\u043e\u0432\u0438\u0434\u0430\u0432\u0448\u0438\u0439 \u0432\u0438\u0434\u044b, \u0441\u0442\u0430\u0440\u044b\u0439, \u043f\u043e\u0442\u0451\u0440\u0442\u044b\u0439, \u0441\u043b\u0435\u0433\u043a\u0430 \u0432 \u043f\u044b\u043b\u0438 &#8212; \u0431\u0443\u0431\u0435\u043d! \u0418 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c&#8230;<\/p>\n<figure class=\"full-width\"><\/figure>\n<p>\u0432\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u0435\u0435 \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430\u0448\u0438 \u043b\u043e\u0433\u0438. \u0411\u0443\u0431\u0435\u043d \u043f\u043e\u043c\u043e\u0433!<\/p>\n<p><code>charon: 08[CFG] received proposals: ESP:AES_GCM_16_256\/NO_EXT_SEQ<br \/>charon: 08[CFG] configured proposals: ESP:AES_CBC_256\/HMAC_SHA2_256128\/NO_EXT_SEQ, ESP:AES_CBC_128\/AES_CBC_192\/AES_CBC_256\/HMAC_SHA2_256_128\/HMAC_SHA2_384_192\/HMAC_SHA2_512_256\/HMAC_SHA1_96\/AES_XCBC_96\/NO_EXT_SEQ<\/code><\/p>\n<p><abbr class=\"habraabbr\" title=\"\u0420\u0435\u0436\u0438\u043c GCM (Galois\/Counter Mode) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u043c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043a\u0430\u043a \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u0438 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0432 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043b\u043e\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445.\" data-title=\"&lt;p>\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0432 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043b\u043e\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445.&#187; data-title=&#187;&lt;p>\u0420\u0435\u0436\u0438\u043c &lt;a href=&quot;https:\/\/ru.wikipedia.org\/wiki\/Galois\/Counter_Mode&quot;>GCM&lt;\/a> (Galois\/Counter Mode) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0440\u0435\u0436\u0438\u043c\u043e\u043c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u044f \u043a\u0430\u043a \u043a\u043e\u043d\u0444\u0438\u0434\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u0442\u0430\u043a \u0438 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. \u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0432 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0431\u043b\u043e\u043a\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445.&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;GCM&#187;>GCM<\/abbr> \u043f\u0440\u043e\u0442\u0438\u0432 <abbr class=\"habraabbr\" title=\"\u0420\u0435\u0436\u0438\u043c CBC (Cipher Block Chaining) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c. \u0412 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u043b\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 &quot;\u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438&quot; (IV).\" data-title=\"&lt;p>\u0435\u0433\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 &quot;\u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438&quot; (IV).&#187; data-title=&#187;&lt;p>\u0420\u0435\u0436\u0438\u043c &lt;a href=&quot;https:\/\/ru.wikipedia.org\/wiki\/\u0420\u0435\u0436\u0438\u043c_\u0441\u0446\u0435\u043f\u043b\u0435\u043d\u0438\u044f_\u0431\u043b\u043e\u043a\u043e\u0432_\u0448\u0438\u0444\u0440\u043e\u0442\u0435\u043a\u0441\u0442\u0430&quot;>CBC&lt;\/a> (Cipher Block Chaining) \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u044b\u043c \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u043c. \u0412 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435, \u043a\u0430\u0436\u0434\u044b\u0439 \u0431\u043b\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445 \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e, \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c&lt;br> \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0431\u043b\u043e\u043a\u0430 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 &quot;\u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438&quot; (IV).&lt;\/p>&lt;p>&lt;\/p>&#187; data-abbr=&#187;CBC&#187;>CBC<\/abbr> &#8212; \u043d\u0435\u0440\u0430\u0432\u043d\u0430\u044f \u0441\u0445\u0432\u0430\u0442\u043a\u0430. \u041c\u0435\u043d\u044f\u0435\u043c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<p><code>esp=aes256gcm16<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442! \u041f\u043e\u0431\u0435\u0434\u0430 \u0437\u0430 \u043d\u0430\u043c\u0438! ?<\/p>\n<details class=\"spoiler\">\n<summary>\u041f\u043e \u0438\u0442\u043e\u0433\u0443, \u0438\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 (\u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u0432\u043d\u0435\u0448\u043d\u0435\u0433\u043e IP)<\/summary>\n<div class=\"spoiler__content\">\n<p><code>IKE Version: 2\u00a0<br \/>Phase 1<br \/>\u00a0IKEv2\u00a0encryption: AES\u2011CBC-256<br \/>\u00a0Integrity hash: SHA256<br \/>\u00a0PRF hash: SHA256<br \/>\u00a0Diffie\u2011Hellman group: group=20<br \/>\u00a0Life\u2011time: 86\u00a0400\u00a0seconds<br \/>Phase 2<br \/>\u00a0IKEv2\u00a0encryption: AES-256<br \/>\u00a0Integrity hash: SHA256<br \/>\u00a0PFS: Yes, group=20<br \/>\u00a0Life\u2011time: 28\u00a0800\u00a0seconds<\/code><\/p>\n<\/div>\n<\/details>\n<details class=\"spoiler\">\n<summary>\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0432 ipsec.conf<\/summary>\n<div class=\"spoiler__content\">\n<p><code>conn strongswan-to-paloalto<br \/>    type=tunnel<br \/>    authby=psk<br \/>    left=%defaultroute<br \/>    leftid=1x.1x.1x.1x<br \/>    leftsubnet=10.1.1.1\/24<br \/>    right=2x.2x.2x.2x<br \/>    rightid=10.10.10.10<br \/>    rightsubnet=10.2.2.2\/24<br \/>    rightsendcert=never<br \/>    keyexchange=ikev2<br \/>    ike=aes256-sha256-ecp384<br \/>    esp=aes256gcm16<br \/>    ikelifetime=86400s<br \/>    lifetime=28800s<br \/>    dpdaction=restart<br \/>    auto=start<\/code><\/p>\n<\/div>\n<\/details>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/773274\/\"> https:\/\/habr.com\/ru\/articles\/773274\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-359882","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/359882","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=359882"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/359882\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=359882"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=359882"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=359882"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}