{"id":237610,"date":"2012-07-04T05:30:12","date_gmt":"2012-07-04T12:30:12","guid":{"rendered":"http:\/\/chinadigitaltimes.net\/chinese\/2012\/07\/%e7%bf%bb%e5%a2%99-openvpn-ipv6-%e5%ae%89%e8%a3%85%e6%96%b9%e6%b3%95\/"},"modified":"2012-07-04T05:30:12","modified_gmt":"2012-07-04T12:30:12","slug":"%e7%bf%bb%e5%a2%99-openvpn-ipv6-%e5%ae%89%e8%a3%85%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/chinadigitaltimes.net\/chinese\/237610.html","title":{"rendered":"\u7ffb\u5899 | OpenVPN IPv6 \u5b89\u88c5\u65b9\u6cd5"},"content":{"rendered":"<p>\u539f\u6587\uff1a<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.cyups.com\/?p=223\">http:\/\/www.cyups.com\/?p=223<\/a><\/p>\n<div><\/div>\n<div><span>\u672c\u65b9\u6cd5\u53ea\u505a\u53c2\u8003\uff0c\u6700\u65b0\u7684openvpn 2.30\u65b9\u6cd5\u6709\u6240\u6539\u53d8\u3002<\/span><\/p>\n<div>  <a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/logicmd.net\/wp-content\/uploads\/2010\/12\/openvpn_logo.png\"><img loading=\"lazy\" decoding=\"async\" title=\"openvpn_logo\" src=\"http:\/\/logicmd.net\/wp-content\/uploads\/2010\/12\/openvpn_logo.png\" alt=\"openvpn_logo\" width=\"231\" height=\"54\" \/><\/a><strong><a rel=\"nofollow noopener\" title=\"\u67e5\u770b OpenVPN \u4e2d\u7684\u5168\u90e8\u6587\u7ae0\" target=\"_blank\" href=\"http:\/\/logicmd.net\/tag\/openvpn\/\">OpenVPN<\/a><\/strong>\u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa<a rel=\"nofollow noopener\" title=\"\u67e5\u770b VPN \u4e2d\u7684\u5168\u90e8\u6587\u7ae0\" target=\"_blank\" href=\"http:\/\/logicmd.net\/tag\/vpn\/\">VPN<\/a>\u52a0\u5bc6\u901a\u9053\u7684\u8f6f\u4ef6\u5305\uff0c\u6700\u65e9\u7531James Yonan\u7f16\u5199\u3002\u5927\u91cf\u4f7f\u7528\u4e86OpenSSL\u52a0\u5bc6\u5e93\u4e2d\u7684SSLv3\/TLSv1\u534f\u8bae\u51fd\u6570\u5e93\u3002\u76ee\u524dOpenVPN\u80fd\u5728Solaris\u3001Linux\u3001OpenBSD\u3001FreeBSD\u3001NetBSD\u3001Mac OS X\u4e0eWindows 2000\uff0fXP\uff0fVista\u4e0a\u8fd0\u884c\uff0c\ufffd\u5305\u542b\u4e86\u8bb8\u591a\u5b89\u5168\u6027\u7684\u529f\u80fd\u3002\u00a0<\/p>\n<h2>  \u670d\u52a1\u7aef<\/h2>\n<h5><a rel=\"nofollow\" name=\"install\"><\/a>1.\u5b89\u88c5\u57fa\u7840\u7f16\u8bd1\u5de5\u5177\u548cOpenSSL<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>CentOS: yum\u00a0<\/code><code>install<\/code>\u00a0<code>gcc gcc-c++ kernel-devel openssl-devel<\/code><\/div>\n<div><code>Ubuntu: apt-get\u00a0<\/code><code>install<\/code>\u00a0<code>build-essential libssl-dev<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h5>2. \u4e0b\u8f7dLZO\u548cOpenVPN\u4ee5\u53ca<a rel=\"nofollow noopener\" title=\"\u67e5\u770b IPv6 \u4e2d\u7684\u5168\u90e8\u6587\u7ae0\" target=\"_blank\" href=\"http:\/\/logicmd.net\/tag\/ipv6\/\">IPv6<\/a>\u00a0Patch\u5e76\u7f16\u8bd1\u5b89\u88c5<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>  4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<div>7<\/div>\n<div>8<\/div>\n<div>9<\/div>\n<\/td>\n<td>\n<div>\n<div><code>wget http:<\/code><code>\/\/www<\/code><code>.<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/oberhumer.com\">oberhumer.com<\/a><\/code><code>\/opensource\/lzo\/download\/lzo-2<\/code><code>.04.<\/code><code>tar<\/code><code>.gz<\/code><\/div>\n<div><code>wget http:<\/code><code>\/\/openvpn<\/code><code>.net<\/code><code>\/release\/openvpn-2<\/code><code>.1.1.<\/code><code>tar<\/code><code>.gz<\/code><\/div>\n<div><code>wget https:<\/code><code>\/\/github<\/code><code>.com<\/code><code>\/downloads\/jjo\/openvpn-ipv6\/openvpn-2<\/code><code>.1.1-ipv6-0.4.11.patch.gz \u2013no-check-certificate<\/code><\/div>\n<div><code>gunzip -d openvpn-2.1.1-ipv6-0.4.11.patch.gz<\/code><\/div>\n<div><code>tar<\/code>\u00a0<code>zxvf *.<\/code><code>tar<\/code><code>.gz<\/code><\/div>\n<div><code>patch \u2013p0 < openvpn-2.1.1-ipv6-0.4.11.patch<\/code><\/div>\n<div><code>cd<\/code>\u00a0<code>lzo-2.04 && .<\/code><code>\/configure<\/code>\u00a0<code>&&\u00a0<\/code><code>make<\/code>\u00a0<code>&&\u00a0<\/code><code>make<\/code>\u00a0<code>install<\/code><\/div>\n<div>  <code>cd<\/code>\u00a0<code>..<\/code><code>\/openvpn-2<\/code><code>.1.1 && .<\/code><code>\/configure<\/code>\u00a0<code>&&\u00a0<\/code><code>make<\/code>\u00a0<code>&&\u00a0<\/code><code>make<\/code>\u00a0<code>install<\/code><\/div>\n<div>  <code>cd<\/code>\u00a0<code>.. &&\u00a0<\/code><code>cp<\/code>\u00a0<code>-r .<\/code><code>\/openvpn-2<\/code><code>.1.1<\/code><code>\/easy-rsa\/<\/code>\u00a0<code>-r\u00a0<\/code><code>\/etc\/openvpn<\/code>\u00a0\u00a0<code>#\u62f7\u8d1d\u914d\u7f6e\u6587\u4ef6\u5230\/etc\/openvpn<\/code><\/div>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<blockquote><p>Tips:\u5982\u679cpatch\u6587\u4ef6\u8fd9\u6837\u751f\u6210\u00a0<code>diff \u2013uN from-file to-file > to-file.patch<\/code>\u5219<code>patch \u2013p0 < to-file.patch<\/code>\u5982\u679cpatch\u6587\u4ef6\u8fd9\u6837\u751f\u6210\u00a0<code>diff \u2013uNr from-docu to-docu >to-docu.patch<\/code>\u5219<code>patch \u2013p1 < to-docu.patch<\/code><\/p><\/blockquote>\n<h5>3.\u751f\u6210\u8bc1\u4e66<\/h5>\n<p>\u521d\u59cb\u5316PKI<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>01<\/div>\n<div>02<\/div>\n<div>03<\/div>\n<div>04<\/div>\n<div>05<\/div>\n<div>06<\/div>\n<div>07<\/div>\n<div>08<\/div>\n<div>09<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<\/td>\n<td>\n<div>\n<div><code>cd<\/code>\u00a0<code>\/etc\/openvpn\/2<\/code><code>.0\/<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>D=`<\/code><code>pwd<\/code><code>`<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_CONFIG=$D<\/code><code>\/openssl<\/code><code>.cnf<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_DIR=$D<\/code><code>\/keys<\/code><\/div>\n<div>  <code>export<\/code>\u00a0<code>KEY_SIZE=1024<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_COUNTRY=US<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_PROVINCE=CA<\/code><\/div>\n<div>  <code>export<\/code>\u00a0<code>KEY_CITY=SanFrancisco<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_ORG=<\/code><code>\"logicmd\"<\/code>\u00a0<code>#\u5f15\u53f7\u8981\u7528\u82f1\u6587\u534a\u89d2\u7b26\u53f7<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_EMAIL=<\/code><code>\"i[at]<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/logicmd.net\">logicmd.net<\/a>\"<\/code>\u00a0<code>#\u5f15\u53f7\u8981\u7528\u82f1\u6587\u534a\u89d2\u7b26\u53f7<\/code><\/div>\n<div><code>. vars<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h5>4.\u521b\u5efa\u8bc1\u4e66\u9881\u53d1\u673a\u6784(CA)<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>.<\/code><code>\/clean-all<\/code>\u00a0<code>#\u8fd9\u884c\u547d\u4ee4\u662f\u6e05\u7a7aKeys\u6587\u4ef6\u5939\u4e0b\u7684\u6240\u6709\u6587\u4ef6<\/code><\/div>\n<div>  <code>.<\/code><code>\/build-ca<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u63a5\u4e0b\u6765\u7684\u4fe1\u606f\u4f60\u53ef\u4ee5\u81ea\u5df1\u586b\u5199<\/p>\n<h5>5. \u5efa\u7acbserver key<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div><code>.<\/code><code>\/build-key-server<\/code>\u00a0<code>server<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u63a5\u4e0b\u6765\u7684\u4fe1\u606f\u4f60\u53ef\u4ee5\u81ea\u5df1\u586b\u5199<\/p>\n<h5>  6. \u751f\u6210client key<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>  <code>.<\/code><code>\/build-key<\/code>\u00a0<code>client1\u00a0<\/code><code># client1 \u53ef\u4ee5\u81ea\u5b9a\u4e49 \u8fd9\u4e2a\u662f\u5ba2\u6237\u7684\u540d\u5b57<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u63a5\u4e0b\u6765\u7684\u4fe1\u606f\u4f60\u53ef\u4ee5\u81ea\u5df1\u586b\u5199<\/p>\n<h5>7.\u4ee5\u6b64\u7c7b\u63a8\u5efa\u7acb\u5176\u4ed6\u5ba2\u6237\u7aef key<\/h5>\n<p>\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5\u4e0d\u7528\uff0c\u4e5f\u53ef\u4ee5\u5728\u4f7f\u7528\u4e2d\u5728\u6dfb\u52a0\uff0c\u4e0d\u8fc7\u6bd4\u8f83\u9ebb\u70e6\uff0c\u6587\u7ae0\u540e\u4f1a\u6709\u6559\u7a0b<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>.<\/code><code>\/build-key<\/code>\u00a0<code>client2<\/code><\/div>\n<div><code>.<\/code><code>\/build-key<\/code>\u00a0<code>client3<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u6ce8\u610f\u5728\u8fdb\u5165 Common Name (eg, your name or your server\u2019s hostname) []: \u7684\u8f93\u5165\u65f6, \u6bcf\u4e2a\u8bc1\u4e66\u8f93\u5165\u7684\u540d\u5b57\u5fc5\u987b\u4e0d\u540c.<\/p>\n<h5>  8. \u751f\u6210Diffie Hellman\u53c2\u6570 \uff08\u8fd9\u4e2a\u5f88\u91cd\u8981\uff09<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div><code>.<\/code><code>\/build-dh<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>(\u5982\u679c\u8fd9\u91cc\u53d1\u751f\u9519\u8bef\uff0c\u8bf7\u5c1d\u8bd5\uff1aopenssl dhparam -out .\/keys\/dh1024.pem 1024)<\/p>\n<h5>9. \u5c06 keys \u4e0b\u7684client.key\/crt\u548cca.crt\u6253\u5305\u4e0b\u8f7d\u5230\u672c\u5730(\u53ef\u4ee5\u901a\u8fc7winscp,http,ftp\u7b49\u7b49\u2026\u2026)<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div>  <code>#\u6392\u9664\u6389ca.key\u548cserver.key<\/code><\/div>\n<div><code>find<\/code>\u00a0<code>.\/ -name\u00a0<\/code><code>\"*.crt\"<\/code>\u00a0<code>-or -name\u00a0<\/code><code>\"*.key\"<\/code>\u00a0<code>-not -name\u00a0<\/code><code>\"server.key\"<\/code>\u00a0<code>-not -name\u00a0<\/code><code>\"ca.key\"<\/code>\u00a0<code>|\u00a0\u00a0<\/code><code>xargs<\/code>\u00a0<code>tar<\/code>\u00a0<code>czvf yourkeys.<\/code><code>tar<\/code><code>.gz<\/code><\/div>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h5>10.\u521b\u5efa\u670d\u52a1\u7aef\u914d\u7f6e\u6587\u4ef6<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>mkdir<\/code>\u00a0<code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/conf<\/code><\/div>\n<div><code>cp<\/code>\u00a0<code>\/root\/openvpn-2<\/code><code>.1.1<\/code><code>\/sample-config-files\/server<\/code><code>.conf\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/conf\/server<\/code><code>.conf<\/code><\/div>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h5>11.\u7528\u4f60\u6700\u559c\u6b22\u7684\u7f16\u8f91\u5668\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6<\/h5>\n<p>\uff08\u4f46\u662f\u4e0d\u5efa\u8bae\u8bb0\u4e8b\u672c\/notepad.exe\uff09\uff0c\u8fd9\u91cc\u76f4\u63a5\u653e\u51faipv4\u548cipv6\u7684OpenVPN\u7684\u914d\u7f6e\u6587\u4ef6<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<caption>\n<td>server-udp.conf<\/td>\n<\/caption>\n<tbody>\n<tr>\n<td>\n<div>01<\/div>\n<div>02<\/div>\n<div>03<\/div>\n<div>04<\/div>\n<div>  05<\/div>\n<div>06<\/div>\n<div>07<\/div>\n<div>08<\/div>\n<div>09<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>  12<\/div>\n<div>13<\/div>\n<div>14<\/div>\n<div>15<\/div>\n<div>16<\/div>\n<div>17<\/div>\n<div>18<\/div>\n<div>  19<\/div>\n<div>20<\/div>\n<div>21<\/div>\n<div>22<\/div>\n<div>23<\/div>\n<div>24<\/div>\n<div>25<\/div>\n<div>  26<\/div>\n<\/td>\n<td>\n<div>\n<div><code>local<\/code>\u00a0<code>YOUR.SERVER.IPV4.ADDRESS<\/code><\/div>\n<div><code>port 8888<\/code><\/div>\n<div><code>proto udp<\/code><\/div>\n<div><code>dev tun<\/code><\/div>\n<div><code>ca\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/keys\/ca<\/code><code>.crt<\/code><\/div>\n<div><code>cert\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/keys\/server<\/code><code>.crt<\/code><\/div>\n<div><code>key\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/keys\/server<\/code><code>.key\u00a0\u00a0<\/code><code># This file should be kept secret<\/code><\/div>\n<div><code>dh\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/keys\/dh1024<\/code><code>.pem<\/code><\/div>\n<div><code>server 10.8.0.0 255.255.255.0<\/code><\/div>\n<div><code>ifconfig<\/code><code>-pool-persist\u00a0<\/code><code>\/var\/log\/openvpn\/ipp-udp<\/code><code>.txt<\/code><\/div>\n<div>  <code>push\u00a0<\/code><code>\"redirect-gateway def1 bypass-dhcp\"<\/code><\/div>\n<div><code>push\u00a0<\/code><code>\"dhcp-option DNS 10.8.0.1\"<\/code><\/div>\n<div><code>push\u00a0<\/code><code>\"dhcp-option DNS 8.8.8.8\"<\/code><\/div>\n<div><code>push\u00a0<\/code><code>\"dhcp-option DNS 8.8.4.4\"<\/code><\/div>\n<div><code>keepalive 10 120<\/code><\/div>\n<div><code>cipher AES-128-CBC\u00a0\u00a0\u00a0<\/code><code># AES<\/code><\/div>\n<div><code>comp-lzo<\/code><\/div>\n<div><code>;max-clients 100<\/code><\/div>\n<div><code>user nobody<\/code><\/div>\n<div><code>group nobody<\/code><\/div>\n<div>  <code>persist-key<\/code><\/div>\n<div><code>persist-tun<\/code><\/div>\n<div><code>status openvpn-status-udp.log<\/code><\/div>\n<div><code>log\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code>\/var\/log\/openvpn\/openvpn-udp<\/code><code>.log<\/code><\/div>\n<div><code>;log-append\u00a0 openvpn.log<\/code><\/div>\n<div><code>verb 3<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<caption>\n<td>server-udp6.conf<\/td>\n<\/caption>\n<tbody>\n<tr>\n<td>\n<div>01<\/div>\n<div>02<\/div>\n<div>03<\/div>\n<div>04<\/div>\n<div>  05<\/div>\n<div>06<\/div>\n<div>07<\/div>\n<div>08<\/div>\n<div>09<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>  12<\/div>\n<div>13<\/div>\n<div>14<\/div>\n<div>15<\/div>\n<div>16<\/div>\n<div>17<\/div>\n<div>18<\/div>\n<div>  19<\/div>\n<div>20<\/div>\n<div>21<\/div>\n<div>22<\/div>\n<div>23<\/div>\n<div>24<\/div>\n<div>25<\/div>\n<div>  26<\/div>\n<\/td>\n<td>\n<div>\n<div><code>local<\/code>\u00a0<code>YOUR.SERVER.IPV6.ADDRESS<\/code><\/div>\n<div><code>port 9999<\/code><\/div>\n<div><code>proto udp6<\/code><\/div>\n<div><code>dev tun<\/code><\/div>\n<div><code>ca\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/keys\/ca<\/code><code>.crt<\/code><\/div>\n<div><code>cert\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/keys\/server<\/code><code>.crt<\/code><\/div>\n<div><code>key\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/keys\/server<\/code><code>.key\u00a0\u00a0<\/code><code># This file should be kept secret<\/code><\/div>\n<div><code>dh\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/keys\/dh1024<\/code><code>.pem<\/code><\/div>\n<div><code>server 10.8.1.0 255.255.255.0<\/code><\/div>\n<div><code>ifconfig<\/code><code>-pool-persist\u00a0<\/code><code>\/var\/log\/ipp-udp6<\/code><code>.txt<\/code><\/div>\n<div>  <code>push\u00a0<\/code><code>\"redirect-gateway def1 bypass-dhcp\"<\/code><\/div>\n<div><code>push\u00a0<\/code><code>\"dhcp-option DNS 10.8.1.1\"<\/code><\/div>\n<div><code>push\u00a0<\/code><code>\"dhcp-option DNS 8.8.8.8\"<\/code><\/div>\n<div><code>push\u00a0<\/code><code>\"dhcp-option DNS 8.8.4.4\"<\/code><\/div>\n<div><code>keepalive 10 120<\/code><\/div>\n<div><code>cipher AES-128-CBC\u00a0\u00a0\u00a0<\/code><code># AES<\/code><\/div>\n<div><code>comp-lzo<\/code><\/div>\n<div><code>;max-clients 100<\/code><\/div>\n<div><code>user nobody<\/code><\/div>\n<div><code>group nobody<\/code><\/div>\n<div>  <code>persist-key<\/code><\/div>\n<div><code>persist-tun<\/code><\/div>\n<div><code>status\u00a0<\/code><code>\/var\/log\/openvpn-status-udp6<\/code><code>.log<\/code><\/div>\n<div><code>log\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/code><code>\/var\/log\/openvpn\/openvpn-udp6<\/code><code>.log<\/code><\/div>\n<div><code>;log-append\u00a0 openvpn.log<\/code><\/div>\n<div><code>verb 3<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h5>12.OpenVPN \u8bbf\u95ee\u5916\u7f51\u7684\u8bbe\u7f6e\uff08\u5982\u679c\u4e0d\u8bbe\u7f6e\uff0c\u4f60\u8fde\u4e0a\u540e\u53ea\u80fd\u5728\u4f60\u548cVPS\u4e4b\u95f4\u5efa\u7acbVPN\uff09<\/h5>\n<p>  \u5982\u679c\u4f60\u8ddf\u5076\u4e00\u6837\u5f88\u591a\u7c7b\u578bVPN\uff0c\u5f88\u591aNAT\u7684\u8bdd\u76f4\u63a5<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div>  <code>iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u5982\u679c\u4f60\u60f3\u7cbe\u7ec6\u63a7\u5236\u4e0d\u540cNAT\u5730\u5740\u8f6c\u53d1\u60c5\u51b5\u7684\u8bdd\uff0c\u53ef\u4ee5\u5206\u522b\u8bbe\u7f6e<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>4<\/div>\n<\/td>\n<td>\n<div>\n<div><code>#OpenVPN IPv4<\/code><\/div>\n<div><code>iptables -t nat -A POSTROUTING -s 10.8.0.0<\/code><code>\/24<\/code>\u00a0<code>-o eth0 -j MASQUERADE<\/code><\/div>\n<div><code>#OpenVPN IPv6<\/code><\/div>\n<div><code>iptables -t nat -A POSTROUTING -s 10.8.1.0<\/code><code>\/24<\/code>\u00a0<code>-o eth0 -j MASQUERADE<\/code><\/div>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\uff08\u5982\u679c\u4f60\u8fd0\u884c\u4e0a\u9762\u7684\u51fa\u73b0 iptables: Unknown error 4294967295 \u8fd9\u6837\u7684\u9519\u8bef\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4e0b\u9762\u7684\uff09\/sbin\/iptables -t nat -A POSTROUTING -s <a rel=\"nofollow\" target=\"_blank\" href=\"http:\/\/10.8.0.0\/255.255.255.0\">10.8.0.0\/255.255.255.0<\/a> -j SNAT \u2013to-source [\u4f60\u7684IP\u5730\u5740]\u5bf9\u4e8eOpenVZ\u7684VPS\u8bb2eth0\u6362\u6210venet0\u5373\u53ef\u7ee7\u7eed\u8f93\u5165<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>service iptables save<\/code><\/div>\n<div><code>service iptables restart<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4fee\u6539\u5305\u8f6c\u53d1\u8bbe\u7f6e<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<\/td>\n<td>\n<div>\n<div><code>sysctl -w net.ipv4.ip_forward=1<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h5>13. \u8bbe\u7f6e OpenVPN \u670d\u52a1\u5668 reboot\u540e\u81ea\u52a8\u542f\u52a8 openvpn<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>3<\/div>\n<div>  4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<\/td>\n<td>\n<div>\n<div><code>vim\u00a0<\/code><code>\/etc\/rc<\/code><code>.<\/code><code>local<\/code><\/div>\n<div>  <code>#\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<\/code><\/div>\n<div><code>\/usr\/local\/sbin\/openvpn<\/code>\u00a0<code>--config\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/conf\/server-udp<\/code><code>.conf &<\/code><\/div>\n<div>  <code>\/usr\/local\/sbin\/openvpn<\/code>\u00a0<code>--config\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/conf\/server-udp6<\/code><code>.conf &<\/code><\/div>\n<div><code>sysctl -w net.ipv4.ip_forward=1<\/code><\/div>\n<div><code>iptables --table nat --append POSTROUTING --jump MASQUERADE<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u867d\u8bf4\u662f\u524d\u9762save\u4e86iptables\u5230\u7cfb\u7edf\u6587\u4ef6\uff0c\u4f46\u662f\u6839\u636e\u6211\u7684\u7ecf\u9a8c\uff0cVPS down\u6389\u91cd\u542f\u540e\uff0c\u8fd8\u662f\u9700\u8981\u91cd\u65b0\u8bbe\u7f6eiptables\u3002<\/p>\n<h5>  14.\u6700\u540e\u542f\u52a8 OpenVPN<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<div>  3<\/div>\n<div>4<\/div>\n<div>5<\/div>\n<div>6<\/div>\n<\/td>\n<td>\n<div>\n<div><code>\/usr\/local\/sbin\/openvpn<\/code>\u00a0<code>--config\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/conf\/server-udp<\/code><code>.conf &<\/code><\/div>\n<div><code>\/usr\/local\/sbin\/openvpn<\/code>\u00a0<code>--config\u00a0<\/code><code>\/etc\/openvpn\/2<\/code><code>.0<\/code><code>\/conf\/server-udp6<\/code><code>.conf &<\/code><\/div>\n<div><code>#\u5982\u8981\u770b\u5230\u65e5\u5fd7\u53ef\u4ee5\u5982\u6b64\u89c2\u770b<\/code><\/div>\n<div><code>tail<\/code>\u00a0<code>-f\u00a0<\/code><code>\/var\/log\/openvpn\/openvpn-udp<\/code><code>.log<\/code><\/div>\n<div><code>#\u6216\u8005<\/code><\/div>\n<div><code>tail<\/code>\u00a0<code>-f\u00a0<\/code><code>\/var\/log\/openvpn\/openvpn-udp6<\/code><code>.log<\/code><\/div>\n<\/p><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h5>15.\u6dfb\u52a0\u4e00\u4e2a\u5c0f\u811a\u672c\uff0c\u7528\u4e8e\u7ee7\u7eed\u6dfb\u52a0\u5ba2\u6237\u7aef\u7684KEY<\/h5>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>  01<\/div>\n<div>02<\/div>\n<div>03<\/div>\n<div>04<\/div>\n<div>05<\/div>\n<div>06<\/div>\n<div>07<\/div>\n<div>  08<\/div>\n<div>09<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>12<\/div>\n<div>13<\/div>\n<\/td>\n<td>\n<div>\n<div>  <code>#!\/bin\/bash<\/code><\/div>\n<div><code>cd<\/code>\u00a0<code>\/etc\/openvpn\/2<\/code><code>.0\/<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>D=`<\/code><code>pwd<\/code><code>`<\/code><\/div>\n<div>  <code>export<\/code>\u00a0<code>KEY_CONFIG=$D<\/code><code>\/openssl<\/code><code>.cnf<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_DIR=$D<\/code><code>\/keys<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_SIZE=1024<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_ORG=<\/code><code>\"logicmd\"<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_EMAIL=<\/code><code>\"i[at]<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/logicmd.net\">logicmd.net<\/a>\"<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_COUNTRY=US<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_PROVINCE=CA<\/code><\/div>\n<div><code>export<\/code>\u00a0<code>KEY_CITY=SanFrancisco<\/code><\/div>\n<div><code>.<\/code><code>\/vars<\/code><\/div>\n<div><code>.<\/code><code>\/build-key<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<h2>\u5ba2\u6237\u7aef<\/h2>\n<h5>1.\u5206\u53d1\u914d\u7f6e\u6587\u4ef6\u7ed9\u7528\u6237<\/h5>\n<p>  \u5c06\u914d\u7f6e\u6587\u4ef6vpn.ovpn\uff0c\u8bc1\u4e66 ca.crt client.crt client.key\u5206\u53d1\u7ed9\u7528\u6237\u3002<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<caption>\n<td>vpn.ovpn<\/td>\n<\/caption>\n<tbody>\n<tr>\n<td>\n<div>01<\/div>\n<div>02<\/div>\n<div>03<\/div>\n<div>04<\/div>\n<div>05<\/div>\n<div>06<\/div>\n<div>07<\/div>\n<div>08<\/div>\n<div>09<\/div>\n<div>10<\/div>\n<div>11<\/div>\n<div>12<\/div>\n<div>13<\/div>\n<div>14<\/div>\n<div>15<\/div>\n<div>16<\/div>\n<div>17<\/div>\n<div>18<\/div>\n<div>19<\/div>\n<div>20<\/div>\n<div>21<\/div>\n<div>22<\/div>\n<\/td>\n<td>\n<div>\n<div><code>client<\/code><\/div>\n<div><code>dev tun<\/code><\/div>\n<div><code>proto udp<\/code><\/div>\n<div>  <code>remote YOUR.SERVERS.IPV4.DOMAINNAME 8888<\/code><\/div>\n<div><code>resolv-retry infinite<\/code><\/div>\n<div><code>nobind<\/code><\/div>\n<div><code>#\u4e2a\u4eba\u611f\u89c9\u5ba2\u6237\u7aef\u4e0d\u5fc5\uff0c\u964d\u6743\u540e\u4e0d\u5229\u4e8e\u8def\u7531\u8868\u7ba1\u7406<\/code><\/div>\n<div><code>;user nobody<\/code><\/div>\n<div><code>;group nobody<\/code><\/div>\n<div><code>persist-key<\/code><\/div>\n<div><code>persist-tun<\/code><\/div>\n<div>  <code>ca ca.crt<\/code><\/div>\n<div><code>cert logicmd.crt<\/code><\/div>\n<div><code>key logicmd.key<\/code><\/div>\n<div><code>ns-cert-<\/code><code>type<\/code>\u00a0<code>server<\/code><\/div>\n<div><code>cipher AES-128-CBC\u00a0\u00a0\u00a0<\/code><code># AES<\/code><\/div>\n<div><code>comp-lzo<\/code><\/div>\n<div><code>verb 2<\/code><\/div>\n<div><code>mute 20<\/code><\/div>\n<div><code>script-security 2<\/code><\/div>\n<div><code># Here comes the route table.<\/code><\/div>\n<div><code>max-routes 1500<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/div>\n<\/div>\n<p>\u63a5\u4e0b\u6765\u6309\u7167\u00a0<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/logicmd.net\/2010\/10\/add-route-table-and-auto-replace-dns-while-connecting-to-vpn\/\">\u7ed9VPN\u6dfb\u52a0\u8def\u7531\u8868<\/a>\u00a0\u6dfb\u52a0\u8def\u7531\u8868\u5373\u53ef\u3002<\/p>\n<h5>2.\u5ba2\u6237\u7aef\u7684\u5b89\u88c5<\/h5>\n<p>  \u5177\u4f53\u8be6\u89c1<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/logicmd.net\/2010\/08\/config-handbook-for-ssh-and-vpn\/\">VPN\u914d\u7f6e\u624b\u518c<\/a><\/p>\n<ul>\n<li>Windows\u7528\u6237\u9700\u8981\u4e0b\u8f7d<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/openvpn.net\/release\/openvpn-2.1.1-install.exe\">\u5b98\u7f51\u5b89\u88c5\u5305<\/a>\u00a0\u5bf9\u4e8e\u9700\u8981\u4f7f\u7528VPN Over IPv6\u7684\u7ae5\u978b\u4e0b\u8f7d<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/github.com\/downloads\/jjo\/openvpn-ipv6\/openvpn.exe-2.1.1-ipv6-0.4.11.zip\">IPv6 Patched\u7684openvpn.exe<\/a>\u00a0\u66ff\u6362\u6389X:Program FilesOpenVPNbin\u76f8\u5e94\u6587\u4ef6\u3002<\/li>\n<li><a rel=\"nofollow noopener\" title=\"\u67e5\u770b Linux \u4e2d\u7684\u5168\u90e8\u6587\u7ae0\" target=\"_blank\" href=\"http:\/\/logicmd.net\/tag\/linux\/\">Linux<\/a>\u7528\u6237\u5219\u5e94\u8be5\u6309\u7167<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/www.cyups.com\/#install\">\u672c\u6587\u5f00\u59cb\u670d\u52a1\u5668\u7aef\u7684\u5b89\u88c5\u65b9\u6cd5<\/a>\u540c\u6837\u5728\u5ba2\u6237\u7aef\u5b89\u88c5OpenVPN\u3002Linux\u4e2dOpenVPN\u7684\u914d\u7f6e\u6587\u4ef6\u8bc1\u4e66\u4f4d\u7f6e\u4f3c\u4e4e\u4e0d\u652f\u6301\u76f8\u5bf9\u8def\u5f84\u3002<\/li>\n<\/ul>\n<h2>FAQ<\/h2>\n<p>1.Windows\u8def\u7531\u8868\u901f\u5ea6\u8fc7\u6162\u5220\u6389\u4ee5\u4e0b<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>  2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>route-method exe<\/code><\/div>\n<div><code>route-delay 2<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>2.\u6ee1\u5c4f\u5e55\u7684\u8def\u7531\u4fe1\u606f\u770b\u7740\u70e6.opvn\u6539\u6210<\/p>\n<div>\n<div>\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td>\n<div>1<\/div>\n<div>2<\/div>\n<\/td>\n<td>\n<div>\n<div><code>verb 2<\/code><\/div>\n<div><code>mute 20<\/code><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div>\u8bf7\u70b9\u51fb<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/mycdt4.info\/chinese\/\">https:\/\/mycdt4.info\/chinese\/<\/a>\uff0c\u7a7f\u5899\u8bbf\u95ee\u300a\u4e2d\u56fd\u6570\u5b57\u65f6\u4ee3\u300b\u3002\u300a\u4e2d\u56fd\u6570\u5b57\u65f6\u4ee3\u300b\u5f00\u901aIPv6\uff0c\u6b22\u8fce\u7a7f\u5899\u9605\u8bfb\u3002\u7ffb\u8d8a\u9632\u706b\u957f\u57ce\uff0c\u4f60\u53ef\u4ee5\u5230\u8fbe\u4e16\u754c\u4e0a\u7684\u6bcf\u4e00\u4e2a\u89d2\u843d\u3002\uff08Across the Great Firewall, you can reach every corner in the world.\uff09\u7ffb\u5899\u5229\u5668\u8d5b\u98ce3\u4e0b\u8f7d\u5730\u5740\uff1a<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/dld.bz\/caonima326\n\n\"> http:\/\/dld.bz\/caonima326<\/p>\n<p><\/a>\uff0c<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/dld.bz\/caonima745\">http:\/\/dld.bz\/caonima745<\/a><img loading=\"lazy\" decoding=\"async\" width=\"1\" height=\"1\" src=\"https:\/\/blogger.googleusercontent.com\/tracker\/5500297126185736776-735860425632439276?l=www.chinagfw.org\" alt=\"\" \/><\/div>\n<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/chinadigitaltimes.net\/chinese\/files\/2012\/07\/110c34cfpenvpn_logo.png-150x67.png\" \/><\/p>\n<p><small>\u672c\u6587\u7531\u81ea\u52a8\u805a\u5408\u7a0b\u5e8f\u53d6\u81ea\u7f51\u7edc\uff0c\u5185\u5bb9\u548c\u89c2\u70b9\u4e0d\u4ee3\u8868\u6570\u5b57\u65f6\u4ee3\u7acb\u573a<\/small><\/p>\n<p><iframe loading=\"lazy\" src=\"https:\/\/docs.google.com\/spreadsheet\/embeddedform?hl=zh-CN&#038;formkey=dGRpN3FrVThuMFFsZHBZcmNGLW94dEE6MQ\" width=\"510\" height=\"328\" frameborder=\"0\" marginheight=\"0\" marginwidth=\"0\">Loading...<\/iframe><\/p>\n<form method=\"POST\" action=\"http:\/\/chinadigitaltimes.us4.list-manage.com\/subscribe\/post?u=17daa75df533f6c6ff72e51ab&#038;id=b4fd4ae247\">\n\u5b9a\u671f\u83b7\u5f97\u7ffb\u5899\u4fe1\u606f\uff1f<a href=\"http:\/\/eepurl.com\/mstlf\" target=\"_blank\" rel=\"noopener\">\u8bf7\u7535\u90ae\u8ba2\u9605\u6570\u5b57\u65f6\u4ee3<\/a><br \/>\n <br \/><input type=\"email\" value=\"\" name=\"EMAIL\" id=\"mce-EMAIL_in_post\" size=\"25\" style=\"display:block;\" placeholder=\"\u8bf7\u8f93\u5165\u60a8\u7684\u90ae\u4ef6\u5730\u5740\" required><br \/>\n\t<input type=\"submit\" value=\"\u70b9\u51fb\u8ba2\u9605\" name=\"subscribe\" style=\"height: 20px;\" id=\"in_post_subscribe\"><br \/>\n<\/form>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\uff1a http:\/\/www.cyups.com\/?p=223 \u672c\u65b9\u6cd5\u53ea\u505a\u53c2\u8003\uff0c\u6700\u65b0\u7684openvpn 2.30\u65b9\u6cd5\u6709\u6240\u6539\u53d8\u3002 OpenVPN \u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa VPN \u52a0\u5bc6\u901a\u9053\u7684\u8f6f\u4ef6\u5305\uff0c\u6700\u65e9\u7531James Yonan\u7f16\u5199\u3002\u5927\u91cf\u4f7f\u7528\u4e86OpenSSL\u52a0\u5bc6\u5e93\u4e2d\u7684SSLv3\/TLSv1\u534f\u8bae\u51fd\u6570\u5e93\u3002\u76ee\u524dOpenVPN\u80fd\u5728Solaris\u3001Linux\u3001OpenBSD\u3001FreeBSD\u3001NetBSD\u3001Mac OS X\u4e0eWindows 2000\uff0fXP\uff0fVista\u4e0a\u8fd0\u884c\uff0c\ufffd\u5305\u542b\u4e86\u8bb8\u591a\u5b89\u5168\u6027\u7684\u529f\u80fd\u3002\u00a0 \u670d\u52a1\u7aef 1.\u5b89\u88c5\u57fa\u7840\u7f16\u8bd1\u5de5\u5177\u548cOpenSSL 1 2 CentOS: yum\u00a0 install \u00a0 gcc gcc-c++ kernel-devel openssl-devel Ubuntu: apt-get\u00a0 install \u00a0 build-essential libssl-dev 2. \u4e0b\u8f7dLZO\u548cOpenVPN\u4ee5\u53ca IPv6 \u00a0Patch\u5e76\u7f16\u8bd1\u5b89\u88c5 1 2 3 4 5 6 7 8 9 wget http: \/\/www . oberhumer.com \/opensource\/lzo\/download\/lzo-2 .04. tar .gz wget http: \/\/openvpn .net \/release\/openvpn-2 .1.1. tar .gz wget https: \/\/github .com \/downloads\/jjo\/openvpn-ipv6\/openvpn-2 .1.1-ipv6-0.4.11.patch.gz \u2013no-check-certificate gunzip -d openvpn-2.1.1-ipv6-0.4.11.patch.gz tar \u00a0 zxvf *<\/p>\n","protected":false},"author":1005,"featured_media":237611,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","ampforwp-amp-on-off":"","home_featured":"","footnotes":"","_links_to":"","_links_to_target":""},"categories":[15300],"tags":[8510,8795,8817],"class_list":["post-237610","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-15300","tag-vpn","tag-8795","tag-8817","et-has-post-format-content","et_post_format-et-post-format-standard"],"_links":{"self":[{"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/posts\/237610","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/users\/1005"}],"replies":[{"embeddable":true,"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/comments?post=237610"}],"version-history":[{"count":0,"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/posts\/237610\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/media\/237611"}],"wp:attachment":[{"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/media?parent=237610"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/categories?post=237610"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/tags?post=237610"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}