shadowsocks-libev一键脚本(Twist速度优化)

wget https://raw.githubusercontent.com/Unbinilium/Twist/master/twist -O twist.sh && chmod -x twist.sh && bash twist.sh

脚本升级

twist update
或自动升级
echo "0 0 1 * * root bash /usr/bin/twist update" >> /etc/crontab

脚本卸载

twist uninstall

安装前自定义参数

nano twist.sh 或 vi twist.sh 
# 可能需要先安装编辑器 nano 或 vim

安装后修改参数

twist custom

参数说明

PORT="443"                     # Server port
LOACL="127.0.0.1"              # The address that server listens
LOCALPORT="1080"               # Local port of loacl address that server listens
PASSWORD=""         # Password used for encryption, auto generate if left free 
DNS="8.8.8.8"                  # Default DNS server address of Google Public DNS
TIMEOUT="600"                  # Drop connections if it not using in seconds
METHOD="chacha20-ietf-poly1305" # Encryption, AEAD is better than OTA
OBFS="tls"                      # Obfs method using tls or http
OBFSHOST="mzstatic.com"          # Obfs host address
WORKERS="1024"      # Workers using, larger provides faster speed but less memory
BBR="enable"               # Google BBR for low delay network to get faster speed
FWS="enable"                     # Fake as a apache web server for concealing
ABB="enable"                     # Uses Fail2ban to ban force crackers

shadowsocks-libev 系统服务

twist status   # 查看
twist start    # 启动
twist stop     # 停止
twist restart  # 重启

脚本特点

  • Fast, Secured and Stable Connections
  • Multithreading Support
  • TCP Fast Open Support
  • Simple Obfs Support
  • IPv4 & IPv6 Environment Supported and Connections
  • Optimised Performance Using Google BBR TCP Controler and Supported UDP Transfer
  • High Security Supported AEAD Auth & Encryption
  • Fine Compatibility and Support Original Shadowsocks Client
  • One-key Installation and One-key Setup on your Devices
  • SS Scheme & QRCode Login Information Auto Generate
  • Highly Concealed Fake as a WebServer using Apache and Enabled Fail2ban to Ban Force Crackers

系统要求

  • Ubuntu 17.10(Artful Aardvark), 17.04(Zesty), 16.10(Yakkety),
    16.04(Xenial)
  • Debian 9(Stretch), 8(Jessie)
  • Cent OS 7, 6
  • Red Hat 7, 6
  • Fedora 26, 25
  • Arch Linux
  • Raspbian