Open ruippeixotog opened 3 years ago
I'm facing the same issue, did you find any solution?
Unfortunately not, I've made no progress so far. Documentation seems to assume that all traffic is routed through the VPN by default, but I can't get it to work even with the default config. Maybe one of the maintainers can help with this?
I tried adding this to /etc/docker/daemon.json
file:
{ "iptables": true }
and it worked.
That didn't work for me unfortunately and it's surprising that it worked for you, given that iptables should be true by default. Can you share the exact config you used (minus public IPs and other sensitive info)?
@ruippeixotog If you are running on this on GCP or other cloud services make sure your VM has "IP Forwarding" enabled.
@batesenergy I was trying to run it in my own server, which used to run OpenVPN outside Docker without any problems. In any case, I ended up moving to WireGuard, which is simpler and has a much better supported Docker image.
I want to migrate my existing OpenVPN install to use this Docker container but I'm having some trouble finding the right settings so that it can route all Internet traffic through the VPN.
I'm trying to set an OpenVPN instance with the following setup:
In order to build a config for this, I configuring the following service in my docker-compose.yml file:
And I ran the following commands:
I'm now trying to connect to connect with Tunnelblick. If I connect with the "Route all IPv4 traffic through the VPN" option I can't reach either 192.168.9.0/24 addresses nor Internet addresses. If I connect without this option I can access 192.168.9.0/24 addresses.
I'm not an expert in networking or OpenVPN configuration, so I may be missing something obvious. What am I doing wrong?