Quantcast
Channel: How make openvpn work with docker - Stack Overflow
Browsing all 10 articles
Browse latest View live

Answer by alexanderlukanin13 for How make openvpn work with docker

Based on answer from Anas El Barkani, here's a complete step-by-step example using PostgreSQL. While VPN is not connected, create a permanent docker network: docker network create my-network --subnet...

View Article



Answer by geoffreybr for How make openvpn work with docker

Maybe one way to do it is to add all routes excluding 172.16.0.0/12 to route through VPN so we are sure everything going out is properly handled: sudo ip route add 192.0.0.0/2 via $route_vpn_gateway...

View Article

Answer by SecurityGuy for How make openvpn work with docker

Some additional context here: the 0.0.0.0 and 128.0.0.0 routes are only created if the OpenVPN server (aka Access Server) is configured to push routes to send all the endpoint's Internet traffic via...

View Article

Answer by Anas El Barkani for How make openvpn work with docker

You can also get docker-compose working if you define the subnet CIDR in your docker compose file: networks: your-network: ipam: config: - subnet: 172.16.238.0/24 gateway: 172.16.238.1 Another option:...

View Article

Answer by jb. for How make openvpn work with docker

Solution (TL;DR;) Create /etc/openvpn/fix-routes.sh script with following contents: #!/bin/sh echo "Adding default route to $route_vpn_gateway with /0 mask..." ip route add default via...

View Article


How make openvpn work with docker

I have recently installed privacy vpn, and it turns out that enabled openvpn breaks docker. When I try to run docker-compose up i get following error ERROR: could not find an available,...

View Article

Answer by lucidyan for How make openvpn work with docker

Disclaimer:This solution originally designed for next configuration:Ubuntu 18.04OpenVPN 2.4.4Docker-CE 19.03.5Docker-Compose 1.24.0Bridge IPV4 networksDocker-Swarm not usedand may differ for other...

View Article

Answer by Adam Shand for How make openvpn work with docker

The default routes which cause the problem are pushed to the OpenVPN client by the OpenVPN server.Rather then create a script to delete the routes you can simply stop the problematic routes from being...

View Article


Answer by Sergey Alaev for How make openvpn work with docker

What worked for me:After seeingCreating network "airflow_default" with the default driverERROR: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the...

View Article


Answer by Savostyanov Konstantin for How make openvpn work with docker

Based on the answer from alexanderlukanin13. It's worked for me for the docker-compose file's version: "3.8".I added a usage pre-existing network from the documentation.Turn off the OpenVPN...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images