Skip to content
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

Make IPv6 SNAT rules match more of ULA range #217

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

eest
Copy link
Contributor

@eest eest commented Nov 11, 2024

When creating containers via compose using a network with "enable_ipv6: true" the IPv6 network will be selected out of the ULA range: https://docs.docker.com/engine/daemon/ipv6/#dynamic-ipv6-subnet-allocation https://en.wikipedia.org/wiki/Unique_local_address

This means the fd0c::/16 match is not wide enough. As an example I got the address "Subnet": "fd6b:795b:49eb::/64" in a lab. Just be prepred to NAT the whole fd00::/8 instead.

When creating containers via compose using a network with "enable_ipv6: true"
the IPv6 network will be selected out of the ULA range:
https://docs.docker.com/engine/daemon/ipv6/#dynamic-ipv6-subnet-allocation
https://en.wikipedia.org/wiki/Unique_local_address

This means the fd0c::/16 match is not wide enough. As an example I got
the address `"Subnet": "fd6b:795b:49eb::/64"` in a lab. Just be prepred
to NAT the whole fd00::/8 instead.
Copy link
Contributor

@mikaelfrykholm mikaelfrykholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@mickenordin mickenordin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@eest eest merged commit f565faf into testing Nov 13, 2024
2 checks passed
@eest eest deleted the patlu-dockerhost2-ipv6-nat branch November 13, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants