部署wireguard vpn
(1)下载文件
wget https://vip.123pan.cn/1815238395/dockerimage/wireguard.tar && docker load -i wireguard.tar
(2)网络路由打通
brew install wireguard-go wireguard-tools
echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
sysctl -p
操作系统安全策略
iptables -t filter -P FORWARD ACCEPT
该部分仅登录用户可见
(3)关闭容器间互通防护
DOCKER-ISOLATION-STAGE-1
iptables -t filter -I DOCKER-ISOLATION-STAGE-1 1 -j ACCEPT
该部分仅登录用户可见