跳转至

快速部署 SNELL 协议

脚本安装

SNELL 一键脚本

wget -O snell.sh --no-check-certificate https://git.io/Snell.sh && chmod +x snell.sh && ./snell.sh

Docker 部署

创建文件夹

mkdir -p /root/snelldocker/snell-conf

写入 Docker Compose 文件

cat > /root/snelldocker/docker-compose.yml << EOF
services:
  snell:
    image: accors/snell:latest
    container_name: snell
    restart: always
    network_mode: host
    volumes:
      - ./snell-conf/snell.conf:/etc/snell-server.conf
    environment:
      - SNELL_URL=https://dl.nssurge.com/snell/snell-server-v4.1.1-linux-amd64.zip
EOF

写入 SNELL 配置文件

1
2
3
4
5
6
7
8
cat > /root/snelldocker/snell-conf/snell.conf << EOF
[snell-server]
listen = 0.0.0.0:65110
psk = jy7jbw6yFWikg2uS
tfo = true
version = 4
dns = 1.1.1.1, 8.8.8.8
EOF

启动/删除 SNELL Docker

1.启动 Docker compose

cd /root/snelldocker
docker compose up -d

2.停止删除 Docker compose

docker compose down