0%

VPS Shadowsocks

SSH配置文件

1
2
/etc/ssh/sshd_config  #修改VPS默认SSH端口
service sshd reload

pip install shadowsocks

1
2
3
4
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py
pip install shadowsocks
ssserver -p xxx -k xxx -m xxx

firewall-cmd开启ss端口

1
2
3
4
5
6
7
service firewalld start
firewall-cmd --add-port=xxx/tcp --zone=public --permanent
firewall-cmd --reload

#开机启动firewall
systemctl is-enabled firewalld.service
systemctl enable firewalld.service

脚本优化

1
2
3
4
5
6
7
8
#添加环境变量 /etc/profile export PATH="$PATH:/home/bin"
#runss sh
#!/usr/bin/sh
nohup ssserver -p xxx -k xxx -m xxx &
chmod +x runss

#开机执行
/etc/rc.d/rc.local /root/bin/runss

local sh

1
2
3
#!/usr/bin/sh
pkill sslocal
nohup sslocal -s xxx.xxx.xxx.xxx -p xxx -k xxxx -m xxx -l 1080 &

shell走代理

1
2
3
4
5
6
pcaman -S proxychains
/etc/proxychains.conf
ProxyList
socks5 127.0.0.1 1080
go!
proxychains4 pip install xxx