-
Notifications
You must be signed in to change notification settings - Fork 48
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
Enable support for link-local address #63
Comments
What does not work exactly? The incoming connections on your port?
|
I can't connect to the container. I'm using docker-ipv6nat with a PiHole. When I don't use the parameter I can connect just fine using the global unicast address. The container is also able to do its job as a dns server, and can always connect to the internet using ipv6. If I exec into the container, I can use
I haven't tried it. Is there a simple port forwarding I could try to make this easier? Are link local address supposed to work, or do you think they are different somehow? |
Ok, I got a simple repro you can try: docker run --rm -d -p 8080:80 --name webtest busybox sh -c 'echo "Hello world!" > index.html && httpd -f -v'
IP6=`ip a show eth0 scope link | grep fe80:: | awk '{print $2}' | cut -d'/' -f1`
echo This does not work:
echo IP is $IP6
curl http://[$IP6]:8080
echo This works:
IP6=`ip a show eth0 scope global dynamic mngtmpaddr | grep inet6 | head -n 1 | awk '{print $2}' | cut -d'/' -f1`
echo IP is $IP6
curl http://[$IP6]:8080 The curl statement also works for me when calling a global unicast address from a different machine. And fails on the same host, or from a different machine, when calling a link local address. |
I saw, according to the docs that docker-ipv6nat
But I can't get it to work with link-local addresses. It binds and works fine with global unicast addresses, but not unique local ones. I tried setting
com.docker.network.bridge.host_binding_ipv6
to a link-local address, and the logs even show it correctly, but it does not work.This is what the logs showed (addresses and identifiers were changed on purpose for anonimity):
Do you there could be a way to implement it?
The text was updated successfully, but these errors were encountered: