Cài đặt shadowsocks trên NAT VPS
https://shadowsocks.org/en/download/servers.html
1 sh -c 'printf "deb http://deb.debian.org/debian stretch-backports main" > /etc/apt/sources.list.d/stretch-backports.list'
2 apt update
3 apt -t stretch-backports install shadowsocks-libev
4 nano /etc/shadowsocks.json
5 systemctl status shadowsocks-libev
6 ss-server -v
7 systemctl start shadowsocks-libev
8 systemctl status shadowsocks-libev
9 systemctl start shadowsocks-libev
10 systemctl status shadowsocks-libev
11 systemctl restart shadowsocks-libev
12 systemctl status shadowsocks-libev
13 systemctl start shadowsocks-libev
14 systemctl daemon-reload
15 systemctl start shadowsocks-libev
16 systemctl status shadowsocks-libev
17 cd
18 systemctl daemon-reload
19 systemctl start shadowsocks-libev
20 systemctl status shadowsocks-libev
21 sudo netstat -lnpt
22 netstat -lnpt
23 systemctl start shadowsocks-libev
24 systemctl status shadowsocks-libev
25 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
26 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
27 systemctl start shadowsocks-libev
28 systemctl status shadowsocks-libev
29 systemctl start shadowsocks-libev
30 systemctl daemon-reload
31 systemctl start shadowsocks-libev
32 systemctl status shadowsocks-libev
33 systemctl status shadowsocks-libev
34 systemctl restart shadowsocks-libev
35 systemctl status shadowsocks-libev
36 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
37 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
38 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
39 apt install haveged
40 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
41 systemctl restart shadowsocks-libev
42 systemctl daemon-reload
43 systemctl restart shadowsocks-libev
44 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
45 ssserver -c /etc/shadowsocks.json -d start
46 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
47 ss-server -c /etc/shadowsocks-libev/config.json -d start
48 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
49 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
50 apt install virtio-rng
51 apt install rng-tools
52 apt install rng-utils
53 exit
54 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
55 systemctl restart shadowsocks-libev
56 systemctl status shadowsocks-libev
57 systemctl restart shadowsocks-libev
58 systemctl status shadowsocks-libev
59 systemctl daemon-reload
60 systemctl start shadowsocks-libev
61 systemctl status shadowsocks-libev
62 systemctl daemon-reload
63 systemctl start shadowsocks-libev
64 systemctl status shadowsocks-libev
65 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
66 service rng-tools restart
67 apt-get install rng-tools
68 vi /etc/default/rng-tools
69 vi /etc/default/rng-tools
70 nano /etc/default/rng-tools
71 clear
72 service rng-tools restart
73 /etc/init.d/rng-tools start
74 /etc/init.d/rng-tools status
75 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
76 service rng-tools status
77 cd
78 /etc/init.d/rng-tools restart
79 apt install virtio-rng
80 echo "HRNGDEVICE=/dev/urandom" >> /etc/default/rng-tools
81 systemctl start rng-tools
82 systemctl status rng-tools
83 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
84 systemctl start shadowsocks-libev
85 systemctl status shadowsocks-libev
86 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
87 apt-get update
88 apt-get install jitterentropy-rngd
89 apt-get install haveged
90 systemctl status haveged
91 systemctl start haveged
92 systemctl status haveged
93 nano /etc/default/haveged
94 systemctl start haveged
95 wget http://archive.ubuntu.com/ubuntu/pool/universe/j/jitterentropy-rngd/jitterentropy-rngd_1.0.8-2_amd64.deb
96 dpkg -i jitterentropy-rngd_1.0.8-2_amd64.deb
97 systemctl start jitterentropy
98 systemctl status jitterentropy
99 /usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
100 history
systemctl daemon-reload
systemctl start shadowsocks-libev
systemctl status shadowsocks-libev
systemctl restart shadowsocks-libev
/usr/bin/ss-server -c /etc/shadowsocks-libev/config.json -u
systemctl status haveged systemctl start haveged
skywirex
nano /etc/default/rng-tools
HRNGDEVICE=/dev/urandom
ERROR:
-
Failed at step CAPABILITIES spawning /usr/bin/ss-server: Invalid argument
on vps
/etc/systemd/system/multi-user.target.wants/shadowsocks-libev.service
#CapabilityBoundingSet=CAP_NET_BIND_SERVICE
#AmbientCapabilities=CAP_NET_BIND_SERVICE
connect: Invalid argument #2141
Remove `local_address` from your config.
This system doesn't provide enough entropy to quickly generate high-quality random numbers.
Installing the rng-utils/rng-tools, jitterentropy or haveged packages may help.
On virtualized Linux environments, also consider using virtio-rng.
The service will not start until enough entropy has been collected.
wget http://archive.ubuntu.com/ubuntu/pool/universe/j/jitterentropy-rngd/jitterentropy-rngd_1.0.8-2_amd64.deb
dpkg -i jitterentropy-rngd_1.0.8-2_amd64.deb
systemctl start jitterentropy systemctl status jitterentropy
https://www.tecmint.com/install-local-deb-packages-in-debian-ubuntu-linux-mint/
https://enterpriseadmins.blogspot.com/2017/10/how-to-enable-rng-tools-on-ubuntu-vps.html
https://shenzhensuzy.wordpress.com/2018/12/06/openvpn-over-shadowsocks/