Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. cat << EOF >> /etc/sysctl.conf
  2. net.core.default_qdisc = fq
  3. net.ipv4.tcp_congestion_control = bbr
  4. EOF
  5.  
  6. sysctl -p
  7. apt update
  8. apt install -y shadowsocks
  9. cat <<EOF >/etc/shadowsocks/config.json
  10. {
  11. "server":"::",
  12. "server_port":8443,
  13. "local_address": "127.0.0.1",
  14. "local_port":1080,
  15. "password":"chengxuncc",
  16. "timeout":300,
  17. "method":"aes-256-cfb",
  18. "fast_open": false,
  19. "workers": 5,
  20. "prefer_ipv6": false
  21. }
  22. EOF
  23.  
  24. systemctl stop shadowsocks
  25. systemctl restart shadowsocks
  26. systemctl enable shadowsocks
  27. systemctl status shadowsocks
  28. systemctl start shadowsocks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement