{"id":114,"date":"2010-06-18T14:37:33","date_gmt":"2010-06-18T11:37:33","guid":{"rendered":"http:\/\/skeletor.org.ua\/wordpress\/?p=114"},"modified":"2011-04-22T16:41:26","modified_gmt":"2011-04-22T13:41:26","slug":"%d0%be%d1%82%d0%b7%d1%8b%d0%b2-%d1%81%d0%b5%d1%80%d1%82%d0%b8%d1%84%d0%b8%d0%ba%d0%b0%d1%82%d0%b0-openvpn","status":"publish","type":"post","link":"https:\/\/skeletor.org.ua\/?p=114","title":{"rendered":"\u041e\u0442\u0437\u044b\u0432 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 openvpn"},"content":{"rendered":"<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0439\u0434\u0451\u0442 \u0440\u0435\u0447\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f. \u0422\u0430\u043a\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0430\u0431\u043e\u0442\u0438\u043d\u0438\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430 \u0434\u043e\u043c\u0443 \u0447\u0435\u0440\u0435\u0437\u00a0<strong>VPN<\/strong>, \u0430 \u043f\u043e\u0442\u043e\u043c \u0443\u0432\u043e\u043b\u0438\u043b\u0441\u044f. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e \u043a\u043b\u044e\u0447\u0438 \u0443 \u043d\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0438 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043a \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0438 \u0438 \u0437\u0430\u0432\u043b\u0430\u0434\u0435\u0442\u044c \u0432\u0430\u0448\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u042d\u0442\u043e \u043d\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p><!--more--><\/p>\n<p><strong><span style=\"color: #ff0000;\">1)\u041f\u0435\u0440\u0435\u0439\u0434\u0451\u043c \u043a \u0434\u0435\u043b\u0443. <\/span><\/strong><\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0448\u0430\u0433\u0438:<\/p>\n<p><em><span style=\"color: #ff6600;\">1)cd \/usr\/local\/etc\/openvpn\/easy-rsa\/2.0<br \/>\n2)source .\/vars<br \/>\n3)sh .\/revoke-full client1\u00a0\u00a0\u00a0\u00a0 # \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0443\u0434\u0430\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043f\u0440\u043e\u0434\u0435\u043b\u044b\u0432\u0430\u0435\u043c \u0442\u0430\u043a\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e<\/span><\/em><\/p>\n<p>\u0415\u0441\u043b\u0438\u00a0\u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443\u00a0<strong>error on line 282 of config file &#8216;&#8230;.openvpn\/easy-rsa\/openssl.cnf&#8217;<\/strong>, \u0442\u043e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438 \u0432\u00a0<strong>openssl.cnf<\/strong>:<\/p>\n<p><code>#[ pkcs11_section ]<br \/>\n#engine_id = pkcs11<br \/>\n#dynamic_path = \/usr\/lib\/engines\/engine_pkcs11.so<br \/>\n#MODULE_PATH = $ENV::PKCS11_MODULE_PATH<br \/>\n#PIN = $ENV::PKCS11_PIN<br \/>\n#init = 0<\/code><\/p>\n<p>\u0438 \u043e\u043f\u044f\u0442\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u043f\u0443\u043d\u043a\u0442 1.<\/p>\n<p><strong><span style=\"color: #ff0000;\">2) \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u0445\u043e\u0440\u043e\u0448\u043e, \u0442\u043e \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430<\/span><\/strong><\/p>\n<p><code>\"Revoking Certificate ... Data Base Updated\"<\/code><\/p>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043b\u0430\u0437\u0438\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430:<\/p>\n<p><code>error 23 at 0 depth lookup:certificate revoked<\/code><\/p>\n<p>\u0417\u0430\u0431\u0438\u0432\u0430\u0435\u043c \u043d\u0430 \u043d\u0435\u0451 \ud83d\ude42<\/p>\n<p><strong><span style=\"color: #ff0000;\">3)<\/span><\/strong> \u041a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0448\u0438\u0439\u0441\u044f\u00a0<strong>crl.pem<\/strong> \u043d\u0430 \u043c\u0435\u0441\u0442\u043e \u0442\u043e\u0433\u043e, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c (\u043f\u0443\u0442\u044c \u043a \u043d\u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0444\u0430\u0439\u043b\u0435\u00a0<strong>openvon.conf<\/strong>, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u00a0<strong>crl-verify<\/strong>) \u0415\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 \u043d\u0435\u0442 &#8211; \u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u0433\u043e \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043c\u0435\u0441\u0442\u043e\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430<\/p>\n<p><code>crl-verify \/usr\/local\/etc\/openvpn\/crl.pem<br \/>\n<\/code><br \/>\n\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u041e\u0411\u042f\u0417\u042f\u0422\u0415\u041b\u042c\u041d\u041e \u0412\u042b\u0421\u0422\u0410\u0412\u041b\u042f\u0415\u041c \u041f\u0420\u0410\u0412\u0410 \u0414\u041b\u042f \u0424\u0410\u0419\u041b\u0410\u00a0<strong>crl.pem<\/strong> <strong>644<\/strong>, \u0438\u043d\u0430\u0447\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442.\u00a0<strong>openvpn<\/strong> \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0447\u0435\u0441\u0442\u044c \u044d\u0442\u043e\u0442 \u0444\u0430\u0439\u043b (\u0443 \u043c\u0435\u043d\u044f\u00a0<strong>openvpn<\/strong> \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0442 \u044e\u0437\u0435\u0440\u0430\u00a0<strong>nobody<\/strong>).<\/p>\n<p><strong><span style=\"color: #ff0000;\">4) \u0414\u0435\u043b\u0430\u0435\u043c \u0440\u0435\u0441\u0442\u0430\u0440\u0442 \u0434\u0435\u043c\u043e\u043d\u0430:<\/span><\/strong><\/p>\n<p><code>#\/usr\/local\/etc\/rc.d\/openvpn restart<\/code><\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435 \u0441\u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u0442\u0435, \u043a\u043e\u0433\u043e \u043c\u044b \u0443\u0434\u0430\u043b\u0438\u043b\u0438 \u0438\u0437 \u0431\u0430\u0437\u044b.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u0439\u0434\u0451\u0442 \u0440\u0435\u0447\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0437\u0430\u043f\u0440\u0435\u0442\u0438\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430\u043c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c\u0441\u044f. \u0422\u0430\u043a\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043d\u0443\u0442\u044c, \u0435\u0441\u043b\u0438 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0440\u0430\u0431\u043e\u0442\u0438\u043d\u0438\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043d\u0430 \u0434\u043e\u043c\u0443 \u0447\u0435\u0440\u0435\u0437\u00a0VPN, \u0430 \u043f\u043e\u0442\u043e\u043c \u0443\u0432\u043e\u043b\u0438\u043b\u0441\u044f. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e \u043a\u043b\u044e\u0447\u0438 \u0443 \u043d\u0435\u0433\u043e \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0438 \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0441\u044f \u043a \u0432\u0430\u0448\u0435\u0439 \u0441\u0435\u0442\u0438 \u0438 \u0437\u0430\u0432\u043b\u0430\u0434\u0435\u0442\u044c \u0432\u0430\u0448\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u042d\u0442\u043e \u043d\u0435 \u0445\u043e\u0440\u043e\u0448\u043e \u0441 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-114","post","type-post","status-publish","format-standard","hentry","category-security"],"_links":{"self":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/114","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=114"}],"version-history":[{"count":3,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=\/wp\/v2\/posts\/114\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=114"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=114"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/skeletor.org.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=114"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}