<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%B9%9D--%E4%BE%BF%E6%90%BA%E5%BC%8F%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91%E8%B7%AF%E7%94%B1%E5%99%A8%2F%E5%84%BF%E7%AB%A5%E5%87%80%E7%BD%91%E5%99%A8</id>
		<title>项目十九--便携式科学上网路由器/儿童净网器 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%B9%9D--%E4%BE%BF%E6%90%BA%E5%BC%8F%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91%E8%B7%AF%E7%94%B1%E5%99%A8%2F%E5%84%BF%E7%AB%A5%E5%87%80%E7%BD%91%E5%99%A8"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%B9%9D--%E4%BE%BF%E6%90%BA%E5%BC%8F%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91%E8%B7%AF%E7%94%B1%E5%99%A8/%E5%84%BF%E7%AB%A5%E5%87%80%E7%BD%91%E5%99%A8&amp;action=history"/>
		<updated>2026-06-05T23:43:13Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%B9%9D--%E4%BE%BF%E6%90%BA%E5%BC%8F%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91%E8%B7%AF%E7%94%B1%E5%99%A8/%E5%84%BF%E7%AB%A5%E5%87%80%E7%BD%91%E5%99%A8&amp;diff=10377&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：/* MicroWRT系统搭建 */</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%B9%9D--%E4%BE%BF%E6%90%BA%E5%BC%8F%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91%E8%B7%AF%E7%94%B1%E5%99%A8/%E5%84%BF%E7%AB%A5%E5%87%80%E7%BD%91%E5%99%A8&amp;diff=10377&amp;oldid=prev"/>
				<updated>2015-10-06T13:00:02Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;MicroWRT系统搭建&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2015年10月6日 (二) 13:00的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l63&quot; &gt;第63行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第63行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;chinadns-openwrt: http://sourceforge.net/projects/openwrt-dist/files/chinadns/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;chinadns-openwrt: http://sourceforge.net/projects/openwrt-dist/files/chinadns/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;luci-app-chinadns: http://sourceforge.net/projects/openwrt-dist/files/luci-app/chinadns/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;luci-app-chinadns: http://sourceforge.net/projects/openwrt-dist/files/luci-app/chinadns/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==系统设置==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==系统设置==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Shengkai81@gmail.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%B9%9D--%E4%BE%BF%E6%90%BA%E5%BC%8F%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91%E8%B7%AF%E7%94%B1%E5%99%A8/%E5%84%BF%E7%AB%A5%E5%87%80%E7%BD%91%E5%99%A8&amp;diff=10373&amp;oldid=prev</id>
		<title>Shengkai81@gmail.com：Created page with &quot;{| style=&quot;width: 800px;&quot; |- | 本教程主要介绍如何在microWRT上搭建一个科学上网路由器。在China的极客，都不避免的会用到科学上网。如果不...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=%E9%A1%B9%E7%9B%AE%E5%8D%81%E4%B9%9D--%E4%BE%BF%E6%90%BA%E5%BC%8F%E7%A7%91%E5%AD%A6%E4%B8%8A%E7%BD%91%E8%B7%AF%E7%94%B1%E5%99%A8/%E5%84%BF%E7%AB%A5%E5%87%80%E7%BD%91%E5%99%A8&amp;diff=10373&amp;oldid=prev"/>
				<updated>2015-10-06T12:58:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- | 本教程主要介绍如何在microWRT上搭建一个科学上网路由器。在China的极客，都不避免的会用到科学上网。如果不...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
本教程主要介绍如何在microWRT上搭建一个科学上网路由器。在China的极客，都不避免的会用到科学上网。如果不考虑安全，目前常用的几种方式如下：&lt;br /&gt;
&lt;br /&gt;
*各种翻墙软件：这种方式的特点是门槛比较低，易使用，但是维护起来比较费事，有时需要多台设备频繁的维护升级。&lt;br /&gt;
*VPN:这种方式的门槛也比较低，但是会影响国内访问的速度，在某些极端情况下甚至会引起中国服务的报警和拒绝。&lt;br /&gt;
*PAC:这种方式也是门槛比较低，它是由云端统一分发，需要维护黑名单。并且不支持HTTP之外的协议。应用范围比较小。&lt;br /&gt;
*翻墙路由器：技术实现难度比较大，需要特殊的硬件投入。但是它的优点是，一旦设置后可自动运行，任何内网也能透明使用。非常适合家庭和中小企业使用，支持说有TCP协议。&lt;br /&gt;
&lt;br /&gt;
因此，在追求上网品质的家庭或者企业，翻墙路由器是最佳选择。市面是也可以买到翻墙路由器，但大多价格比较高，并且服务没有保障，一旦因某种&lt;br /&gt;
原因被查封，你的路由器就只能当板砖来用了。所以对于极客来讲，如果能用基于openwrt路由器搭建一款自己的翻墙路由器，那真是不二选择。下面我们&lt;br /&gt;
就介绍如何利用shadowsocks 和chinadns搭建一个科学路由器，并实现自动分流方案。&lt;br /&gt;
&lt;br /&gt;
==MicroWRT系统搭建==&lt;br /&gt;
&lt;br /&gt;
在这个方案中，我们在openwrt系统的基础上安装shadowsocks和chinadns两款开源软件，这chiandns不是openwrt标准库里支持的，所以要另外安装。&lt;br /&gt;
&lt;br /&gt;
1. 烧写正常工作的microWRT固件&lt;br /&gt;
编译个可以正常上网的microWRT固件，然后将他烧写到板子上，设置microWRT能能够通过家里的路由器直接访问外网。并且能够通过网页访问microWRT。&lt;br /&gt;
&lt;br /&gt;
2. 安装shadowsocks&lt;br /&gt;
shadowsocks是一款由@clowwindy开发的先进的，无状态的TCP代理工具。在通常情况下，shadowsocks具备无状态、无特征的特性，可有效对抗深度包检测。&lt;br /&gt;
此外，可自定义多个安全方式，并适用于全平台，包括路由器软件。在本教程中，shadowsocks负责将流量转发到代理服务器实现翻墙。&lt;br /&gt;
&lt;br /&gt;
shadowsock对应有三个软件，一个是客户端，一个是服务器端，另外一个是Luci控制端。在microWRT上只需要安装客户端和Luci控制端。&lt;br /&gt;
客户端的安装有两种方式，一直openwrt里已经支持了shadowsocks客户端，玩家可以通过如下配置，使固件包含shadowsocks。配置如下：&lt;br /&gt;
&lt;br /&gt;
[[File:science router.png|600px|thumb|center|openwrt configuration]]&lt;br /&gt;
&lt;br /&gt;
另外一种方式下载编译好的客户端进行安装。可以从如下网址进行下载。我们microWRT使用的CPU型号是ramips 的MT7620A。&lt;br /&gt;
http://sourceforge.net/projects/openwrt-dist/files/shadowsocks-libev/&lt;br /&gt;
将下载好的ipk安装包通过winscp 复制到板子上的/tmp 目录下。然后通过putty登陆到板子上，安装ipk包。&lt;br /&gt;
 &lt;br /&gt;
  opkg install shadowssocks-libev-spec_2.4.0-1_ramips_24kec.ipk&lt;br /&gt;
&lt;br /&gt;
安装完成后，会自动设置为开机启动，如果没有，可以手动添加。&lt;br /&gt;
&lt;br /&gt;
对于Luci控制端，可以从下面的连接中找到，下载后按照上面同样的方法进行安装。注意要先安装客户端，在安装控制台。&lt;br /&gt;
http://sourceforge.net/projects/openwrt-dist/files/luci-app/shadowsocks-spec/&lt;br /&gt;
&lt;br /&gt;
对于shadowsocks服务端，是安装在自由世界里的，他主要负责代理来自中的访问。玩家可以自己架设一天自己的shadowsocks服务器，但是需要一定的&lt;br /&gt;
技术门槛。当然很多玩家都是自己购买商业服务，价格也不是很贵。购买服务器后，服务商会提供一组参数作为登陆凭证，如下：&lt;br /&gt;
&lt;br /&gt;
  Your Server IP:123.123.123.123  服务器地址&lt;br /&gt;
  Your Server Port：8964          服务器端口&lt;br /&gt;
  Your Password： password        登陆密码&lt;br /&gt;
  Your Local IP：127.0.0.1        本地IP&lt;br /&gt;
  Your Local Port： 1080          本地端口&lt;br /&gt;
  Your Encryption Method: aes-256-cfg 安全方法&lt;br /&gt;
&lt;br /&gt;
这组参数，在下面配置的时候需要用到。&lt;br /&gt;
注意如果服务商给你的是一个网址，比如abc.proxy.com之类的，你需要自己将它转换成ip。转换方法是进入http://ip138.com/，查询这个网址&lt;br /&gt;
对应的IP地址，你将会得到一个ip地址，比如123.123.123.123。&lt;br /&gt;
&lt;br /&gt;
2. 安装chinadns&lt;br /&gt;
由于DNS污染，光有shadowsocks不能正确完成所有的动作。chinadns采用双DNS解析匹配技术，过滤污染DNS结果，并负责区分中国和国际流量，&lt;br /&gt;
将国际流量转交给shadowsocks代理，其余流量从系统默认网关发出。&lt;br /&gt;
使用chinadns可以抗dns污染并实现流量的分流。&lt;br /&gt;
&lt;br /&gt;
chinadns的安装和shadowssocks类似，只是在openwrt没有这个软件，需要完全的手动安装。通过下面的链接分别下载软件和luci客户端。&lt;br /&gt;
下载完成后用同样的方法进行安装。&lt;br /&gt;
&lt;br /&gt;
chinadns-openwrt: http://sourceforge.net/projects/openwrt-dist/files/chinadns/&lt;br /&gt;
luci-app-chinadns: http://sourceforge.net/projects/openwrt-dist/files/luci-app/chinadns/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==系统设置==&lt;br /&gt;
&lt;br /&gt;
通过上面的步骤，我们已经在microWRT上安装了所需的软件，然后通过网页登录到microWRT上，当看到控制台中出现shadowsocks和chinadns的设置&lt;br /&gt;
页面是，安装就成功了，下面就可以进行系统配置了。&lt;br /&gt;
&lt;br /&gt;
1. Chinadns 配置&lt;br /&gt;
china负责过滤污染结果，并负责分发中国和国际的流量。打开chinadns的配置页面如下：&lt;br /&gt;
&lt;br /&gt;
[[File:science router1.png|600px|thumb|center|chinadns configuration]]&lt;br /&gt;
&lt;br /&gt;
*默认为未启用，选择启用。&lt;br /&gt;
*本地端口：本地端口是路由器系统获取DNS的端口。（没启用的话，路由器将使用默认的DNS）不能和其他程序冲突，可以任意设置，设置后请牢记。&lt;br /&gt;
*国内路由表表明了中国的地址范围。这个可能会有变化，后续需要一定程度的维护，这个通常不需要动。&lt;br /&gt;
*上游服务器：&lt;br /&gt;
   理解chinadns就要充分理解上游服务器的概念。chinadns采用两组dns服务器，第一个是中国，第二个是国际。每次查询时同时查询。&lt;br /&gt;
   当所得结果为中国地址时，丢弃来自于国际服务器的答案，以便充分利用中国的CDN系统。当查询结果为国际地址时，丢弃中国服务器的答案，&lt;br /&gt;
   以便排除来自于中国的干扰。这里建议使用阿里DNS 223.5.5.5 或223.6.6.6 作为中国DNS服务器，理由是防止淘宝CDN错把你当作国际友人，结果被扔到全球站去。&lt;br /&gt;
   国际DNS的情况就比较复杂了，要防污染，又要速度快，有多种不同的方案。通常代理DNS需要更进一步的设置，或者需要shadowsocks具备UDP转发的功能。&lt;br /&gt;
   如果没有能力用pdnsd或者udp转发，也可以使用延迟时间，延迟0.3秒过滤污染包。这里采用了非标准端口的方式，将国际DNS的端口号改为非53端口。&lt;br /&gt;
   于是设置就是 223.5.5.5,国际DNS地址:5353&lt;br /&gt;
*双向过滤启用&lt;br /&gt;
*延迟时间设置为 0&lt;br /&gt;
&lt;br /&gt;
设置完毕后保存并应用，看到chinadns的状态为启动后OK。&lt;br /&gt;
&lt;br /&gt;
2. Shadowsocks 配置&lt;br /&gt;
&lt;br /&gt;
打开shadowsocks的管理页面，勾选启用。&lt;br /&gt;
SS-LOCAL 不用打开&lt;br /&gt;
其他项目按照上面的参数依次填写。注意服务器地址最好写IP地址，而不是网址。&lt;br /&gt;
每一项目都必须和你服务商提供给你的一一对应。&lt;br /&gt;
超时时间可以设置为10秒。&lt;br /&gt;
最后不要启用UDP转发，设置完毕后保存和应用，看到shadowsocks状态为启用后OK。&lt;br /&gt;
&lt;br /&gt;
3. 路由DNS设置&lt;br /&gt;
&lt;br /&gt;
此时，路由器上的两个软件均已工作，但还不能科学上网。打开路由器的DNS设置，如下图。选择DNS为本地地址#CHINADNS端口。即127.0.0.1#XXXX，注意这里要用#，而不是冒号。&lt;br /&gt;
&lt;br /&gt;
[[File:science router2.png|600px|thumb|center|shadowsocks configuration]]&lt;br /&gt;
&lt;br /&gt;
接下来选择”HOSTS和解析文件“， 选择忽略解析文件，忽略HOSTS文件。&lt;br /&gt;
&lt;br /&gt;
保存并应用。&lt;br /&gt;
&lt;br /&gt;
==测试==&lt;br /&gt;
以上配置完成后，路由器已经具有翻墙能力。下面进行测试：&lt;br /&gt;
&lt;br /&gt;
1，关闭电脑上所有翻墙软件，将电脑的IP地址\DNS地址均设置为自动，连入openwrt路由器的网络。&lt;br /&gt;
&lt;br /&gt;
2，访问www.whatismyip.com 确定是外国地址&lt;br /&gt;
&lt;br /&gt;
3，访问www.ip138.com 确定是中国地址&lt;br /&gt;
&lt;br /&gt;
4，访问其他被封网站，确定可以打开&lt;br /&gt;
&lt;br /&gt;
以上条件均满足时，路由器设置成功。此时，所有中国之外的网站将全部通过代理。&lt;br /&gt;
接下来可以关闭电源，重启动后测试，看能否自动重启两个服务。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
当然配置一个科学上网路由器还有其他方法和软件。本教程只是抛砖引玉，希望玩家在microWRT上开发出其他应用。&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Shengkai81@gmail.com</name></author>	</entry>

	</feed>