#Youtube视频
https://youtu.be/qfeQf8ynhYU
#项目链接
https://github.com/anytls/anytls-go
#环境
Debian12,ARM 64, root
#安装必要组件
apt install -y curl unzip
#安装anytls服务端(改成当前版本号和对应服务器的cpu)
curl -LO "https://github.com/anytls/anytls-go/releases/download/v${VERSION}/anytls_${VERSION}_linux_amd64.zip"
curl -LO "https://github.com/anytls/anytls-go/releases/download/v0.0.8/anytls_0.0.8_linux_arm64.zip"
curl -LO "https://github.com/anytls/anytls-go/releases/download/v0.0.8/anytls_0.0.8_linux_amd64.zip"
#解压缩(改成当前版本号和对应服务器的cpu)
unzip "anytls_${VERSION}_linux_amd64.zip"
unzip "anytls_0.0.8_linux_arm64.zip"
unzip "anytls_0.0.8_linux_amd64.zip"
#移动文件到执行目录
mv anytls-server /usr/local/bin/ && rm anytls-client readme.md
#添加系统启动配置(需要修改密码,端口,user,group选择性修改)
dd of=/etc/systemd/system/anytls.service <<EOF [Unit] Description=AnyTLS Service After=network.target [Service] Type=simple User=root Group=root ExecStart=/usr/local/bin/anytls-server -l 0.0.0.0:8443 -p YOUR_PASSWORD Restart=on-failure [Install] WantedBy=multi-user.target EOF
#启动配置文件和其他配置命令
systemctl daemon-reload systemctl start anytls systemctl status anytls systemctl enable anytls
#json文件
{ "log":{ "level":"warn" }, "inbounds":[ { "listen":"127.0.0.1", "listen_port":10808, "sniff":true, "sniff_override_destination":false, "tag": "AnyTLS", "type":"mixed" } ], "outbounds":[ { "type": "anytls", "tag": "dartnode anytls", "server": "146.235.235.60", "server_port": 8443, "password": "YOUR_PASSWORD", "idle_session_check_interval": "30s", "idle_session_timeout": "30s", "min_idle_session": 5, "tls": { "enabled": true, "insecure": true, "server_name": "" } } ] }
#sing-box核心下载
https://github.com/SagerNet/sing-box/releases
相关导航
暂无评论...