{"id":277866,"date":"2013-02-04T17:30:31","date_gmt":"2013-02-05T01:30:31","guid":{"rendered":"http:\/\/chinadigitaltimes.net\/chinese\/2013\/02\/%e7%bf%bb%e5%a2%99-%e8%a7%a3%e5%86%b3%e6%9c%80%e8%bf%91gfw%e5%8d%87%e7%ba%a7%e5%af%bc%e8%87%b4vpn%e5%a4%b1%e6%95%88%e9%97%ae%e9%a2%98\/"},"modified":"2017-12-05T19:49:37","modified_gmt":"2017-12-06T03:49:37","slug":"%e7%bf%bb%e5%a2%99-%e8%a7%a3%e5%86%b3%e6%9c%80%e8%bf%91gfw%e5%8d%87%e7%ba%a7%e5%af%bc%e8%87%b4vpn%e5%a4%b1%e6%95%88%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/chinadigitaltimes.net\/chinese\/277866.html","title":{"rendered":"\u7ffb\u5899 | \u89e3\u51b3\u6700\u8fd1GFW\u5347\u7ea7\u5bfc\u81f4VPN\u5931\u6548\u95ee\u9898"},"content":{"rendered":"<p><span><\/p>\n<blockquote>\n<p>\u6700\u8fd1\uff0c\u516c\u53f8\u7684VPN\u603b\u662f\u6389\u7ebf\uff0c\u540e\u6765\u624d\u770b\u5230\uff0c\u65b9\u6821\u957f\u7684\u7814\u7a76\u6587\u7ae0\u3002<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/yes2.me\/wp-content\/uploads\/2012\/12\/%E7%BD%91%E7%BB%9C%E6%B5%81%E9%87%8F%E5%88%86%E7%B1%BB%E7%A0%94%E7%A9%B6%E8%BF%9B%E5%B1%95%E4%B8%8E%E5%B1%95%E6%9C%9B.pdf\">\u300c\u7f51\u7edc\u6d41\u91cf\u5206\u7c7b\u7814\u7a76\u8fdb\u5c55\u4e0e\u5c55\u671b \u300d<\/a>\u3002\u901a\u8fc7\u673a\u5668\u5b66\u4e60\u7684\u65b9\u6cd5\u5c01\u9501\u7ffb\u5899\u4e86\u3002SSH\u96a7\u9053\u3001IPSEC\u96a7\u9053\u3001SSL, \u4ee5\u53caP2P\u5747\u88ab\u7834\u89e3\u3002\u65e0\u8bba\u5982\u4f55\u6362\u7aef\u53e3\u6216\u8005ip\uff0c\u53ea\u8981\u6d41\u91cf\u7a0d\u5927\u4e00\u70b9\uff0c\u5c31\u7acb\u523b\u6389\u7ebf\u3002<\/p>\n<\/blockquote>\n<p>\u7814\u7a76\u4e86\u51e0\u5929\u540e\uff0c\u7ec8\u4e8e\u627e\u5230\u5bf9\u7b56\uff1aVPN\u901a\u8fc7SSH\u96a7\u9053\u6620\u5c04\u7a7f\u8d8aGFW\u3002\u8be5\u65b9\u6cd5\u53ef\u4ee5\u7ed5\u8fc7\u4f01\u4e1a\u7ea7\u7684\u9632\u706b\u5899\uff0c\u540c\u6837\uff0c\u7ed5\u8fc7GFW\u4f3c\u4e4e\u4e5f\u975e\u5e38\u597d\u4f7f\u3002\u4e0b\u9762\u7b80\u5355\u8bf4\u8bf4\u914d\u7f6e\u7684\u8fc7\u7a0b\u3002<\/p>\n<p>\u57fa\u672c\u539f\u7406\uff1a \u5ba2\u6237\u7aef \u2013> \u672c\u5730\u6620\u5c04\u7aef\u53e3 <-- SSH\u96a7\u9053 --> \u8fdc\u7a0bVPN\u670d\u52a1\u5668<\/p>\n<h3>\u524d\u671f\u51c6\u5907<\/h3>\n<p>1\u3001\u53ef\u4ee5\u7ffb\u5899\u7684SSH\u8d26\u6237(\u6700\u597d\u548cVPN\u5728\u4e00\u53f0\u4e3b\u673a\u4e0a)<\/p>\n<p>2\u3001\u53ef\u4ee5\u7ffb\u5899\u7684VPN\u8d26\u6237(openVPN\u3001pptp \u7b49)<\/p>\n<h3>\u914d\u7f6e\u65b9\u6cd5<\/h3>\n<p>1\u3001\u672c\u5730\u8bbe\u7f6e\u7aef\u53e3\u8f6c\u53d1\u7684\u811a\u672c\u5e76\u8fd0\u884c<\/p>\n<pre><code>#! \/usr\/bin\/env python  #coding=utf-8    import pexpect  import re  local_port = \"\u672c\u5730\u8f6c\u53d1\u7aef\u53e3\"   #pptp\u9ed8\u8ba4\u662f1723 openVPN\u9ed8\u8ba4\u662f1194  username = \"ssh\u7528\u6237\u540d\"       password = \"ssh\u5bc6\u7801\"                ssh_host = \"ssh\u7684\u5730\u5740\"  vpn_host = \"vpn\u7684\u5730\u5740\"     #\u5982\u679cssh\u548cvpn\u662f\u4e00\u53f0\u673a\u5b50\uff0c\u8fd9\u91cc\u53ef\u4ee5\u662f127.0.0.1  vpn_port = \"vpn\u7aef\u53e3\"  cmd = \"ssh  -C -f -N -g -o CompressionLevel=9 -o Cipher=none \"  cmd += username + \"@\" + ssh_host + \" -L \"  cmd += local_port +\":\"+ vpn_host + \":\" + vpn_port  pattern = re.compile(\"^.*assword:s*\")  child = pexpect.spawn(cmd)  child.expect(pattern)  child.sendline(password)  child.expect(pexpect.EOF)  <\/code><\/pre>\n<p>2\u3001\u8bbe\u7f6eVPN\u7684\u5730\u5740\u548c\u7aef\u53e3\u5230\u672c\u5730\u6620\u5c04\u5730\u5740<\/p>\n<p>\u6309\u7167\u4e0a\u9762\u811a\u672c\uff0c\u5982\u679c\u662fopenVPN\uff0c\u90a3\u4e48\u8fde\u63a5\u7684\u5730\u5740\u5e94\u8be5\u662f127.0.0.1:1194\u3002<\/p>\n<p>3\u3001\u7279\u522b\u6ce8\u610f<\/p>\n<p>\u7531\u4e8eSSH\u7aef\u53e3\u8f6c\u53d1\u4e0d\u652f\u6301UDP\uff0c\u6240\u4ee5openVPN\u8981\u628a\u8fde\u63a5\u65b9\u5f0f\u6539\u6210TCP\u7684\u624d\u80fd\u987a\u5229\u8fde\u63a5\u3002 \u4e0a\u9762\u662f\u7b80\u5355\u7684\u4ecb\u7ecd\uff0c\u5982\u679c\u8fd8\u6709\u7591\u95ee\u53ef\u4ee5\u5728\u5fae\u535a\u79c1\u4fe1\u6211\u3002<\/p>\n<p>\u539f\u6587\uff1a<a rel=\"nofollow noopener\" target=\"_blank\" href=\"http:\/\/feedproxy.google.com\/~r\/Yes2Me\/~3\/voHwD8KA9y8\/1577\">Yes2Me<\/a><\/span><\/p>\n<div>\u83b7\u53d6\u6700\u65b0\u7a7f\u5899\u8f6f\u4ef6\uff1f\u8bf7\u53d1\u7535\u90ae\uff08\u6700\u597d\u7528gmail\uff09\u5230\uff1acdtcaonima@gmail.com\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><\/div>\n<\/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&#8230;<\/iframe><\/p>\n<form method=\"POST\" action=\"http:\/\/chinadigitaltimes.us4.list-manage.com\/subscribe\/post?u=17daa75df533f6c6ff72e51ab&#038;id=2ea93c5b7b\">\n<a href=\"http:\/\/eepurl.com\/msuvD\" target=\"_blank\" rel=\"noopener\">\u5899\u5916\u65b0\u95fb\u5b9e\u65f6\u66f4\u65b0 \u6b22\u8fce\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> \u6700\u8fd1\uff0c\u516c\u53f8\u7684VPN\u603b\u662f\u6389\u7ebf\uff0c\u540e\u6765\u624d\u770b\u5230\uff0c\u65b9\u6821\u957f\u7684\u7814\u7a76\u6587\u7ae0\u3002 \u300c\u7f51\u7edc\u6d41\u91cf\u5206\u7c7b\u7814\u7a76\u8fdb\u5c55\u4e0e\u5c55\u671b \u300d \u3002\u901a\u8fc7\u673a\u5668\u5b66\u4e60\u7684\u65b9\u6cd5\u5c01\u9501\u7ffb\u5899\u4e86\u3002SSH\u96a7\u9053\u3001IPSEC\u96a7\u9053\u3001SSL, \u4ee5\u53caP2P\u5747\u88ab\u7834\u89e3\u3002\u65e0\u8bba\u5982\u4f55\u6362\u7aef\u53e3\u6216\u8005ip\uff0c\u53ea\u8981\u6d41\u91cf\u7a0d\u5927\u4e00\u70b9\uff0c\u5c31\u7acb\u523b\u6389\u7ebf\u3002 \u7814\u7a76\u4e86\u51e0\u5929\u540e\uff0c\u7ec8\u4e8e\u627e\u5230\u5bf9\u7b56\uff1aVPN\u901a\u8fc7SSH\u96a7\u9053\u6620\u5c04\u7a7f\u8d8aGFW\u3002\u8be5\u65b9\u6cd5\u53ef\u4ee5\u7ed5\u8fc7\u4f01\u4e1a\u7ea7\u7684\u9632\u706b\u5899\uff0c\u540c\u6837\uff0c\u7ed5\u8fc7GFW\u4f3c\u4e4e\u4e5f\u975e\u5e38\u597d\u4f7f\u3002\u4e0b\u9762\u7b80\u5355\u8bf4\u8bf4\u914d\u7f6e\u7684\u8fc7\u7a0b\u3002 \u57fa\u672c\u539f\u7406\uff1a \u5ba2\u6237\u7aef \u2013> \u672c\u5730\u6620\u5c04\u7aef\u53e3 \u8fdc\u7a0bVPN\u670d\u52a1\u5668 \u524d\u671f\u51c6\u5907 1\u3001\u53ef\u4ee5\u7ffb\u5899\u7684SSH\u8d26\u6237(\u6700\u597d\u548cVPN\u5728\u4e00\u53f0\u4e3b\u673a\u4e0a) 2\u3001\u53ef\u4ee5\u7ffb\u5899\u7684VPN\u8d26\u6237(openVPN\u3001pptp \u7b49) \u914d\u7f6e\u65b9\u6cd5 1\u3001\u672c\u5730\u8bbe\u7f6e\u7aef\u53e3\u8f6c\u53d1\u7684\u811a\u672c\u5e76\u8fd0\u884c #! \/usr\/bin\/env python #coding=utf-8 import pexpect import re local_port = &#8220;\u672c\u5730\u8f6c\u53d1\u7aef\u53e3&#8221; #pptp\u9ed8\u8ba4\u662f1723 openVPN\u9ed8\u8ba4\u662f1194 username = &#8220;ssh\u7528\u6237\u540d&#8221; password = &#8220;ssh\u5bc6\u7801&#8221; ssh_host = &#8220;ssh\u7684\u5730\u5740&#8221; vpn_host = &#8220;vpn\u7684\u5730\u5740&#8221; #\u5982\u679cssh\u548cvpn\u662f\u4e00\u53f0\u673a\u5b50\uff0c\u8fd9\u91cc\u53ef\u4ee5\u662f127.0.0.1 vpn_port = &#8220;vpn\u7aef\u53e3&#8221; cmd = &#8220;ssh -C -f -N -g -o CompressionLevel=9 -o Cipher=none &#8221; cmd += username + &#8220;@&#8221; + ssh_host + &#8221; -L &#8221; cmd += local_port +&#8221;:&#8221;+ vpn_host + &#8220;:&#8221; + vpn_port pattern = re.compile(&#8220;^.*assword:s*&#8221;) child = pexpect.spawn(cmd) child.expect(pattern) child.sendline(password) child.expect(pexpect.EOF) 2\u3001\u8bbe\u7f6eVPN\u7684\u5730\u5740\u548c\u7aef\u53e3\u5230\u672c\u5730\u6620\u5c04\u5730\u5740 \u6309\u7167\u4e0a\u9762\u811a\u672c\uff0c\u5982\u679c\u662fopenVPN\uff0c\u90a3\u4e48\u8fde\u63a5\u7684\u5730\u5740\u5e94\u8be5\u662f127.0.0.1:1194\u3002 3\u3001\u7279\u522b\u6ce8\u610f \u7531\u4e8eSSH\u7aef\u53e3\u8f6c\u53d1\u4e0d\u652f\u6301UDP\uff0c\u6240\u4ee5openVPN\u8981\u628a\u8fde\u63a5\u65b9\u5f0f\u6539\u6210TCP\u7684\u624d\u80fd\u987a\u5229\u8fde\u63a5\u3002 \u4e0a\u9762\u662f\u7b80\u5355\u7684\u4ecb\u7ecd\uff0c\u5982\u679c\u8fd8\u6709\u7591\u95ee\u53ef\u4ee5\u5728\u5fae\u535a\u79c1\u4fe1\u6211\u3002 \u539f\u6587\uff1a Yes2Me \u83b7\u53d6\u6700\u65b0\u7a7f\u5899\u8f6f\u4ef6\uff1f\u8bf7\u53d1\u7535\u90ae\uff08\u6700\u597d\u7528gmail\uff09\u5230\uff1acdtcaonima@gmail.com\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 http:\/\/dld.bz\/caonima326 \uff0c http:\/\/dld.bz\/caonima745 <\/p>\n","protected":false},"author":1005,"featured_media":0,"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":[7775,33607],"class_list":["post-277866","post","type-post","status-publish","format-standard","hentry","category-15300","tag-gfw","tag-33607","et-doesnt-have-format-content","et_post_format-et-post-format-standard"],"_links":{"self":[{"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/posts\/277866","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=277866"}],"version-history":[{"count":0,"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/posts\/277866\/revisions"}],"wp:attachment":[{"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/media?parent=277866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/categories?post=277866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chinadigitaltimes.net\/chinese\/wp-json\/wp\/v2\/tags?post=277866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}