{"id":194144,"date":"2013-09-25T14:03:02","date_gmt":"2013-09-25T10:03:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=194144"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=194144","title":{"rendered":"<span class=\"post_title\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 OpenVPN \u043d\u0430 CentOS 6.4<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0438\u0437 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u043e\u0431\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 \u0442\u0440\u0443\u0434\u043e\u0432\u0443\u044e \u0441\u0440\u0435\u0434\u0443 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u044f. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0434\u043e\u043c\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430 \u043b\u0438\u043d\u0438\u0435\u0439 \u0444\u0440\u043e\u043d\u0442\u0430 \u043d\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u0434\u0430 \u0438 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u0430 \u0437\u0430 \u0437\u0430\u0431\u043e\u0440 NAT, \u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0434\u043b\u044f \u0432\u0435\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u0434\u043e\u0441\u0443\u0433\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 <a href=\"http:\/\/www.openvpn.net\">OpenVPN<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0440\u043e\u0448\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u0435\u043f\u043e\u043d\u0430\u043c\u0438. \u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b (\u043e\u0442\u0433\u043e\u0432\u043e\u0440\u043a\u0430 \u0447\u0442\u043e \u0442\u044b \u043d\u0435 \u0437\u0430 \u043a\u043e\u043c\u043f\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439).<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 openvpn \u0431\u044b\u043b \u0432\u0437\u044f\u0442 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u043e\u0439 \u041e\u0421 CentOS:   <\/p>\n<pre><code class=\"bash\">uname -a  Linux qwert0 2.6.32-358.18.1.el6.i686 #1 SMP Wed Aug 28 14:27:42 UTC 2013 i686 i686 i386 GNU\/Linux <\/code><\/pre>\n<p>  <\/p>\n<h4>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 OpenVPN<\/h4>\n<p>  \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 OpenVPN-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0435 CentOS 6.4 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430:  <\/p>\n<pre><code class=\"bash\">yum install openvpn <\/code><\/pre>\n<p>  \u0411\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044f openvpn-2.3.2-1.el6.i686 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u0422\u0430\u043a \u0436\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0433\u0440\u0443\u043f\u043f\u0430 openvpn \u0438 \u0437\u0430\u0432\u0435\u0434\u0451\u043d \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c openvpn. \u041f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0430\u0442\u044c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0441\u0443\u0449\u0435\u0441\u0442\u0443\u044e\u0442 \u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b tun\/tap. \u0412\u0432\u043e\u0434\u0438\u043c:  <\/p>\n<pre><code class=\"bash\">cat \/dev\/net\/tun cat: \/dev\/net\/tun: File descriptor in bad state <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0441\u0442\u0430\u0442\u0443\u0441: \u00abFile descriptor in bad state\u00bb \u2014 \u0437\u043d\u0430\u0447\u0438\u0442 \u0437\u0434\u0435\u0441\u044c \u0432\u0441\u0451 \u0435\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e.<br \/>  \u041d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438, \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0440\u0430\u0432\u0430 \u0438 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 \u043d\u0430 \u043d\u0438\u0445:  <\/p>\n<pre><code class=\"bash\">touch \/etc\/openvpn\/server.conf touch \/etc\/openvpn\/ip.sv mkdir \/var\/log\/openvpn chown openvpn.openvpn \/etc\/openvpn\/* chcon -u system_u \/etc\/openvpn\/*  restorecon -v -R  \/etc\/openvpn\/* <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0444\u0430\u0439\u043b \/usr\/share\/openvpn\/easy-rsa\/2.0\/vars \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0444\u0430\u0439\u043b\u0430 vars<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\"># easy-rsa parameter settings   # NOTE: If you installed from an RPM,  # don't edit this file in place in  # \/usr\/share\/openvpn\/easy-rsa --  # instead, you should copy the whole  # easy-rsa directory to another location  # (such as \/etc\/openvpn) so that your  # edits will not be wiped out by a future  # OpenVPN package upgrade.   # This variable should point to  # the top level of the easy-rsa  # tree.  export EASY_RSA=&quot;`pwd`&quot;   #  # This variable should point to  # the requested executables  #  export OPENSSL=&quot;openssl&quot;  export PKCS11TOOL=&quot;pkcs11-tool&quot;  export GREP=&quot;grep&quot;     # This variable should point to  # the openssl.cnf file included  # with easy-rsa.  export KEY_CONFIG=`$EASY_RSA\/whichopensslcnf $EASY_RSA`   # Edit this variable to point to  # your soon-to-be-created key  # directory.  #  # WARNING: clean-all will do  # a rm -rf on this directory  # so make sure you define  # it correctly!  export KEY_DIR=&quot;$EASY_RSA\/keys&quot;   # Issue rm -rf warning  echo NOTE: If you run .\/clean-all, I will be doing a rm -rf on $KEY_DIR   # PKCS11 fixes  export PKCS11_MODULE_PATH=&quot;dummy&quot;  export PKCS11_PIN=&quot;dummy&quot;   # Increase this to 2048 if you  # are paranoid.  This will slow  # down TLS negotiation performance  # as well as the one-time DH parms  # generation process.  export KEY_SIZE=2048   # In how many days should the root CA key expire?  export CA_EXPIRE=730   # In how many days should certificates expire?  export KEY_EXPIRE=730   # These are the default values for fields  # which will be placed in the certificate.  # Don't leave any of these fields blank.  export KEY_COUNTRY=&quot;RU&quot;  export KEY_PROVINCE=&quot;OUTSIDEMKAD&quot;  export KEY_CITY=&quot;Babaysk&quot;  export KEY_ORG=&quot;Faton&quot;  export KEY_EMAIL=&quot;support@wostok.su&quot;  export KEY_EMAIL=support@wostok.su  export KEY_CN=qwert0  export KEY_NAME=server  export KEY_OU=DD  #export PKCS11_MODULE_PATH=changeme  #export PKCS11_PIN=1234 <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>   \u041f\u0440\u043e\u0437\u043d\u0430\u0442\u044c \u043a\u0430\u043a\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f openssl \u0441\u0442\u043e\u0438\u0442 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435:  <\/p>\n<pre><code class=\"bash\">rpm -qa openssl  openssl-1.0.0-27.el6_4.2.i686 <\/code><\/pre>\n<p>   \u041f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b \/usr\/share\/openvpn\/easy-rsa\/2.0\/openssl-1.0.0.cnf \u0432 \/usr\/share\/openvpn\/easy-rsa\/2.0\/openssl.cnf, \u0447\u0442\u043e\u0431\u044b \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u044b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u044e\u0447\u0435\u0439:  <\/p>\n<pre><code class=\"bash\">mv openssl-1.0.0.cnf openssl.cnf <\/code><\/pre>\n<p>   \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0432\u0441\u0451 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443:  <\/p>\n<pre><code class=\"bash\">. .\/vars <\/code><\/pre>\n<p>  <i>\u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u2014 \u0434\u0432\u0435 \u0442\u043e\u0447\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b<\/i><br \/>   \u0423\u0434\u0430\u043b\u044f\u0435\u043c \u0432\u0441\u0451 \u0438 \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u043a \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \/usr\/share\/openvpn\/easy-rsa\/2.0\/keys:  <\/p>\n<pre><code class=\"bash\">.\/clean-all <\/code><\/pre>\n<p>   \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0444\u0430\u0439\u043b ca.key \u2014 \u043e\u043d \u043d\u0443\u0436\u0435\u043d \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0443. \u0413\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043c\u043e\u0436\u043d\u043e \u0436\u0430\u0442\u044c Enter \u043d\u0430 \u0432\u0441\u0435\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0413\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0444\u0430\u0439\u043b\u0430 ca.key<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">.\/build-ca  Generating a 2048 bit RSA private key  .....+++  ................................+++  writing new private key to 'ca.key'  -----  You are about to be asked to enter information that will be incorporated  into your certificate request.  What you are about to enter is what is called a Distinguished Name or a DN.  There are quite a few fields but you can leave some blank  For some fields there will be a default value,  If you enter '.', the field will be left blank.  -----  Country Name (2 letter code) [RU]:  State or Province Name (full name) [OUTSIDEMKAD]:  Locality Name (eg, city) [Babaysk]:  Organization Name (eg, company) [Faton]:  Organizational Unit Name (eg, section) [ChaosDepartament]:  Common Name (eg, your name or your server's hostname) [qwert0.wostok.su]:  Name [server]:  Email Address [support@wostok.su]: <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0438 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0438 \u043a\u043b\u044e\u0447 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">.\/build-key-server server  Generating a 2048 bit RSA private key  .......................+++  .........................................................+++  writing new private key to 'server.key'  -----  You are about to be asked to enter information that will be incorporated  into your certificate request.  What you are about to enter is what is called a Distinguished Name or a DN.  There are quite a few fields but you can leave some blank  For some fields there will be a default value,  If you enter '.', the field will be left blank.  -----  Country Name (2 letter code) [RU]:  State or Province Name (full name) [OUTSIDEMKAD]:  Locality Name (eg, city) [Babaysk]:  Organization Name (eg, company) [Faton]:  Organizational Unit Name (eg, section) [ChaosDepartament]:  Common Name (eg, your name or your server's hostname) [server]:  Name [server]:  Email Address [support@wostok.su]:  Please enter the following 'extra' attributes  to be sent with your certificate request  A challenge password []:  An optional company name []:  Using configuration from \/usr\/share\/openvpn\/easy-rsa\/2.0\/openssl.cnf  Check that the request matches the signature  Signature ok  The Subject's Distinguished Name is as follows  countryName           :PRINTABLE:'RU'  stateOrProvinceName   :PRINTABLE:'OUTSIDEMKAD'  localityName          :PRINTABLE:'Babaysk'  organizationName      :PRINTABLE:'Faton'  organizationalUnitName:PRINTABLE:'ChaosDepartament'  commonName            :PRINTABLE:'server'  name                  :PRINTABLE:'server'  emailAddress          :IA5STRING:'support@wostok.su'  Certificate is to be certified until Apr 17 07:51:46 2015 GMT (730 days)  Sign the certificate? [y\/n]:y     1 out of 1 certificate requests certified, commit? [y\/n]y  Write out database with 1 new entries  Data Base Updated <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 Diffie-Hellman:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043f\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0443 Diffie-Hellman<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">.\/build-dh  Generating DH parameters, 2048 bit long safe prime, generator 2  This is going to take a long time  ..................................+..............................................+...+...................................................+...........................+.....................................+.................................................................................................................................................+.......................................................................................................................................................+........................................................................................................................................................................+............................................................................................................................................................................................................................................................+.................................................................................................................................................+.................................+................................................................................................................................+.......................................................................................................................+..+............................+..............................+...........................................+.................................+.......+.........................................+......+......................+....................................+.......+.............................................................+......................................................+...........................................................................................................................................................................................................++*++* <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>   \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442 \u0438 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430 velowup (\u0442\u0430\u043a\u043e\u0435 \u0432\u043e\u0442 \u0438\u043c\u044f \u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0433\u043e \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430):  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0430 \u0438 \u043a\u043b\u044e\u0447\u0430 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">.\/build-key velowup  Generating a 2048 bit RSA private key  .................+++  ........................+++  writing new private key to 'velowup.key'  -----  You are about to be asked to enter information that will be incorporated  into your certificate request.  What you are about to enter is what is called a Distinguished Name or a DN.  There are quite a few fields but you can leave some blank  For some fields there will be a default value,  If you enter '.', the field will be left blank.  -----  Country Name (2 letter code) [RU]:  State or Province Name (full name) [OUTSIDEMKAD]:  Locality Name (eg, city) [Babayks]:  Organization Name (eg, company) [Faton]:  Organizational Unit Name (eg, section) [ChaosDepartament]:  Common Name (eg, your name or your server's hostname) [velowup]:  Name [server]:  Email Address [support@wostok.su]:   Please enter the following 'extra' attributes  to be sent with your certificate request  A challenge password []:  An optional company name []:  Using configuration from \/usr\/share\/openvpn\/easy-rsa\/2.0\/openssl.cnf  Check that the request matches the signature  Signature ok  The Subject's Distinguished Name is as follows  countryName           :PRINTABLE:'RU'  stateOrProvinceName   :PRINTABLE:'OUTSIDEMKAD'  localityName          :PRINTABLE:'Babayks'  organizationName      :PRINTABLE:'Faton'  organizationalUnitName:PRINTABLE:'ChaosDepartament'  commonName            :PRINTABLE:'velowup'  name                  :PRINTABLE:'server'  emailAddress          :IA5STRING:'support@wostok.su'  Certificate is to be certified until Apr 17 08:51:17 2015 GMT (730 days)  Sign the certificate? [y\/n]:y   1 out of 1 certificate requests certified, commit? [y\/n]y  Write out database with 1 new entries  Data Base Updated <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>   \u0418 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043e\u0431\u0449\u0438\u0439 \u043a\u043b\u044e\u0447 \u0434\u043b\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430. \u042d\u0442\u043e TLS-\u043a\u043b\u044e\u0447:  <\/p>\n<pre><code class=\"bash\">openvpn --genkey --secret ta.key <\/code><\/pre>\n<p>   \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \u0434\u043b\u044f \u043a\u043b\u044e\u0447\u0435\u0439:  <\/p>\n<pre><code class=\"bash\">mkdir \/etc\/openvpn\/.key mkdir \/etc\/openvpn\/.tls <\/code><\/pre>\n<p>   \u041f\u0435\u0440\u0435\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438:  <\/p>\n<pre><code class=\"bash\">cp \/usr\/share\/openvpn\/easy-rsa\/2.0\/key\/* \/etc\/openvpn\/.key\/ cp \/usr\/share\/openvpn\/easy-rsa\/2.0\/ta.key \/etc\/openvpn\/.tls\/ <\/code><\/pre>\n<p>   \u041f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442:  <\/p>\n<pre><code class=\"bash\">chcon -u system_u \/etc\/openvpn\/.key\/* restorecon -v  \/etc\/openvpn\/.key\/*  chcon -u system_u \/etc\/openvpn\/.tls\/* restorecon -v  \/etc\/openvpn\/.tls\/* chcon -u system_u \/etc\/openvpn\/.key\/ restorecon -v  \/etc\/openvpn\/.key\/ chcon -u system_u \/etc\/openvpn\/.tls\/  restorecon -v  \/etc\/openvpn\/.tls\/ <\/code><\/pre>\n<p>   \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c tcp \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 1723 \u0432 SELinux:  <\/p>\n<pre><code class=\"bash\">semanage port -a -t openvpn_port_t -p tcp 1723 <\/code><\/pre>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \/etc\/openvpn\/server.conf \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/b><\/p>\n<div class=\"spoiler_text\"># \u041a\u0430\u043a\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u043b\u0443\u0448\u0430\u0442\u044c? <br \/>  #(\u0423 \u043a\u043e\u0433\u043e-\u0442\u043e \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c ip \u0430\u0434\u0440\u0435\u0441 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u044d\u0442\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e eth0) <br \/>  local 192.168.0.253 <\/p>\n<p>  # \u041a\u0430\u043a\u043e\u0439 \u043f\u043e\u0440\u0442 \u0441\u043b\u0443\u0448\u0430\u0442\u044c? <br \/>  port 1723 <\/p>\n<p>  # \u041d\u0430 \u043a\u0430\u043a\u043e\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c? <br \/>  proto tcp-server <\/p>\n<p>  # \u0412 \u043a\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c? \u041c\u043e\u0441\u0442\u043e\u043c (tap) \u0438\u043b\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f (tun) <br \/>  dev tun0 <br \/>  ;dev tap0 <\/p>\n<p>  # MTU <br \/>  tun-mtu 1392<\/p>\n<p>  # \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u043f\u043e \u043f\u0430\u0440\u043e\u043b\u044e <br \/>  #auth-user-pass <br \/>  # \u041f\u0443\u0442\u0438 \u043a \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c\u0443 \u0441\u0435\u0440\u0442\u0435\u0444\u0438\u043a\u0430\u0442\u0443, \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u0443 \u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443. <br \/>  ca \/etc\/openvpn\/.key\/ca.crt <br \/>  cert \/etc\/openvpn\/.key\/server.crt <br \/>  key \/etc\/openvpn\/.key\/server.key <\/p>\n<p>  # \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0414\u0438\u0444\u0444\u0438-\u0425\u0435\u043b\u043c\u0430\u043d\u0430 <br \/>  dh \/etc\/openvpn\/.key\/dh2048.pem <\/p>\n<p>  # \u041e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u0441\u043a\u0438\u0445 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0432 <br \/>  # client-cert-not-required <br \/>  # username-as-common-name <\/p>\n<p>  # \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0440\u0435\u0436\u0438\u043c\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u0418\u041f \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0434\u043b\u044f \u0432\u044b\u0434\u0430\u0447\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c. \u0421\u0435\u0440\u0432\u0435\u0440 \u0432\u043e\u0437\u044c\u043c\u0435\u0442 <br \/>  # \u0441\u0435\u0431\u0435 10.10.20.1 <br \/>  # \u041d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0435 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 10.10.20.1. \u0417\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0439\u0442\u0435 \u044d\u0442\u0443<br \/>  # \u0441\u0442\u0440\u043e\u043a\u0443, \u0435\u0441\u043b\u0438 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 ethernet \u043c\u043e\u0441\u0442.<br \/>  server 10.10.20.0 255.255.255.0 <br \/>  ;ifconfig 172.16.1.1 255.255.255.0 <br \/>  ;ifconfig-pool 172.16.1.2 172.16.1.96 <\/p>\n<p>  # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u0434\u043b\u044f ethernet \u043c\u043e\u0441\u0442\u0430. <br \/>  # \u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0432 \u0441\u0432\u043e\u0435\u0439 \u041e\u0421 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u043e\u0441\u0442 <br \/>  # \u043c\u0435\u0436\u0434\u0443 TAP \u0438 NIC \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c. <br \/>  # \u0417\u0430\u0442\u0435\u043c \u0432\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <br \/>  # IP\/\u043c\u0430\u0441\u043a\u0443 \u043d\u0430 \u043c\u043e\u0441\u0442, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 10.8.0.4\/255.255.255.0. <br \/>  # \u0412 \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d IP <br \/>  # \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0432 \u044d\u0442\u043e\u0439 \u043f\u043e\u0434\u0441\u0435\u0442\u0438 \u0434\u043b\u044f \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c <br \/>  # (\u043d\u0430\u0447\u0430\u043b\u043e=10.8.0.50 \u043a\u043e\u043d\u0435\u0446=10.8.0.100). <br \/>  # \u041e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u043a\u0443 \u0437\u0430\u043a\u043e\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439, \u0435\u0441\u043b\u0438 \u0432\u044b <br \/>  # \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 ethernet \u043c\u043e\u0441\u0442. <br \/>  ;server-bridge<\/p>\n<p>  # \u0420\u0435\u0436\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0430<br \/>  daemon <br \/>  mode server <\/p>\n<p>  # \u0420\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c TLS <br \/>  tls-server <\/p>\n<p>  # \u0420\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f VPN \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u043c\u0435\u0436\u0434\u0443 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u043e\u043c? <br \/>  #client-to-client <\/p>\n<p>  # \u0421\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442 &lt;-&gt; \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 IP-\u0430\u0434\u0440\u0435\u0441 <br \/>  # \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u0444\u0430\u0439\u043b\u0435. \u0415\u0441\u043b\u0438 OpenVPN \u0443\u043f\u0430\u0434\u0435\u0442 \u0438\u043b\u0438 <br \/>  # \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0449\u0435\u043d, \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u044e\u0449\u0438\u043c\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b <br \/>  # \u0438\u0437 \u043f\u0443\u043b\u0430 \u0442\u0430\u043a\u0438\u0435 \u0436\u0435 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 IP-\u0430\u0434\u0440\u0435\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u044b \u0438\u043c \u0432 \u043f\u0440\u043e\u0448\u043b\u044b\u0439 <br \/>  # \u0440\u0430\u0437. <br \/>  ifconfig-pool-persist \/etc\/openvpn\/ip.sv<\/p>\n<p>  ;client-config-dir \/etc\/openvpn\/.clt<\/p>\n<p>  # \u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u0438, \u0433\u0434\u0435 X.X.X.X \u2014 IP \u0430\u0434\u0440\u0435\u0441 \u0432\u0430\u0448\u0435\u0433\u043e eth0, \u0447\u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 <br \/>  push \u00abroute 192.168.0.0 255.255.255.0\u00bb <\/p>\n<p>  # \u041f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0443 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0448\u043b\u044e\u0437\u0430 <br \/>  ;push \u00abroute-gateway 192.168.0.2\u00bb <\/p>\n<p>  # \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 Windows-\u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u043d\u044b\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 <br \/>  # \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u044b \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c, \u0442\u0430\u043a\u0438\u0435 \u043a\u0430\u043a \u0430\u0434\u0440\u0435\u0441\u0430 DNS- <br \/>  # \u0438\u043b\u0438 WINS-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432. \u041f\u0420\u0415\u0414\u041e\u0421\u0422\u0415\u0420\u0415\u0416\u0415\u041d\u0418\u0415: <br \/>  # <a href=\"http:\/\/openvpn.net\/faq.html#dhcpcaveats\">openvpn.net\/faq.html#dhcpcaveats<\/a> <br \/>  push \u00abdhcp-option DNS 192.168.0.2\u00bb <br \/>  ;push \u00abdhcp-option DNS 192.168.0.1\u00bb <\/p>\n<p>  # \u0427\u0442\u043e\u0431\u044b \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043a VPN \u0448\u0435\u043b \u0447\u0435\u0440\u0435\u0437 VPN-\u0441\u0435\u0440\u0432\u0435\u0440 (\u044d\u0442\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442<br \/>  # \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0448\u043b\u044e\u0437 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0430 vpn-\u0441\u0435\u0440\u0432\u0435\u0440), <br \/>  # \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 openvpn.conf.<br \/>  ;push \u00abredirect-gateway\u00bb <\/p>\n<p>  # \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f <br \/>  keepalive 10 120 <\/p>\n<p>  # \u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u0438 \u0437\u0430\u0449\u0438\u0442\u044b \u043e\u0442 \u0414\u041e\u0421 \u0438 \u0444\u043b\u0443\u0434\u0430 \u0432\u044b\u0434\u0430\u0451\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c ta.key. \u041d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 0, \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u0445 1. <br \/>  tls-auth \/etc\/openvpn\/.tls\/ta.key 0 <\/p>\n<p>  # \u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u044b\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0448\u0438\u0444\u0440\u0430. \u041d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0442\u0430\u043a \u0436\u0435 \u0438 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435. <br \/>  cipher AES-256-CBC <br \/>  #cipher AES256-SHA <\/p>\n<p>  # \u0440\u0430\u0437\u043c\u0435\u0440 \u043a\u043b\u044e\u0447\u0430 \u0432 \u0431\u0438\u0442\u0430\u0445 <br \/>  #keysize 2048 <\/p>\n<p>  # \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c \u0445\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <br \/>  auth SHA512 <\/p>\n<p>  # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0436\u0430\u0442\u0438\u0435. \u0415\u0441\u043b\u0438 \u0434\u0430, \u0442\u043e \u043d\u0430\u0434\u043e \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0438 \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0435. <br \/>  comp-lzo <\/p>\n<p>  # \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 <br \/>  max-clients 20 <\/p>\n<p>  # \u041e\u0442 \u043a\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440\u0443? <br \/>  user openvpn <br \/>  group openvpn <\/p>\n<p>  # persist-\u043e\u043f\u0446\u0438\u0438 \u0441\u043a\u0430\u0436\u0443\u0442 OpenVPN \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0432\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u0430<br \/>  # \u043a \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u043c \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c, <br \/>  # \u0442.\u043a. \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0438\u0437-\u0437\u0430 \u043f\u043e\u043d\u0438\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u0432\u0435\u043b\u0435\u0433\u0438\u0439. <br \/>  persist-key <br \/>  persist-tun <\/p>\n<p>  # \u0424\u0430\u0439\u043b \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439. \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437 \u0432 \u043c\u0438\u043d\u0443\u0442\u0443. <br \/>  status \/var\/log\/openvpn\/openvpn-status.log <\/p>\n<p>  # \u041a\u0443\u0434\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u043b\u043e\u0433\u0438? <br \/>  log-append \/var\/log\/openvpn\/openvpn.log <\/p>\n<p>  # \u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0434\u0435\u0442\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043b\u043e\u0433\u0430 <br \/>  verb 5 <\/p>\n<p>  # \u041d\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0445\u0441\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u0441\u0440\u0430\u0437\u0443 <br \/>  mute 20  <\/div>\n<\/div>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442\u044c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u043c \u0444\u0430\u0439\u0435\u0440\u0432\u043e\u043b\u0430.<br \/>  \u0412 iptables \u043f\u0435\u0440\u0435\u0434 \u0441\u0442\u0440\u043e\u0447\u043a\u0430\u043c\u0438, \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u044e\u0449\u0438\u043c\u0438 \u0432\u0441\u0435 INPUT \u0438 FORWARD  <\/p>\n<pre><code class=\"bash\">-A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited <\/code><\/pre>\n<p>  \u043f\u0438\u0448\u0435\u043c:  <\/p>\n<pre><code class=\"bash\">-A INPUT -i tun0 -j ACCEPT -A FORWARD -i tun0 -j ACCEPT <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0438 \u00ab\u043d\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438\u00bb:  <\/p>\n<pre><code class=\"bash\">*nat  :PREROUTING ACCEPT [4:614]  :POSTROUTING ACCEPT [18:936]  :OUTPUT ACCEPT [18:936]  -A POSTROUTING -s 10.10.20.0\/24 -o eth0 -j MASQUERADE <\/code><\/pre>\n<p>  \u00ab\u0420\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u043c\u00bb iptables:  <\/p>\n<pre><code class=\"bash\">service iptables restart <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c openvpn  <\/p>\n<pre><code class=\"bash\">service openvpn start <\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0438\u0441 \u043e\u0442\u043a\u0440\u044b\u043b \u043f\u043e\u0440\u0442 \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442:  <\/p>\n<pre><code class=\"bash\">netstat -nlp | grep 1723 tcp        0      0 192.168.0.2:1723         0.0.0.0:*                   LISTEN  <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0441\u0451 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u0441\u0442\u0430\u0432\u0438\u043c OpenVPN \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a:  <\/p>\n<pre><code class=\"bash\">chkconfig openvpn on <\/code><\/pre>\n<h4>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 OpenVPN<\/h4>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0434\u043e\u043c\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0441\u0442\u043e\u0438\u0442 CentOS, \u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0431\u0443\u0434\u0443 \u0432\u0435\u0441\u0442\u0438 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u044d\u0442\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043a\u0438, \u0445\u043e\u0442\u044f \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u0434\u043b\u044f \u0434\u0440\u0443\u0433\u0438\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u043e\u0432 \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b.<br \/>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0431\u0443\u0434\u0443\u0442 \u0440\u0430\u0441\u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b:  <\/p>\n<pre><code class=\"bash\">mkdir \/etc\/openvpn\/.key\/ mkdir \/etc\/openvpn\/.tls\/ <\/code><\/pre>\n<p>  \u041d\u0430\u0438\u0441\u0435\u043a\u0440\u0435\u0442\u043d\u0435\u0439\u0448\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0441\u0442\u043e\u0438\u0442 \u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0442\u0438 \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0443\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u043c\u0430\u0448\u0438\u043d\u0443 \u0444\u0430\u0439\u043b\u044b, \u0440\u0430\u043d\u0435\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435:  <\/p>\n<pre><code class=\"bash\">ca.crt  dh2048.pem  velowup.crt  velowup.key <\/code><\/pre>\n<p>  \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 \/etc\/openvpn\/.key\/. <br \/>  \u0410 \u0444\u0430\u0439\u043b ta.key \u043f\u0443\u0441\u0442\u044c \u043f\u043e\u043b\u0435\u0436\u0438\u0442 \u0432 \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435 etc\/openvpn\/.tls.<br \/>  \u0424\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430 OpenVPN \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0438\u0434\u0430:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b<\/b><\/p>\n<div class=\"spoiler_text\"># \u0423\u043a\u0430\u0436\u0435\u043c, \u0447\u0442\u043e \u043c\u044b \u044f\u0432\u043b\u044f\u0435\u043c\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u043c <br \/>  client <br \/>  tls-client <br \/>  # \u0412 \u043a\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c? \u041c\u043e\u0441\u0442\u043e\u043c (tap) \u0438\u043b\u0438 \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f (tun)<br \/>  dev tun <\/p>\n<p>  # \u041d\u0430 \u043a\u0430\u043a\u043e\u043c \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c <br \/>  proto tcp-client <\/p>\n<p>  # \u0410\u0434\u0440\u0435\u0441 \u0438 \u043f\u043e\u0440\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 (\u0425\u043e\u0442\u044c IP \u0445\u043e\u0442\u044c \u0434\u043e\u043c\u0435\u043d\u043d\u043e\u0435 \u0438\u043c\u044f) <br \/>  remote wostok.su 1723 <\/p>\n<p>  # \u0411\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0440\u0435\u0448\u0438\u0442\u044c \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 OpenVPN-\u0441\u0435\u0440\u0432\u0435\u0440\u0430. <br \/>  resolv-retry infinite <\/p>\n<p>  # \u041d\u0435 \u00ab\u0431\u0438\u043d\u0434\u0438\u0442\u044c\u0441\u044f\u00bb \u043a \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 <br \/>  nobind <\/p>\n<p>  # \u0421\u0442\u0430\u0440\u0430\u0442\u044c\u0441\u044f \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043c\u0435\u0436\u0434\u0443 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043c\u0438 <br \/>  persist-key <br \/>  persist-tun <\/p>\n<p>  # \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b SSL\/TLS. <br \/>  # \u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0434\u043b\u044f \u0431\u043e\u043b\u0435\u0435 <br \/>  # \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0433\u043e \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u044f. \u041b\u0443\u0447\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <br \/>  # \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0430\u0440\u044b .crt\/.key-\u0444\u0430\u0439\u043b\u043e\u0432 <br \/>  # \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430. \u041e\u0434\u0438\u043d ca-\u0444\u0430\u0439\u043b <br \/>  # \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432. <br \/>  ca \/etc\/openvpn\/.key\/ca.crt <br \/>  dh \/etc\/openvpn\/.key\/dh2048.pem <br \/>  cert \/etc\/openvpn\/.key\/velowup.crt <br \/>  key \/etc\/openvpn\/.key\/velowup.key <\/p>\n<p>  # \u0415\u0441\u043b\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u043b\u044e\u0447 tls-auth, <br \/>  # \u0442\u043e \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0438\u043c\u0435\u0442\u044c \u044d\u0442\u043e\u0442 \u043a\u043b\u044e\u0447. <br \/>  tls-auth \/etc\/openvpn\/.tls\/ta.key 1 <\/p>\n<p>  # \u0412\u044b\u0431\u043e\u0440 \u043a\u0440\u0438\u043f\u0442\u043e\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0448\u0438\u0444\u0440\u0430 (cipher). <br \/>  # \u0415\u0441\u043b\u0438 \u043e\u043f\u0446\u0438\u044f cipher \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435, <br \/>  # \u0442\u043e \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0451 \u0437\u0434\u0435\u0441\u044c. <br \/>  cipher AES-256-CBC <br \/>  auth SHA512 <\/p>\n<p>  # \u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0436\u0430\u0442\u0438\u0435 <br \/>  comp-lzo <\/p>\n<p>  # \u0423\u0440\u043e\u0432\u0435\u043d\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f <br \/>  verb 4 <\/p>\n<p>  # \u041d\u0435 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c <br \/>  mute 20 <\/p>\n<p>  # \u041e\u0442 \u043a\u0430\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0443?<br \/>  user openvpn <br \/>  group openvpn <\/p>\n<p>  # \u041a\u0443\u0434\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u0436\u0443\u0440\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u0430?<br \/>  log-append \/var\/log\/openvpn\/openvpn_client.log <br \/>  status \/var\/log\/openvpn\/status_client.log <\/p>\n<p>  ;route 172.16.1.0 255.255.255.0  <\/div>\n<\/div>\n<p>  \u0412\u043e\u0442, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0438 \u0432\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438. \u0414\u0430\u043b\u044c\u0448\u0435 \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0438\u0437 \u0434\u0430\u043b\u0435\u043a\u0430:  <\/p>\n<pre><code class=\"bash\">\/usr\/sbin\/openvpn \/etc\/openvpn\/client.conf <\/code><\/pre>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/194144\/\"> http:\/\/habrahabr.ru\/post\/194144\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0438 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f \u0438\u0437 \u0434\u043e\u043c\u0430\u0448\u043d\u0435\u0439 \u043e\u0431\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432 \u0442\u0440\u0443\u0434\u043e\u0432\u0443\u044e \u0441\u0440\u0435\u0434\u0443 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043f\u043e\u043c\u0435\u0449\u0435\u043d\u0438\u044f. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0434\u043e\u043c\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0437\u0430 \u043b\u0438\u043d\u0438\u0435\u0439 \u0444\u0440\u043e\u043d\u0442\u0430 \u043d\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u0434\u0430 \u0438 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u043e\u0434\u0441\u0435\u0442\u044c \u0441\u043f\u0440\u044f\u0442\u0430\u043d\u0430 \u0437\u0430 \u0437\u0430\u0431\u043e\u0440 NAT, \u0442\u043e \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0434\u043b\u044f \u0432\u0435\u0447\u0435\u0440\u043d\u0435\u0433\u043e \u0434\u043e\u0441\u0443\u0433\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0435 \u0431\u044b\u043b \u0432\u044b\u0431\u0440\u0430\u043d \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 <a href=\"http:\/\/www.openvpn.net\">OpenVPN<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0445\u043e\u0440\u043e\u0448\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441 \u0442\u0430\u043a\u0438\u043c\u0438 \u043f\u0440\u0435\u043f\u043e\u043d\u0430\u043c\u0438. \u041f\u043e\u043c\u0438\u043c\u043e \u044d\u0442\u043e\u0433\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e) \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 \u0438 \u0438\u043c\u0435\u0435\u0442 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u043e\u0434 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0435 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b (\u043e\u0442\u0433\u043e\u0432\u043e\u0440\u043a\u0430 \u0447\u0442\u043e \u0442\u044b \u043d\u0435 \u0437\u0430 \u043a\u043e\u043c\u043f\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043d\u0435 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439).  <\/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-194144","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/194144","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=194144"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/194144\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=194144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=194144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=194144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}