-
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
ip6tables error #34
Comments
Hi @bstegmaier75, thanks for reporting. I'm aware of the issue (see discussion at #33) and working on a fix. I'll leave this bug open until it's fixed. |
OK, sorry, didn't read #33 until the end... |
Yeah, sorry, #33 was closed prematurely 😉 |
@bstegmaier75 could you pull the latest image and try again? Thanks! |
Seems to work fine now, thanks! It doesn't work to connect to the webserver, but from what I see IPv6 config of my local interfaces seems to be completely broken (I tried various things)... I have to fix that first. That's what has been generated for a single port 8000:80 mapping:
|
Reboot seems to have fixed IPv6 config for all interfaces. I am no expert on nftables and I still have find out yet how to setup the NAT rules manually, but there is one thing I am not sure about: In several places there is something like that:
Interesting is "... meta l4proto tcp ip6 saddr fd01::2 ..." In DOCKER chain there is
Here there is "... meta l4proto tcp tcp dport 8000 ..." instead of tcp ip6 Might that be a problem? |
I don't think that's the problem, those are matches and they're split up a bit differently:
What's the output of |
ip6tables-save on host:
Looks pretty much the same as the IPv4 stuff, as far as I can see. Route should be also OK:
|
Yeah, this looks OK. Are you sure the problem is with docker-ipv6nat or could it be something else in your IPv6 setup? Was everything working properly before you upgraded to buster? |
No, not sure that it is with ipv6nat. I checked the counters of the various rules and they don't change when I try to connect, so it seems as if I don't even reach the host and I probably have some problem with my IPv6 setup. Just to be sure: I have my router configured to announce a fd00:: ULA to my local network and the docker network to be fd01::. That's how it is supposed to be? |
I'm not familiar with a setup like that, but it should be good as long as the ULA prefixes are different. I (and most users) have a publicly available IPv6 address on a server and use a ULA for the Docker with NAT. |
Try to get basic IPv6 connectivity working first, can you ping6 from the host? I'll close the issue now, since the original error was resolved. I've got confirmation in #33 that everything is working now with buster/nftables. Feel free to continue discussion here to get your setup working. |
Silly me. Thanks for the support! |
Great! Have a good day. |
I tried to use ipv6nat with docker-ce 18.09.6
3-0debian-buster on a current Debian Testing.A sample nginx container is running on an IPv6 enabled network configured as fd01::/64.
When I start ipv6nat (using docker-compose up) I get the following error:
dmesg shows:
I am running nftables on the host machine.
Stock docker IPv4 NAT works fine.
The text was updated successfully, but these errors were encountered: