在IPv6 Only的环境下使用cloudflared

在IPv6 Only的环境下使用cloudflared

· json · rss
Subscribe:

About

主要是cloudflare的这个agent会优先使用ipv4去连接,并不会使用ipv6,导致可能连不上cloudflare,但是Cloudflared的github貌似已经有人提了这个问题,说会添加自动切换,但是目前还是不会切换(摊手),解决倒是也很简单。

sudo systemctl edit --full cloudflared.service

编辑添加 --edge-ip-version 6

ExecStart=/usr/bin/cloudflared --edge-ip-version 6 --no-autoupdate tunnel run....

重启

sudo systemctl restart cloudflared

接下来看一下status已经使用ipv6连接了

...event=0 ip=2606:4700:a0::9 location=hkg01 protocol=quic