OS: Ubuntu Server 16.04
vi /etc/ssh/sshd_config:%s/^PermitRootLogin yes/PermitRootLogin no
:wq
- Download the Source Code package from the latest release
- Read vlmcsd/README.compile-and-pre-built-binaries and do compiling
- Copy
./bin/vlmcsdto/usr/local/bin/ - Create
vlmcsd.service, like this:
[Unit]
Description=Vlmcsd Service
[Service]
ExecStart=/usr/local/bin/vlmcsd -D
Restart=always
[Install]
WantedBy=multi-user.targetIn particular, if you want to check logs from the vlmcsd service:
...
[Service]
ExecStart=/usr/local/bin/vlmcsd -D -e
...ln vlmcsd.service /etc/systemd/system/vlmcsd.service
systemctl enable vlmcsd.service
systemctl start vlmcsd.service- Install
python-pip pip install git+https://github.com/shadowsocks/shadowsocks.git@master- Create
shadowsocks.jsonin/etc/, like this:
{
"server":"::",
"local_address":"127.0.0.1",
"local_port":1080,
"port_password":{
"*10001*":"*password_for_first_port*",
"*20002*":"*password_for_second_port*"
},
"timeout":300,
"method":"chacha20-ietf-poly1305",
"fast_open":true
}- Create
ssserver.service, like this:
[Unit]
Description=Shadowsock Server Service
ConditionPathExists=/etc/shadowsocks.json
[Service]
ExecStart=/usr/local/bin/ssserver -c /etc/shadowsocks.json
Restart=always
[Install]
WantedBy=multi-user.targetln ssserver.service /etc/systemd/system/ssserver.service
systemctl enable ssserver.service
systemctl start ssserver.serviceAttributeError: */libcrypto.so.1.1: undefined symbol: EVP_CIPHER_CTX_cleanup
Modfiy */shadowsocks/crypto/openssl.py by vim:
:%s/cleanup/reset/
:x
Exception: libsodium not found
Download libsodium, decompress it, and enter the directory.
./configure
make && make check
make install
ldconfighttps://kionf.com/2016/12/15/errornote-ss/
https://download.libsodium.org/doc/installation
https://github.com/shadowsocksrr/shadowsocks-rss/wiki/libsodium