{"id":188474,"date":"2013-07-31T13:31:03","date_gmt":"2013-07-31T09:31:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=188474"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=188474","title":{"rendered":"<span class=\"post_title\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 OpenVPN \u0448\u043b\u044e\u0437\u0430 \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u043d\u0430 Debian, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0430 OpenVZ<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u0418\u0442\u0430\u043a \u0433\u043e\u0441\u043f\u043e\u0434\u0430, \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u0435 \u0430\u0432\u0433\u0443\u0441\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u0434\u0443\u043c\u0430\u043b\u0441\u044f \u044f \u043d\u0430\u0434 \u0442\u0435\u043c \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0438\u043c\u0435\u0442\u044c \u0441\u0435\u0431\u0435 ip \u0441\u0442\u0440\u0430\u043d\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043f\u0440\u043e\u0449\u0435 \u0441 \u0437\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e\u043c \u0432 \u0441\u0444\u0435\u0440\u0435 p2p, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u043e\u0432. \u041f\u043e\u0441\u043b\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043e\u043b\u0433\u0438\u0445 \u043f\u043e\u0438\u0441\u043a\u043e\u0432 \u043d\u0430\u0448\u0435\u043b \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u0435\u0449\u0430\u043b \u0434\u0432\u0430 \u044f\u0434\u0440\u0430 \u043e\u0442 E3-1230, \u043f\u0430\u0440\u0443 \u0433\u0438\u0433\u043e\u0432 \u043f\u0430\u043c\u044f\u0442\u0438, 460 \u0433\u0438\u0433\u043e\u0432 \u0432\u0438\u043d\u0442\u0430 \u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043d\u0435\u043b\u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439(\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0441 \u0441\u0430\u043f\u043f\u043e\u0440\u0442\u043e\u043c \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u2014 \u0443\u0432\u0435\u0440\u044f\u044e\u0442 \u0447\u0442\u043e \u043a\u0430\u043d\u0430\u043b \u043d\u0435 \u0440\u0435\u0436\u0443\u0442 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0442\u043d\u0438 \u0442\u0435\u0440\u0430\u0431\u0430\u0439\u0442) \u0433\u0438\u0433\u0430\u0431\u0438\u0442\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0437\u0430 \u043a\u0430\u043a\u0438\u0445\u0442\u043e 40 \u0441 \u043a\u043e\u043f\u0435\u0439\u043a\u0430\u043c\u0438 \u0431\u0430\u043a\u0441\u043e\u0432. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043d\u043e \u2014 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f OpenVZ \u2014 \u043e\u0431\u044b\u0447\u043d\u043e \u044f \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b OpenVPN \u043d\u0430 XEN \u0438\u043b\u0438 KVM, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a \u0433\u043b\u0430\u0434\u043a\u043e \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0414\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u041e\u0421 \u2014 Debian 6<br \/>  \u0418\u0442\u0430\u043a \u043d\u0430\u0447\u043d\u0435\u043c:<\/p>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c OpenVPN \u0438 dnsmasq<\/p>\n<pre><code class=\"bash\">aptitude install openvpn udev dnsmasq <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \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\">cp -R \/usr\/share\/doc\/openvpn\/examples\/easy-rsa\/ \/etc\/openvpn <\/code><\/pre>\n<p>  \u041f\u043e\u0442\u043e\u043c \u043d\u0430\u043c \u043e\u0431\u044b\u0447\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u043f\u043e\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0444\u0430\u0439\u043b <b>\/etc\/openvpn\/easy-rsa\/2.0\/vars<\/b>, \u043d\u043e \u0435\u0441\u043b\u0438 \u0448\u043b\u044e\u0437 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u00ab\u0434\u043b\u044f \u0441\u0435\u0431\u044f\u00bb, \u0442\u043e \u044d\u0442\u043e\u0442 \u043f\u0443\u043d\u043a\u0442 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u043d\u043e \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u0435\u043d. \u0415\u0441\u043b\u0438 \u0436\u0435 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043a\u0440\u0430\u0441\u043e\u0442\u044b \u0442\u043e \u0432 \u043a\u043e\u043d\u0446\u0435 \u0432\u044b\u0448\u0435\u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043f\u0440\u0430\u0432\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<pre><code class=\"bash\">export KEY_COUNTRY=&quot;XX&quot; export KEY_PROVINCE=&quot;XX&quot; export KEY_CITY=&quot;City&quot; export KEY_ORG=&quot;MyCompany&quot; export KEY_EMAIL=&quot;habr@habr.ru&quot; <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u0430\u0432\u043a\u0438 <b>vars<\/b> \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u0439 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442<\/p>\n<pre><code class=\"bash\">cd \/etc\/openvpn\/easy-rsa\/2.0\/ . \/etc\/openvpn\/easy-rsa\/2.0\/vars . \/etc\/openvpn\/easy-rsa\/2.0\/clean-all . \/etc\/openvpn\/easy-rsa\/2.0\/build-ca <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u0430\\\u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432(\u0432\u043c\u0435\u0441\u0442\u043e cli1,cli2 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u0434\u0443\u043c\u044b\u0432\u0430\u0442\u044c \u0443\u0434\u043e\u0431\u043d\u044b\u0435 \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f)<\/p>\n<pre><code class=\"bash\">. \/etc\/openvpn\/easy-rsa\/2.0\/build-key-server server . \/etc\/openvpn\/easy-rsa\/2.0\/build-key-server cli1 . \/etc\/openvpn\/easy-rsa\/2.0\/build-key-server cli2 <\/code><\/pre>\n<p>  \u041f\u043e\u0442\u043e\u043c \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0414\u0438\u0444\u0444\u0438-\u0425\u0435\u043b\u043b\u043c\u0430\u043d\u0430  <\/p>\n<pre><code class=\"bash\">. \/etc\/openvpn\/easy-rsa\/2.0\/build-dh <\/code><\/pre>\n<p>  \u0420\u0430\u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u043a\u043b\u044e\u0447\u0438, \u043d\u0430 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0434\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b <b>ca.crt cli1.crt cli1.key<\/b>, \u0430 \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <b>\/etc\/openvpn<\/b> \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u044c \u0444\u0430\u0439\u043b\u044b <b>ca.crt ca.key dh1024.pem server.crt server.key<\/b><\/p>\n<pre><code class=\"bash\">cd \/etc\/openvpn\/easy-rsa\/2.0\/keys cp ca.crt ca.key dh1024.pem server.crt server.key \/etc\/openvpn <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <b>\/etc\/openvpn <\/b>\u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u043d\u0444\u0438\u0433\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u041f\u041e.  <\/p>\n<pre><code class=\"bash\">cd \/usr\/share\/doc\/openvpn\/examples\/sample-config-files gunzip -d server.conf.gz cp server.conf \/etc\/openvpn\/ <\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0448 \u0432\u043f\u043d \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0430\u0437\u0434\u0430\u0432\u0430\u043b \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0441\u0432\u043e\u0438\u043c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u0432<b> \/etc\/openvpn\/server.conf<\/b> \u0434\u043e\u043f\u0438\u0448\u0435\u043c  <\/p>\n<pre><code class=\"bash\">push &quot;redirect-gateway def1&quot; push &quot;dhcp-option DNS 10.8.0.1&quot; <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c ip-forwarding<\/p>\n<p>  \u0432 \u0444\u0430\u0439\u043b\u0435 <b>\/etc\/sysctl.conf<\/b> \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 <\/p>\n<pre><code class=\"bash\">net.ipv4.ip_forward=1 <\/code><\/pre>\n<p>  \u0430 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c  <\/p>\n<pre><code class=\"bash\">echo 1 &gt; \/proc\/sys\/net\/ipv4\/ip_forward <\/code><\/pre>\n<p>  \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c iptables.<br \/>  \u0415\u0441\u043b\u0438 \u0443 \u0412\u0430\u0441 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440, \u0438\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u0430 Xen \u0438\u043b\u0438 KVM, \u0442\u043e \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043f\u0438\u0448\u0435\u043c  <\/p>\n<pre><code class=\"bash\">iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -s 10.8.0.0\/24 -j ACCEPT iptables -A FORWARD -j REJECT iptables -t nat -A POSTROUTING -s 10.8.0.0\/24 -o eth0 -j MASQUERADE <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f OpenVZ, \u0442\u043e \u043e\u0431\u044b\u0447\u043d\u044b\u0439 NAT \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442, \u0438 \u043d\u0430\u0434\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c SNAT, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u043f\u0438\u0448\u0435\u043c  <\/p>\n<pre><code class=\"bash\">iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to &lt;b&gt;a.b.c.d&lt;\/b&gt; iptables -A FORWARD -i venet0 -o tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -i tun0 -o venet0 -j ACCEPT <\/code><\/pre>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e <b>a.b.c.d<\/b> \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432\u043d\u0435\u0448\u043d\u0438\u0439 ip \u0432\u0430\u0448\u0435\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430<\/p>\n<p>  \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u0430 iptables \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b\u0438\u0441\u044c \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u041e\u0421, \u043f\u0440\u043e\u043f\u0438\u0448\u0435\u043c \u0438\u0445 \u0432 <b>\/etc\/rc.local<\/b>, \u0442\u0443\u0434\u0430 \u0436\u0435, \u043f\u043e\u0441\u043b\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0430\u0432\u0438\u043b iptables \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 dnsmasq. \u041f\u0440\u0438\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \/etc\/rc.local \u043f\u043e\u0441\u043b\u0435 \u0432\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 \u2014 <br \/>  \u0434\u043b\u044f dedicated\\Xen\\KVM:<\/p>\n<pre><code class=\"bash\">#!\/bin\/sh -e # # [...] #  iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -s 10.8.0.0\/24 -j ACCEPT iptables -A FORWARD -j REJECT iptables -t nat -A POSTROUTING -s 10.8.0.0\/24 -o eth0 -j MASQUERADE  \/etc\/init.d\/dnsmasq restart  exit 0 <\/code><\/pre>\n<p>  \u0434\u043b\u044f OpenVZ:<\/p>\n<pre><code class=\"bash\">#!\/bin\/sh -e # # [...] #  iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to &lt;b&gt;a.b.c.d&lt;\/b&gt; iptables -A FORWARD -i venet0 -o tun0 -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -i tun0 -o venet0 -j ACCEPT  \/etc\/init.d\/dnsmasq restart  exit 0 <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c dnsmasq, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u043a\u0440\u043e\u0435\u043c \u0444\u0430\u0439\u043b <b>\/etc\/dnsmasq.conf<\/b> \u0438 \u0440\u0430\u0441\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u0443\u0435\u043c\\\u043f\u043e\u043f\u0440\u0430\u0432\u0438\u043c \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u043a\u0438  <\/p>\n<pre><code class=\"bash\">listen-address=127.0.0.1,10.8.0.1 bind-interfaces <\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430, \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0438\u0441\u044b \u0438 \u043d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432.  <\/p>\n<pre><code class=\"bash\">service openvpn restart service dnsmasq restart <\/code><\/pre>\n<p>  \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0432\u0441\u0435 \u043a\u043b\u0438\u0435\u043d\u0442\u044b \u0431\u044b\u043b\u0438 \u043d\u0430 Windows 7, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043d\u0430 \u0432\u0438\u043d\u0434\u0435.<\/p>\n<p>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u0441\u043e\u0444\u0442 \u2014 <a href=\"http:\/\/swupdate.openvpn.org\/community\/releases\/openvpn-2.2.2-install.exe\">OpenVPN<\/a>, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0441 Windows 7 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u00ab\u041f\u0443\u0441\u043a\\OpenVPN\\<b>OpenVPN Gui<\/b>\u00bb<br \/>  \u0414\u0430\u043b\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u0444\u0430\u0439\u043b <b>%\u0438\u043c\u044f%.ovpn<\/b> \u0441\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u044b\u043c<\/p>\n<pre><code class=\"bash\">push &quot;redirect-gateway def1&quot; client  dev tun  proto udp  remote &lt;b&gt;a.b.c.d&lt;\/b&gt; 1194  resolv-retry infinite  nobind  persist-key  persist-tun  ca ca.crt  cert &lt;b&gt;cli1.crt &lt;\/b&gt; key &lt;b&gt;cli1.key&lt;\/b&gt;  comp-lzo  verb 3  <\/code><\/pre>\n<p>  \u0412\u043c\u0435\u0441\u0442\u043e a.b.c.d \u2014 \u0430\u0434\u0440\u0435\u0441 \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>  \u0421\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b <b>%\u0438\u043c\u044f%.ovpn <\/b>\u0438 \u0440\u0430\u043d\u0435\u0435 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0435 <b>ca.crt cli1.crt cli1.key<\/b> \u0432<b> C:\/Programm files(x86)\/OpenVPN\/config<\/b><br \/>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435, \u0432 \u0442\u0440\u0435\u0435 \u043f\u0440\u0430\u0432\u043e\u0439 \u043c\u044b\u0448\u044c\u044e \u043f\u043e \u0437\u043d\u0430\u0447\u043a\u0443 OpenVPN -&gt; Connect \u0438 \u043d\u0430\u0441 \u043f\u0435\u0440\u0435\u043d\u043e\u0441\u0438\u0442 \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0443.    \t<\/p>\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\/188474\/\"> http:\/\/habrahabr.ru\/post\/188474\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u0418\u0442\u0430\u043a \u0433\u043e\u0441\u043f\u043e\u0434\u0430, \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u043e\u0435 \u0430\u0432\u0433\u0443\u0441\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u0434\u0443\u043c\u0430\u043b\u0441\u044f \u044f \u043d\u0430\u0434 \u0442\u0435\u043c \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0438\u043c\u0435\u0442\u044c \u0441\u0435\u0431\u0435 ip \u0441\u0442\u0440\u0430\u043d\u044b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043f\u0440\u043e\u0449\u0435 \u0441 \u0437\u0430\u043a\u043e\u043d\u043e\u0434\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e\u043c \u0432 \u0441\u0444\u0435\u0440\u0435 p2p, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u041d\u0438\u0434\u0435\u0440\u043b\u0430\u043d\u0434\u043e\u0432. \u041f\u043e\u0441\u043b\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0434\u043e\u043b\u0433\u0438\u0445 \u043f\u043e\u0438\u0441\u043a\u043e\u0432 \u043d\u0430\u0448\u0435\u043b \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0431\u0435\u0449\u0430\u043b \u0434\u0432\u0430 \u044f\u0434\u0440\u0430 \u043e\u0442 E3-1230, \u043f\u0430\u0440\u0443 \u0433\u0438\u0433\u043e\u0432 \u043f\u0430\u043c\u044f\u0442\u0438, 460 \u0433\u0438\u0433\u043e\u0432 \u0432\u0438\u043d\u0442\u0430 \u0438 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u044b\u0439 \u043d\u0435\u043b\u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439(\u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0441\u0432\u044f\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0441 \u0441\u0430\u043f\u043f\u043e\u0440\u0442\u043e\u043c \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u2014 \u0443\u0432\u0435\u0440\u044f\u044e\u0442 \u0447\u0442\u043e \u043a\u0430\u043d\u0430\u043b \u043d\u0435 \u0440\u0435\u0436\u0443\u0442 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0441\u043e\u0442\u043d\u0438 \u0442\u0435\u0440\u0430\u0431\u0430\u0439\u0442) \u0433\u0438\u0433\u0430\u0431\u0438\u0442\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0437\u0430 \u043a\u0430\u043a\u0438\u0445\u0442\u043e 40 \u0441 \u043a\u043e\u043f\u0435\u0439\u043a\u0430\u043c\u0438 \u0431\u0430\u043a\u0441\u043e\u0432. \u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043d\u043e \u2014 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f OpenVZ \u2014 \u043e\u0431\u044b\u0447\u043d\u043e \u044f \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b OpenVPN \u043d\u0430 XEN \u0438\u043b\u0438 KVM, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435 \u043f\u0440\u043e\u0448\u043b\u043e \u043d\u0435 \u0442\u0430\u043a \u0433\u043b\u0430\u0434\u043a\u043e \u043a\u0430\u043a \u043e\u0431\u044b\u0447\u043d\u043e \u0438 \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u043c\u0438 \u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438.  <\/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-188474","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/188474","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=188474"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/188474\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}