更新记录
-
换成shadowsocksR,为了match我装的小飞机…
1
|
wget --no-check-certificate https://freed.ga/github/shadowsocksR.sh; bash shadowsocksR.sh
|
-
建议设置快照,ip被墙了后可以快速还原
注册
直接上官网注册 ,验证,使用支付宝充值10刀
选购
-
location: tokyo
-
系统:centos7
注意
这里我开始选择了最新的,到设置界面更换成7即可,ss对高版本支持不好
换系统后ssh连接不上会报ARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
,subl /Users/david/.ssh/known_hosts
删除ip对应的记录即可
-
可选项,免费的都打上
远程登录
1
2
|
$ ssh-copy-id root@45.32.55.86
$ ssh root@root@45.32.55.86
|
由于LIUNX安全设置问题,在一段时间内没有使用数据的情况下会自动断开导致卡死的现象,解决方法就是让本地或者服务器隔一段时间发送一个请求给对方即可。
在本地打开配置文件(不建议在server端设置),在最后一行添加
1
2
3
4
|
#每隔50秒就向服务器发送一个请求,这个数字可以根据自身需要调整
ServerAliveInterval 30
#允许超时的次数,一般都会响应
ServerAliveCountMax 5
|
保存退出
你懂得
安装
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# 安装ss需要用到gcc
[root@ehfreedom bin]# yum install gcc
# 下载ss
[root@eh-freedom bin]# wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks.sh
# 移动到/usr/local/bin
mv shadowsocks.sh /usr/local/bin
cd /usr/local/bin
# 权限
chmod +x shadowsocks.sh
# 密码端口设置
./shadowsocks.sh 2>&1 | tee shadowsocks.log
# 依次输入密码端口号,加密方法选择aes-256-cfb,我这里选择了gcm,后来在配置文件改过来了,低版本小飞机不支持gcm这种加密方法
Congratulations, Shadowsocks-python server install completed!
Your Server IP : 45.32.55.86
Your Server Port : 8989
Your Password : 不告诉你
Your Encryption Method: aes-256-gcm
Welcome to visit:https://teddysun.com/342.html
Enjoy it!
# ok, Congratulations
# 查看状态
[root@eh-freedom bin]# /etc/init.d/shadowsocks status
Shadowsocks (pid 14471) is running...
|
使用
1
2
3
4
5
6
7
8
9
10
|
# 启动
/etc/init.d/shadowsocks start
# 停止
/etc/init.d/shadowsocks stop
# 重启
/etc/init.d/shadowsocks restart
# 状态
/etc/init.d/shadowsocks status
# 卸载
./shadowsocks.sh uninstall
|
配置文件
配置文件路径:/etc/shadowsocks.json
单个用户如下配置
1
2
3
4
5
6
7
8
9
10
|
{
"server":"0.0.0.0",
"server_port":8989,
"local_address":"127.0.0.1",
"local_port":1080,
"password":"不告诉你",
"timeout":300,
"method":"aes-256-cfb",
"fast_open":false
}
|
多个用户如下配置
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
{
"server":"0.0.0.0",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"8989":"password0",
"9001":"password1",
"9002":"password2",
"9003":"password3",
"9004":"password4"
},
"timeout":300,
"method":"aes-256-cfb",
"fast_open": false
}
|
访问
小飞机->服务器设置 填写端口号、密码、协议
测试了下,300ms的延迟,上网速度一般,还是使用西部世界好一点