vultr搭建或倚天剑购买帐号
购买倚天剑 socks5 帐号
https://a.aiguobit.com/users/ucenter
或者从 github 进入
https://github.com/itrump/ssfree/blob/master/cn/%E5%80%9A%E5%A4%A9%E5%89%91ss%E6%96%B0%E7%BD%91%E7%AB%99.md
vultr搭建sock5
参照下面两个网站
安装 shadsocks
1
2
3
4
|
# archlinux
sudo pacman -S shadowsocks
# gentoo
sudo emerge --ask shadowsocks-libev proxychains
|
配置shadowsocks文件
在 Documents 下建立 shadowsocks.json, 加入帐号配置
1
2
3
4
5
6
7
8
9
10
|
{
"server":"my_server_ip",
"local_address": "127.0.0.1",
"local_port":1080,
"server_port":my_server_port,
"password":"my_password",
"timeout":300,
"method":"aes-256-cfb",
}
|
或者修改 /etc/shadowsocks-libev/shadowsocks.json
SS启动及开机启动
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
sslocal -c Documents/VPN/Shadowsocks/shadowsocks2.json
sudo systemctl enable shadowsoks.service
sudo pacman -S supervisor
sudo gedit /etc/supervisord.conf
# Add
[program:shadowsocks]
command=sslocal -c /home/lengyue/Documents/VPN/Shadowsocks/shadowsocks2.json
autostart=true
autorestart=true
user=root
log_stderr=true
logfile=/var/log/shadowsocks.log
sudo systemctl enable supervisord.service
|
或者使用systemctl开机启动
sudo systemctl enable shadowsocks-libev-locla@shadowsocks.service
使用 proxychains 代理程序
1
2
3
4
5
6
7
|
sudo pacman -S proxychains
sudo gedit /etc/proxychains.conf
# change to
socks5 127.0.0.1 1080
|