Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

Im trying to setup a firewall for IPv6 between two networks using Docker (I know there are other technologies to do this, but I want to use docker). The main problem that I ran into is that I can not find a way to enable the IPv6 forwarding inside the firewall container.

From the dockerd reference[1] I know that there are options to enable this for IPv4, but there are none for IPv6. Is this feature simply not supported yet, or am I doing something wrong?

My daemon.json looks like this:

"ipv6": true, "fixed-cidr-v6": "2001:db8:1::/64", "ip-forward": true

[1] https://docs.docker.com/engine/reference/commandline/dockerd/

This worked for me after I modified my /etc/docker/daemon.json to contain experimental and ip6tables , like so:

"ipv6": true, "experimental": true, "ip6tables": true, "fixed-cidr-v6": "fd07:a:b:c::/64",

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .