-
Notifications
You must be signed in to change notification settings - Fork 49
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
Internal network rules for IPv6 not working? #58
Comments
Huh, no one has this problem as well? |
@bephinix, do you have an idea? |
@chris42 Can you post your output for I am running Docker-IPv6NAT Version 0.4.2 and created an internal network: sudo docker network create \
-d bridge \
--ipv6 \
--subnet 172.30.123.0/24 \
--subnet fddd:0:0:123::/64 \
--internal \
-o "com.docker.network.bridge.enable_icc=true" \
-o "com.docker.network.bridge.enable_ip_masquerade=false" \
-o "com.docker.network.bridge.name=dckrTest" \
dckrTest IPv4 Tables Docker
IPv6 Tables Docker
|
if network.internal {
return &Ruleset{
// internal: drop traffic to docker network from foreign subnet
// notice: rule is different from IPv4 counterpart because NDP should not be blocked
NewPrependRule(TableFilter, ChainDockerIsolation1,
"!", "-s", network.subnet.String(),
"-o", network.bridge,
"-j", "DROP"),
// internal: drop traffic from docker network to foreign subnet
// notice: rule is different from IPv4 counterpart because NDP should not be blocked
NewPrependRule(TableFilter, ChainDockerIsolation1,
"!", "-d", network.subnet.String(),
"-i", network.bridge,
"-j", "DROP"),
// ICC
NewRule(TableFilter, ChainForward,
"-i", network.bridge,
"-o", network.bridge,
"-j", iccAction),
}
} Update: This difference is intended, because we should not block NDP traffic. |
Ok, -nvL shows something there.
ipv6:
Ah, you are blocking the interface, not the iprange as it is done in ipv4?! |
@chris42 Correct. You cannot use IPv6 subnets, because this will block NDP and link local address which leads to a non functional network. |
Thanks for clearing that up @bephinix! I guess this one can be closed as it's functioning as intended? |
@robbertkl That's correct. 🚀 |
Ok, Thanks! |
Hi there,
i just moved a few container into a new internal network (created with --internal) and would have expected to see the isolation rules to be created analog to IPv4
IPv4
However the ip6tables show no such rule?
IPv6
The text was updated successfully, but these errors were encountered: