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
Possible to prevent internet access if vpn goes down? #4
Comments
Good idea. I've added an
If you test it out before I have a chance, please let me know your results. |
Would you just pass the flag during the docker run command?
|
Yes as an argument after the container you're running, IE:
Alternatively, you can connect to a running container, with
The final command will just have it show the updated iptables rules in the container, it's not needed. |
I got around to testing it this weekend, and it reaches the "works for me" milestone. I'm going to close this issue, let me know if you have problems. Thanks. |
How would you test this? I tried |
It was more for VPN disconnection issues. The
If you wish to do further testing, you can start the container, without starting the VPN, but with the firewall running with the following:
Which will allow you to test the container with the firewall but without the VPN connected. The state you were asking about. |
OK. The testing worked to my satisfaction. For anyone following along, I specifically wanted to test if a container using the The results are probably obvious, but to test I ran the following commands:
The moral of the story is use |
I'd like to prevent linked containers from using the internet if the vpn tunnel goes down. Is this possible?
The text was updated successfully, but these errors were encountered: