@skyway
2015-12-15T03:27:57.000000Z
字数 7154
阅读 1067
翻墙
AWS
shadowsocks
goagent
title: 一道墙,一扇窗
date: 2015-12-14 21:44:21
categories: [编程]
tags: [翻墙, AWS, shadowsocks, goagent, 阿里云]
你的心有一道墙
但我发现一扇窗
偶尔透出一丝暖暖的微光
就算你有一道墙
我的爱会攀上窗台盛放
打开窗你会看到悲伤融化
这首歌其实蛮应景的,就算有一道墙,我们也会打开一扇窗!
付费免费的都有不少,网上都可以搜到,但是免费的都不好用,不稳定!(付费的其实也不咋地-_-有同学用过)
这个是最复杂的,先要注册GAE账号,本地配置goagent,chrome安装SwitchyOmega代理插件,教程很多,不再赘述。唯一值得一说的是,goagent过一段时间会失效,其实是IP地址失效了,需要更新配置文件中IP地址为可用的,需要使用GoGoTester产生可用IP即可复活goagent。
之所以来折腾shadowsocks,是想找到更简单的翻墙方法,shadowsocks是我目前接触的“最简单”的翻墙手段,下载运行,输入对应账号信息即可开启代理。下载和使用教程
Too young too simple!
发现免费的账号信息基本不能使用,但是可以在网上查找别人提供的免费账号(有一定风险所有数据包都会通过代理服务器转发),对于可用账号可到(http://shadowsocks.info/),不过现在连代理好像都无法访问了。但是这边也有免费账号。
免费的使用人数会越来越多,时间长了还会失效。在同学的推荐下,自己AWS搭建代理(AWS可免费一年)。启动方法aws搭建shadowsocks代理里相对更简单。
有一个比较有趣的事,绑定信用卡后,1美元扣费了,但是没给我开通EC2服务,收到邮件要我提供域名和域名邮箱,木有域名邮箱,回复邮件说我只是一个穷学生,这些都没有,过了一会就开通了,囧!
你以为到这里就结束了?Impossible…
主要是goagent,shadowsocks-SenderCloud@HK(免费账号),shadowsocks-AWS@SG,shadowsocks-AWS@JP,shadowsocks-Aliyun-AWS@SG,最后这个来源于同学认为企业和企业间的网络传输会比较快。主要用http://www.speedtest.net/和tcping.exe测试延时。
D:\Personal\Downloads>ping -t 107.178.195.214
正在 Ping 107.178.195.214 具有 32 字节的数据:
来自 107.178.195.214 的回复: 字节=32 时间=289ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=291ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=289ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=289ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=289ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=289ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=289ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=289ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=290ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=289ms TTL=35
来自 107.178.195.214 的回复: 字节=32 时间=289ms TTL=35
107.178.195.214 的 Ping 统计信息:
数据包: 已发送 = 11,已接收 = 11,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 289ms,最长 = 291ms,平均 = 289ms
D:\Personal\Downloads>tcping.exe -t --proxy-server 45.119.97.65 --proxy-port 443 google.com
** Pinging continuously. Press control-c to stop **
Probing 45.119.97.65:443/tcp - Port is open - time=62.422ms
Probing 45.119.97.65:443/tcp - No response - time=2000.858ms
Probing 45.119.97.65:443/tcp - No response - time=2001.770ms
Probing 45.119.97.65:443/tcp - No response - time=2001.188ms
Probing 45.119.97.65:443/tcp - No response - time=2001.198ms
Probing 45.119.97.65:443/tcp - No response - time=2000.307ms
Probing 45.119.97.65:443/tcp - Port is open - time=1342.811ms
Probing 45.119.97.65:443/tcp - Port is open - time=67.654ms
Probing 45.119.97.65:443/tcp - Port is open - time=86.058ms
Probing 45.119.97.65:443/tcp - Port is open - time=71.507ms
Probing 45.119.97.65:443/tcp - Port is open - time=60.203ms
Probing 45.119.97.65:443/tcp - Port is open - time=63.946ms
Probing 45.119.97.65:443/tcp - Port is open - time=60.247ms
Probing 45.119.97.65:443/tcp - Port is open - time=81.908ms
Probing 45.119.97.65:443/tcp - Port is open - time=1445.477ms
Probing 45.119.97.65:443/tcp - Port is open - time=68.447ms
Probing 45.119.97.65:443/tcp - Port is open - time=69.279ms
Probing 45.119.97.65:443/tcp - Port is open - time=74.262ms
Control-C
Probing 45.119.97.65:443/tcp - No response - time=649.695ms
Ping statistics for 45.119.97.65:443
33 probes sent.
22 successful, 11 failed.
Approximate trip times in milli-seconds (successful connections only):
Minimum = 60.203ms, Maximum = 1661.668ms, Average = 261.110ms
两个测试结果基本一致,但是从数据也可以看出,不稳定,经常出现超时,偶尔出现无法使用情况。
D:\Personal\Downloads>tcping.exe -t --proxy-server 52.77.254.31 --proxy-port 8388 google.com
** Pinging continuously. Press control-c to stop **
Probing 52.77.254.31:8388/tcp - Port is open - time=110.682ms
Probing 52.77.254.31:8388/tcp - Port is open - time=108.967ms
Probing 52.77.254.31:8388/tcp - Port is open - time=111.542ms
Probing 52.77.254.31:8388/tcp - Port is open - time=94.762ms
Probing 52.77.254.31:8388/tcp - Port is open - time=110.384ms
Probing 52.77.254.31:8388/tcp - Port is open - time=106.622ms
Probing 52.77.254.31:8388/tcp - Port is open - time=100.377ms
Probing 52.77.254.31:8388/tcp - Port is open - time=107.496ms
Probing 52.77.254.31:8388/tcp - Port is open - time=97.155ms
Probing 52.77.254.31:8388/tcp - Port is open - time=103.896ms
Probing 52.77.254.31:8388/tcp - Port is open - time=95.630ms
Probing 52.77.254.31:8388/tcp - Port is open - time=95.285ms
Probing 52.77.254.31:8388/tcp - Port is open - time=106.182ms
Control-C
Ping statistics for 52.77.254.31:8388
13 probes sent.
13 successful, 0 failed.
Approximate trip times in milli-seconds:
Minimum = 94.762ms, Maximum = 111.542ms, Average = 103.768ms
D:\Personal\Downloads>tcping.exe -t --proxy-server 52.68.200.165 --proxy-port 8888 google.com
** Pinging continuously. Press control-c to stop **
Probing 52.68.200.165:8888/tcp - Port is open - time=188.882ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.435ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.332ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.029ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.048ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.385ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.433ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.216ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.138ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.441ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.223ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.466ms
Probing 52.68.200.165:8888/tcp - Port is open - time=188.385ms
Control-C
Ping statistics for 52.68.200.165:8888
13 probes sent.
13 successful, 0 failed.
Approximate trip times in milli-seconds:
Minimum = 188.029ms, Maximum = 188.882ms, Average = 188.340ms
通过ping测试结果延时差不多
D:\Personal\Downloads>ping -t 52.68.200.165
正在 Ping 52.68.200.165 具有 32 字节的数据:
来自 52.68.200.165 的回复: 字节=32 时间=187ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=188ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=190ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=187ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=187ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=187ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=187ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=188ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=187ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=187ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=187ms TTL=40
来自 52.68.200.165 的回复: 字节=32 时间=187ms TTL=40
52.68.200.165 的 Ping 统计信息:
数据包: 已发送 = 12,已接收 = 12,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 187ms,最长 = 190ms,平均 = 187ms
D:\Personal\Downloads>tcping.exe -t --proxy-server 120.27.92.162 --proxy-port 8388 google.com
** Pinging continuously. Press control-c to stop **
Probing 120.27.92.162:8388/tcp - Port is open - time=474.380ms
Probing 120.27.92.162:8388/tcp - Port is open - time=444.672ms
Probing 120.27.92.162:8388/tcp - Port is open - time=447.698ms
Probing 120.27.92.162:8388/tcp - Port is open - time=452.495ms
Probing 120.27.92.162:8388/tcp - Port is open - time=446.571ms
Probing 120.27.92.162:8388/tcp - Port is open - time=406.477ms
Probing 120.27.92.162:8388/tcp - Port is open - time=403.691ms
Probing 120.27.92.162:8388/tcp - Port is open - time=394.485ms
Probing 120.27.92.162:8388/tcp - Port is open - time=397.409ms
Probing 120.27.92.162:8388/tcp - Port is open - time=385.574ms
Probing 120.27.92.162:8388/tcp - Port is open - time=423.544ms
Probing 120.27.92.162:8388/tcp - Port is open - time=415.427ms
Probing 120.27.92.162:8388/tcp - Port is open - time=422.348ms
Control-C
Ping statistics for 120.27.92.162:8388
13 probes sent.
13 successful, 0 failed.
Approximate trip times in milli-seconds:
Minimum = 385.574ms, Maximum = 474.380ms, Average = 424.213ms
Aliyun中转想法是好的,但是现实是残酷的!
测试也发现SG的服务器响应快一些,说JP比较快都是骗人的/(ㄒoㄒ)/~~一定是你们的个人喜好影响,哼!(刚开通时测是日服快点,难道不稳定)
不过至少比Goagent要快一些,并且我试过youtube720P不卡是真的!我就这样单曲循环《心墙》把这写完了,这是一首多么好听的歌!