<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>七分地 &#187; VPN</title>
	<atom:link href="http://www.qifendi.com/html/ytag/vpn/feed" rel="self" type="application/rss+xml" />
	<link>http://www.qifendi.com</link>
	<description>soncy的七分责任田，种点瓜果蔬菜和杂草</description>
	<lastBuildDate>Sun, 22 Aug 2010 13:24:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>CentOS5的VPS下安装VPN[PPTPD]</title>
		<link>http://www.qifendi.com/html/y2010/the-vps-centos5-install-vpn-pptpd.html</link>
		<comments>http://www.qifendi.com/html/y2010/the-vps-centos5-install-vpn-pptpd.html#comments</comments>
		<pubDate>Mon, 12 Apr 2010 15:49:37 +0000</pubDate>
		<dc:creator>soncy</dc:creator>
				<category><![CDATA[互联网生活]]></category>
		<category><![CDATA[pptp]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.qifendi.com/?p=840</guid>
		<description><![CDATA[<p>
<img alt="" class="alignleft size-full wp-image-855" height="100" src="http://www.qifendi.com/wp-content/uploads/2010/04/centosvpn1.gif" title="centosvpn" width="250" />&#160;&#160;&#160;&#160;&#160;&#160; 今天想在VPS上装一个VPN，方便翻墙和移动设备翻墙使用，于是到处找教程，最后找到一篇《<a href="http://www.black-xstar.com/blog/691.html" target="_blank">在CentOS下安装PPTP的VPN</a>》，按照这篇文章的步骤一步步走下去，最后顺利装完，建立VPN连接，登陆，一切正常，但是访问不了网页，直接访问IP是可以的，看来是DNS不对，改了几次，折腾了两个小时还是没搞定，反而把VPS搞得乌烟瘴气。后来在Diahosting的官方博客上看到一篇文章，是说在CentOS下一键安装PPTPD的，很简单，就一个sh脚本。试了一下，的确可行。
</p>[......]<p class='read-more'><a href='http://www.qifendi.com/html/y2010/the-vps-centos5-install-vpn-pptpd.html'></a></p>]]></description>
			<content:encoded><![CDATA[<p>
<img alt="" class="alignleft size-full wp-image-855" height="100" src="http://www.qifendi.com/wp-content/uploads/2010/04/centosvpn1.gif" title="centosvpn" width="250" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 今天想在VPS上装一个VPN，方便翻墙和移动设备翻墙使用，于是到处找教程，最后找到一篇《<a href="http://www.black-xstar.com/blog/691.html" target="_blank">在CentOS下安装PPTP的VPN</a>》，按照这篇文章的步骤一步步走下去，最后顺利装完，建立VPN连接，登陆，一切正常，但是访问不了网页，直接访问IP是可以的，看来是DNS不对，改了几次，折腾了两个小时还是没搞定，反而把VPS搞得乌烟瘴气。后来在Diahosting的官方博客上看到一篇文章，是说在CentOS下一键安装PPTPD的，很简单，就一个sh脚本。试了一下，的确可行。
</p>
<p>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 下班回到家，先把VPS给重装了，幸好盘古那边也有SSH，不然备份就能哭死我了，直接把VPS上的站点打包，数据库备份，然后再盘古那边wget过去，速度很快，接近2MB/秒，一切就绪，然后重装VPS，重建站点，重新编译Lighttpd，最后，当然是要跑一下这个PPTPD的脚本了。过程很简单，如下：
</p>

<div class="wp_codebox"><table><tr id="p8401"><td class="code" id="p840code1"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>www.diahosting.com<span style="color: #000000; font-weight: bold;">/</span>dload<span style="color: #000000; font-weight: bold;">/</span>pptpd.sh
<span style="color: #c20cb9; font-weight: bold;">sh</span> pptpd.sh</pre></td></tr></table></div>

<p>
&nbsp;安装完成后会提示vpn用户名和密码，这个时候可以编辑配置文件修改密码或者修增用户。
</p>

<div class="wp_codebox"><table><tr id="p8402"><td class="code" id="p840code2"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vim</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ppp<span style="color: #000000; font-weight: bold;">/</span>chap-secrets</pre></td></tr></table></div>

<p>配置文件格式：</p>

<div class="wp_codebox"><table><tr id="p8403"><td class="code" id="p840code3"><pre class="vim" style="font-family:monospace;">vpn pptpd xxxxxx <span style="color: #000000;">*</span></pre></td></tr></table></div>

<p>其中vpn是用户名，xxxxx是密码，*号一般不用管，更改后保存，即时生效。OK，现在可以去连VPN上twitter，youtube了。<br />
<span style="color: #888; font-size: 12px">*注：该脚本仅对CentOS 5 32bits/64bits有效，其他系统未测试。该方法只对XEN的VPS有效，OpenVz的貌似只有装openvpn了。非diahosting用户可能需要修改脚本中的localip,remoteip和iptables转发中的IP为自己VPS服务商IP。</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.qifendi.com/html/y2010/the-vps-centos5-install-vpn-pptpd.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>关于翻墙</title>
		<link>http://www.qifendi.com/html/y2010/about-over-the-wall.html</link>
		<comments>http://www.qifendi.com/html/y2010/about-over-the-wall.html#comments</comments>
		<pubDate>Sat, 20 Mar 2010 07:06:25 +0000</pubDate>
		<dc:creator>soncy</dc:creator>
				<category><![CDATA[互联网生活]]></category>
		<category><![CDATA[GFW]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[代理]]></category>
		<category><![CDATA[翻墙]]></category>

		<guid isPermaLink="false">http://www.qifendi.com/html/y2010/about-over-the-wall.html</guid>
		<description><![CDATA[<p><img alt="" class="alignleft size-full wp-image-594" height="100" src="http://www.qifendi.com/wp-content/uploads/2010/03/qiangdiao.gif" title="qiangdiao" width="250" />&#160;&#160;&#160;&#160;&#160;&#160; 中国的互联网是充分开放的，即使偶尔把世界上最流行的网站屏蔽掉也只是依照&#8220;世界惯例&#8221;&#8220;依法屏蔽&#8221;而已。我们都知道，在我们的国家有一堵伟大的墙，唤作GFW，它是怎么来的，是用来干什么的，可以<a href="http://www.kenengba.com/post/2812.html" target="_blank">看看这个</a>，既然有墙，那么肯定就有人要翻。</p>
<h3>为什么要翻墙</h3>
<p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; 墙外的世界很精彩，墙内的世界很无奈，每当我们看到有报道说Twitter每天发出的消息量超过百亿条，听说Youtube开始支持HTML5，宣布不支持IE6，听说facebook采用nosql方案等等的时候，我们就很诧异，咦，这些网站存在么？连央视都援引了twitter上的调查，央视撒谎了么，新闻里居然出来了不存在的网站。</p>[......]<p class='read-more'><a href='http://www.qifendi.com/html/y2010/about-over-the-wall.html'></a></p>]]></description>
			<content:encoded><![CDATA[<p><img alt="" class="alignleft size-full wp-image-594" height="100" src="http://www.qifendi.com/wp-content/uploads/2010/03/qiangdiao.gif" title="qiangdiao" width="250" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 中国的互联网是充分开放的，即使偶尔把世界上最流行的网站屏蔽掉也只是依照&ldquo;世界惯例&rdquo;&ldquo;依法屏蔽&rdquo;而已。我们都知道，在我们的国家有一堵伟大的墙，唤作GFW，它是怎么来的，是用来干什么的，可以<a href="http://www.kenengba.com/post/2812.html" target="_blank">看看这个</a>，既然有墙，那么肯定就有人要翻。</p>
<h3>为什么要翻墙</h3>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 墙外的世界很精彩，墙内的世界很无奈，每当我们看到有报道说Twitter每天发出的消息量超过百亿条，听说Youtube开始支持HTML5，宣布不支持IE6，听说facebook采用nosql方案等等的时候，我们就很诧异，咦，这些网站存在么？连央视都援引了twitter上的调查，央视撒谎了么，新闻里居然出来了不存在的网站。</p>
<p><img alt="notwitter" border="0" class="aligncenter size-full" height="239" src="http://www.qifendi.com/wp-content/uploads/2010/03/notwitter.gif" title="notwitter" width="587" /></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 我们知道，这些站都是存在的，并且是世界上最流行的，看看他们在alexa top500中的排名。事实上，有可能很多你打不开的国外的网站都是因为被墙掉了。那么如果你要访问图中这些网站以及那些你特别想访问的网站，比如baidu.jp，那么就需要翻墙了。</p>
<p><img alt="alexatop500" border="0" class="aligncenter size-full" height="194" src="http://www.qifendi.com/wp-content/uploads/2010/03/alexatop500.gif" title="alexatop500" width="676" /></p>
<p>&nbsp;</p>
<h3>如何翻墙</h3>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 这个墙不是跨一下或者搭个梯子就能翻出去的，我们现在常用的翻墙方法主要还是代理和VPN为主：</p>
<p><strong>1，在线代理</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在线在线代理(Web Proxy)原理可以简单的概述为:用户(A)-在线代理服务器(B)-目标网站(C)，即：A向B发送浏览请求-B执行请求发送给C-C收到请求，回应。这是一种不用在本机或者浏览器中设置代理的方法，相对来说使用方便，无需设置，打开在线代理网站，输入网址就能访问。现在免费在线代理也很多，质量也普遍不高，而且多有广告。怕麻烦的可以用该办法。</p>
<p><img alt="proxy" border="0" class="aligncenter size-full" height="104" src="http://www.qifendi.com/wp-content/uploads/2010/03/proxy.gif" title="proxy" width="675" /></p>
<p><strong>2，浏览器代理</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 在线代理使用起来也不是很顺手，那么试试浏览器代理，先去一些代理网站找一批代理服务器，当然，找到能用的，速度又快的几率很小，大部分都不稳定，用不了多久就没用了，找到后在浏览器中设置代理服务器。</p>
<p><img alt="ieproxy" border="0" class="aligncenter size-full" height="404" src="http://www.qifendi.com/wp-content/uploads/2010/03/ieproxy.gif" title="ieproxy" width="432" /></p>
<p><strong>3，VPN</strong></p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 比起在线代理和浏览器代理，VPN的优势很明显，他能完全把你的上网环境模拟成另外一个，相对来说VPN也更加稳定，当然，免费的VPN很难找到，如果你需要长期翻墙或者翻墙频率很高，建议你买个收费VPN。</p>
<p><img alt="vpn" border="0" class="aligncenter size-full" height="177" src="http://www.qifendi.com/wp-content/uploads/2010/03/vpn.gif" title="vpn" width="540" /></p>
<p><strong>4，使用一些专业翻墙工具</strong></p>
<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong>诸如自由门，无界这一类工具，使用起来也是非常方便，很适合临时性翻墙，我曾经也用无界翻过一段时间，感觉还行，但是容易掉线，这两个软件在国内应该属于是被封杀的软件。你只能悄悄的得到它。</p>
<p><img align="left" alt="wujie" border="0" class="aligncenter size-full" height="143" src="http://www.qifendi.com/wp-content/uploads/2010/03/wujie.gif" title="wujie" width="498" /> <img align="left" alt="ziyoumen" border="0" class="aligncenter size-full" height="199" src="http://www.qifendi.com/wp-content/uploads/2010/03/ziyoumen.gif" title="ziyoumen" width="508" /></p>
<p><strong>5，使用SSH翻墙</strong></p>
<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </strong>SSH翻墙是一种备受推崇的翻墙方式，你需要先准备一个SSH账号，很多国外的主机都能开通SSH账号，比如我现在正在用的这个主机，如果你没有的话可以去淘宝花几块钱买一个。有了SSH账号后你就可以使用一些SSH终端翻墙了，当然，之前需要设置一番。以SecureCRT为例，在会话属性中选择&ldquo;端口转发&rdquo;，填好名称和本地端口，端口可以自己设置，没有冲突就行，远程那里勾选&ldquo;动态转发使用 SOCKS4或5(S)&rdquo;。确定后，再选择端口转发下的&ldquo;远程/X11&rdquo;，填好名称，远程和本地端口，端口号跟之前填那个一样。设置完后，连接这个会话，就相当于你自己做了一台代理服务器（127.0.0.1），之后在浏览器中设置SOCKS代理就OK。</p>
<p><img alt="sshfanqiang" border="0" class="aligncenter size-full" height="289" src="http://www.qifendi.com/wp-content/uploads/2010/03/sshfanqiang.gif" title="sshfanqiang" width="557" /></p>
<p>&nbsp;</p>
<h3>翻墙后的世界</h3>
<p>如果我们用上面的任何一种方法翻墙成功了，那么就能领略完整的互联网了，之后我们就是自由的了，在自由的互联网里驰骋吧。</p>
<h3>最后</h3>
<p>我不是一个反对互联网过滤和审查的人，也不反对GFW，对色情的屏蔽无可厚非，但是有些的确太过分了。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.qifendi.com/html/y2010/about-over-the-wall.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

