1.注册AWS账户(海外账户),新用户注册提供12个月免费试用(具体注册方式请自行搜索)
2.在EC2(amzn-ami)服务器安装ShadowSocks,使用pip来安装:

  $sudo yum install -y python-setuptools
  $sudo easy_install pip
  $sudo pip install shadowsocks

3.验证安装是否成功

  $which ssserver
  /usr/local/bin/ssserver

4.在/etc目录编写json格式配置文件shadowsocks.json

{
	"server":"0.0.0.0",
	"local_address":"127.0.0.1",
	"local_port":1080,        #本地端口
	"port_password":{
		"8989":"111111",  #外部连接端口及密码,可配置多端口
		"9090":"222222"   
	},
	"timeout":300,
	"method":"aes-256-cfb",   #加密方式
	"fast_open":false
}

5.启动服务

  $sudo /usr/local/bin/ssserver -c /etc/shadowsocks.json -d start

6.配置EC2实例的安全组入站规则,开启配置文件中配置的端口8989、9090
1

最后通过客户端连接即可实现翻墙(客户端下载地址:http://shadowsocks.org/en/index.html)

Comments are closed.

Post Navigation