|
|
本帖最后由 hostvps 于 2025-9-4 09:43 编辑
shadowquic是一个具有 SNI 伪装的 0-RTT QUIC 代理,
参考https://github.com/chika0801/tuic-install修改了一个搭建教程:
1、下载程序(这个是amd64的arm去项目获取下载地址)
curl -Lo shadowquic https://github.com/spongebob888/shadowquic/releases/download/v0.2.1/shadowquic-x86_64-linux && chmod +x shadowquic && mv -f shadowquic /usr/local/bin/
2、下载配置
curl -Lo /etc/shadowquic_server.yaml https://github.com/spongebob888/shadowquic/raw/refs/heads/main/shadowquic/config_examples/server.yaml
可以 nano /etc/shadowquic_server.yaml 根据自己的需求修改里面的用户名密码,端口号,伪装的域名等信息
3、systemctl配置
nano /etc/systemd/system/shadowquic.service
粘贴以下内容
[Unit]
After=network.target nss-lookup.target
[Service]
User=root
WorkingDirectory=/etc
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
ExecStart=/usr/local/bin/shadowquic -c /etc/shadowquic_server.yaml
Restart=on-failure
RestartSec=10
LimitNPROC=512
LimitNOFILE=infinity
[Install]
WantedBy=multi-user.target
4、启动程序
systemctl enable --now shadowquic
重启程序 systemctl restart shadowquic
查看状态 systemctl status shadowquic
客户端配置可以参考项目里给的client.yaml配置 https://github.com/spongebob888/shadowquic
客户端有clash-rs、husi、Exclave、nekobox、v2rayn实现了windows、mac、linux、安卓、ios全覆盖。
https://github.com/Watfaq/clash-rs
https://github.com/xchacha20-poly1305/husi
https://github.com/dyhkwong/Exclave |
|