warp官方cli客户端支持socks5模式,但是兼容不太行基本用不了,也没有ARM客户端,不太好用
以下应该是OK的,完成后就有了http://127.0.0.1:2333
和socks5://127.0.0.1:2333
端口可以自定义,也可以把那些连接改成arm的,就支持arm了
"
docker run -dit -p 127.0.0.1:2333:2333 --name wgcf --cap-add NET_ADMIN --sysctl net.ipv6.conf.all.disable_ipv6=0 --sysctl net.ipv4.conf.all.src_valid_mark=1 ubuntu:focal docker exec -it wgcf bash -c " apt update apt install -y wireguard wget curl iproute2 resolvconf wget https://github.com/ViRb3/wgcf/releases/download/v2.2.2/wgcf_2.2.2_linux_amd64 -O /usr/bin/wgcf chmod +x /usr/bin/wgcf echo|wgcf register wgcf generate mkdir -p /etc/wireguard cp -f wgcf-profile.conf /etc/wireguard/wgcf.conf #sed -i 's/engage.cloudflareclient.com/162.159.192.1/' /etc/wireguard/wgcf.conf wget https://github.com/P3TERX/wireguard-go-builder/releases/download/0.0.20201118/wireguard-go-linux-amd64.tar.gz tar zxf wireguard-go-linux-amd64.tar.gz mv wireguard-go /usr/bin rm -f wireguard-go-linux-amd64.tar.gz wget https://github.com/ginuerzh/gost/releases/download/v2.11.2/gost-linux-amd64-2.11.2.gz gunzip gost-linux-amd64-2.11.2.gz mv gost-linux-amd64-2.11.2 /usr/bin/gost chmod +x /usr/bin/gost" docker exec -it wgcf bash -c "ipv4=`ip route get 1.1.1.1 2>/dev/null | grep -oP 'src \K\S+'` ip -4 rule add from $ipv4 lookup main prio 18 wg-quick up wgcf nohup /usr/bin/gost -L=:2333 2>&1 & #nohup /usr/bin/gost -L=:admin:123456@2333 2>&1 &"