在CentOS6下安装配置shadowsocks

安装服务端

yum install python-setuptools && easy_install pip
pip install shadowsocks

新建配置文件

vim /etc/shadowsocks.json
  • 单用户添加以下内容:
{
	"server":"0.0.0.0",
	"server_port":8848,
	"local_address":"127.0.0.1",
	"local_port":1080,
	"password":"your password",
	"timeout":300,
	"method":"aes-256-cfb",
	"fast_open":false
}
  • 多用户添加以下内容:
{
	"server":"0.0.0.0",
	"port_password":{
		"8381":"password1",
		"8382":"password2",
		"8383":"password3",
		"8384":"password4"
	},
	"local_address":"127.0.0.1",
	"local_port":1080,
	"timeout":300,
	"method":"aes-256-cfb",
	"fast_open":false
}

设置开机启动,/etc/rc.local 添加以下内容

ssserver -c /etc/shadowsocks.json -d start

发表评论

电子邮件地址不会被公开。 必填项已用*标注