xray_docker icon indicating copy to clipboard operation
xray_docker copied to clipboard

如何设置IPV6

Open gouhongfei258 opened this issue 1 year ago • 5 comments

gouhongfei258 avatar Dec 24 '24 06:12 gouhongfei258

后续我会看一下IPV6相关的事情哈

wulabing avatar Jan 07 '25 14:01 wulabing

希望尽快完善对IPV6的支持

pylist avatar Jan 14 '25 17:01 pylist

https://docs.docker.com/engine/daemon/ipv6/

经过测试发现是docker本身的配置问题,需要参考文档进行调整,设置完成后就可以支持IPV6了

wulabing avatar Jan 21 '25 13:01 wulabing

  1. 编辑或创建此文件:nano /etc/docker/daemon.json
  2. 确保文件中有以下内容: { "ipv6": true, "fixed-cidr-v6": "fd00::/80" }
  3. sudo systemctl restart docker 可以成功启用IPv6出入站。

Shawshank01 avatar May 19 '25 21:05 Shawshank01

  1. 编辑或创建此文件:nano /etc/docker/daemon.json
  2. 确保文件中有以下内容: { "ipv6": true, "fixed-cidr-v6": "fd00::/80" }
  3. sudo systemctl restart docker 可以成功启用IPv6出入站。

如果做完上面操作仍然不可用的,可以尝试多加入两行,开启 NAT 6 支持。我的服务器开启之后亲测可用了。

{
  "ipv6": true,
  "fixed-cidr-v6": "fd00::/80",
  "ip6tables": true,
  "experimental": true
}

来源&致谢:https://imciel.com/2021/03/31/config-docker-ipv6/

hjsjhn avatar Sep 29 '25 02:09 hjsjhn