-
Notifications
You must be signed in to change notification settings - Fork 397
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
Access own host #101
Comments
Hello, I actually encountered the same problem, ufw block every outgoing connection coming from a docker container and going to the same host. Is there a quick solution to this problem ? |
You can add your host e.g. before COMMIT # BEGIN UFW AND DOCKER or somewhere or all the local network if you wish (less secure) like:
I did this way. |
Thank you ;) |
@romikforest it works. thanks. |
question, what makes this less secure? |
You have to trust your local network, it will have full access. So it's better to add a specific range of IP addresses that is used in your docker, for example, not all the local network. |
Oh, got it. |
Hi. It works almost like I want and as you said. I have only two issues. May be something else has changed in iptables.
I can't access the host itself from the docker container. E.g. I can access it from other computer port 80 and 443. Also docker containers can access any address on the internet. But it's not possible to access the host from the docker containers by its ip or domain name (while ping works).
Also I can't access ipv6 network (from the host shell itself) while bought ipv6 support from my provider and seems like the host has ipv6 address and it isn't blocked anywhere. (May be some issue with iptables or provider's problem not related to ufw-docker. It would be nice to confirm if it's ok for others).
The text was updated successfully, but these errors were encountered: