-
Notifications
You must be signed in to change notification settings - Fork 881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPv6 security should match IPv4 #2557
Comments
I think this should be fixed by #2572 (not yet in a release, but will probably included as an experimental feature for docker 20.10) |
As far as I can tell, that MR implements IPv6 NAT as an optional mode of operation for IPv6. This is a completely different matter. Please reopen. |
Ah, right, so the intent here is to not use IPv6 NAT (the default, routable IPv6 addresses for containers), but still block access? I can reopen, but I think generally firewall rules to block access are out of scope for the rules that the daemon sets up. /cc @arkodg |
I don't really see how that is out of scope. NAT indirectly forces a default-block policy in a sense. The same can be achieved with regular routing and a stateful filter. And if Docker doesn't handle this, the whole "port publishing" functionality doesn't make much sense. |
Thanks for reporting! As of v27.0, With With Based on your original post @grigorig, I assume what you were asking for is that new Since this repo is now defunct, and not actively watched by maintainers, let me close this issue. If you think these new 'gateway modes' don't match what you need, please ping me and I'll reopen / move this issue to https://github.com/moby/moby. |
Docker abuses IPv4 NAT to create a private network for containers. Ports opened by containers are by default not available from the public internet and need to be mapped/forwarded explicitly.
When IPv6 is enabled for Docker, all of that goes out of the window and what's worse is that there is NO indication about this at all to the user.
Docker should use a stateful packet filter to mirror a similar setup with IPv6, i.e.:
Of course there are some limitations as well: as there is no NAT, there is no way to remap ports. But that should not a serious issue in practice because after all every container gets its own address.
The text was updated successfully, but these errors were encountered: