shadowsocks

by kongji2008
3 deployments · 3 still active · last rev. 4 days ago

install shadowsocks-libev

Compatible with: Ubuntu 18.04 LTS
						#!/bin/bash
# <UDF name="password" Label="Password" />
apt update
apt autoremove -y
modprobe tcp_bbr
echo "tcp_bbr" >> /etc/initramfs-tools/modules
update-initramfs -u -k $(uname -r)
sysctl -w net.ipv4.tcp_congestion_control=bbr
sysctl -w net.ipv4.tcp_fastopen=3
echo 'net.ipv4.tcp_congestion_control = bbr' >> /etc/sysctl.conf
echo 'net.ipv4.tcp_fastopen = 3' >> /etc/sysctl.conf
apt install shadowsocks-libev rng-tools simple-obfs -y
systemctl enable shadowsocks-libev
cat <<EOF > /etc/shadowsocks-libev/config.json
{
    "server": [
        "0.0.0.0",
        "::0"
    ],
    "server_port": 15672,
    "password": "$PASSWORD",
    "timeout": 60,
    "method": "aes-256-cfb",
    "fast_open": true
}
EOF
reboot