快速地使用Docker搭建FlyWall服务(Vless+Trojan+Naiveproxy+Hysteria+WireGuard+SS2022)
安装docker+docker-compose
XML/HTML代码
- curl -sSL https://get.docker.com/ | sh
- sudo curl -L https://github.com/docker/compose/releases/download/v2.27.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
- sudo chmod +x /usr/local/bin/docker-compose
- docker-compose --version
开启bbr
XML/HTML代码
- echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
- echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
- sysctl -p
下载源码
XML/HTML代码
- git clone https://github.com/akvsdk/FlyWall.git && cd FlyWall
- ./OneKeySet.sh
一键脚本设置
只需输入域名即可(eg: hello.com)
同时会保存信息到info.txt中方便查阅
手动设置
1、在./caddy/Caddyfile中修改Caddy修改域名和Naiveproxy的密码
2、在./xray/config.json中修改VMESS的UUID,还有修改Trojan的密码
3、在./xray/config.json中修改证书路径里面的域名(共4个地方)
4、在./hysteria/config.json中修改Hysteria修改域名和Hysteria的密码
5、在./docker-compose.yml中修改wg-easy的UI登录PASSWORD
构建
XML/HTML代码
- docker-compose up -d
XML/HTML代码
- docker-compose down && ./OneKeySet.sh && docker-compose up -d
端口开放443,80,81,4443,51820,51821
其他脚本
XML/HTML代码
- # 安装naive命令
- curl https://raw.githubusercontent.com/imajeason/nas_tools/main/NaiveProxy/do.sh | bash
- # 执行naive
- naive
NaiveProxy 一键配置脚本
XML/HTML代码
- wget -N --no-check-certificate https://raw.githubusercontent.com/blog-misaka/naiveproxy-script/main/naiveproxy.sh && bash naiveproxy.sh
XML/HTML代码
- wget -N --no-check-certificate https://raw.githubusercontent.com/Misaka-blog/naiveproxy-script/main/naiveproxy.sh && bash naiveproxy.sh
具体根据实际修改参数。