翻墙之IPv6篇

翻墙之IPv6篇

在之前自动翻墙配置EdgeOS篇续中, 我说我一直把IPv6作为备用方案, 所以今天才有了翻墙之IPv6篇

其实在有现在的策略路由方案之前, 我都是直接把IPv6作为主力的, 因为太方便了. 而且因为基于不同的协议栈, 所以不用考虑路由分流的问题.这样就避免了一个技术难题.

因为国内除了教育网基本都没有IPv6的公网协议部署, 所以对大众用户来说, 毫无疑问需要的就是一个能提供IPv6 Tunnel并且桥接流量到国外的供应商.

现在世界上最著名的IPv6供应商就是He.net的Tunnel Broker项目.

免费, 稳定, 技术成熟, 平台支持全面, 我个人用下来的感觉就是近乎完美, 唯一的问题就是youtube能访问却不能看视频.

https://tunnelbroker.net/

我们需要在Tunnelbroker的网站上注册一个ID.

然后在左边菜单里找一下

来创建一个新的IPv6通道.

<img data-attachment-id="84" data-permalink="https://51mx.xyz/2016/03/24/%e7%bf%bb%e5%a2%99%e4%b9%8bipv6%e7%af%87/tunnelserver/&quot; data-orig-file="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/tunnelserver.png?fit=854%2C912&ssl=1&quot; data-orig-size="854,912" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="tunnelserver" data-image-description="" data-medium-file="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/tunnelserver.png?fit=281%2C300&ssl=1&quot; data-large-file="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/tunnelserver.png?fit=800%2C854&ssl=1&quot; src="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/tunnelserver.png?resize=718%2C767&quot; alt="tunnelserver" srcset="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/tunnelserver.png?w=854&ssl=1 854w, i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/tunnelserver.png?resize=281%2C300&ssl=1 281w, i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/tunnelserver.png?resize=768%2C820&ssl=1 768w” sizes=”(max-width: 718px) 100vw, 718px” width=”345″ height=”368″ class=”” style=”max-width: 100%; margin: 0.5em auto; display: block; height: auto;”>

选择一个合适的服务器端(建议ping一下或者MTR一下看看速度如何)

填上自己的公网IP以后就可以生成tunnel了.

<img data-attachment-id="85" data-permalink="https://51mx.xyz/2016/03/24/%e7%bf%bb%e5%a2%99%e4%b9%8bipv6%e7%af%87/tunnelinfo/&quot; data-orig-file="https://i2.wp.com/51mx.xyz/wp-content/uploads/2016/03/Tunnelinfo.png?fit=650%2C568&ssl=1&quot; data-orig-size="650,568" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="Tunnelinfo" data-image-description="" data-medium-file="https://i2.wp.com/51mx.xyz/wp-content/uploads/2016/03/Tunnelinfo.png?fit=300%2C262&ssl=1&quot; data-large-file="https://i2.wp.com/51mx.xyz/wp-content/uploads/2016/03/Tunnelinfo.png?fit=650%2C568&ssl=1&quot; src="https://i2.wp.com/51mx.xyz/wp-content/uploads/2016/03/Tunnelinfo.png?resize=650%2C568&quot; alt="Tunnelinfo" srcset="https://i2.wp.com/51mx.xyz/wp-content/uploads/2016/03/Tunnelinfo.png?w=650&ssl=1 650w, i2.wp.com/51mx.xyz/wp-content/uploads/2016/03/Tunnelinfo.png?resize=300%2C262&ssl=1 300w” sizes=”(max-width: 650px) 100vw, 650px” width=”345″ height=”301″ class=”” style=”max-width: 100%; margin: 0.5em auto; display: block; height: auto;”>

Tunnel ID呢是你这个通道的ID号码, 类似身份证号码.

还有一些IPv4 IPv6的地址等, 这些都是通道的相关信息.

到这里, 其实服务器端已经完成.

不过He.net很良心, 不需要我们太担心自己会不会配置

<img data-attachment-id="86" data-permalink="https://51mx.xyz/2016/03/24/%e7%bf%bb%e5%a2%99%e4%b9%8bipv6%e7%af%87/setting/&quot; data-orig-file="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/setting.png?fit=502%2C475&ssl=1&quot; data-orig-size="502,475" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="setting" data-image-description="" data-medium-file="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/setting.png?fit=300%2C284&ssl=1&quot; data-large-file="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/setting.png?fit=502%2C475&ssl=1&quot; src="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/setting.png?resize=502%2C475&quot; alt="setting" srcset="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/setting.png?w=502&ssl=1 502w, i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/setting.png?resize=300%2C284&ssl=1 300w” size
s=”(max-width: 502px) 100vw, 502px” width=”345″ height=”326″ class=”” style=”max-width: 100%; margin: 0.5em auto; display: block; height: auto;”>

基本上, 常见的路由器系统都已经包含在内了.

只要保证自己的公网IP正确, 直接把命令行复制进CLI界面配置就能搞定了, 简单易用到极限了.

当然, 因为国内的IP地址的资源问题, 就算有IP地址也是动态的为主, 所以最好的话能有个可以自动更新客户端IP的东西.

He.net把这个也想好了..

<img data-attachment-id="87" data-permalink="https://51mx.xyz/2016/03/24/%e7%bf%bb%e5%a2%99%e4%b9%8bipv6%e7%af%87/ipupdate/&quot; data-orig-file="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/ipupdate.png?fit=631%2C266&ssl=1&quot; data-orig-size="631,266" data-comments-opened="1" data-image-meta="{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0"}" data-image-title="ipupdate" data-image-description="" data-medium-file="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/ipupdate.png?fit=300%2C126&ssl=1&quot; data-large-file="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/ipupdate.png?fit=631%2C266&ssl=1&quot; src="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/ipupdate.png?resize=631%2C266&quot; alt="ipupdate" srcset="https://i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/ipupdate.png?w=631&ssl=1 631w, i0.wp.com/51mx.xyz/wp-content/uploads/2016/03/ipupdate.png?resize=300%2C126&ssl=1 300w” sizes=”(max-width: 631px) 100vw, 631px” width=”345″ height=”145″ class=”” style=”max-width: 100%; margin: 0.5em auto; display: block; height: auto;”>

只要能在拨号的时候自动起访问这个URL, Tunnelbroker就会自动更新客户端的IPv4的IP, 然后通道就能顺利启动了.

可以说, Tunnelbroker的IPv6隧道才是最方便的翻墙方案, 可惜的是IPv6推广多年仍然没有足够大的使用范围.所以基本上除了Google也就没太大用处了.

翻墙之IPv6篇

留下评论