wojas / docker-mac-network

Access your Docker for Mac's internal networks from your macOS host machine
MIT License
216 stars 73 forks source link

openvpn:latest image doesn't work with client config #13

Open tomjakubowski opened 5 years ago

tomjakubowski commented 5 years ago

Since OpenVPN 2.4, the server has apparently gotten pickier about got compression configuration and the generated client config causes errors like this for me (Viscosity, OS X):

openvpn_1  | Mon Oct 15 02:59:03 2018 host/172.24.0.2:55030 Bad compression stub (swap) decompression header byte: 42
openvpn_1  | Mon Oct 15 02:59:13 2018 host/172.24.0.2:55030 Bad compression stub (swap) decompression header byte: 42
openvpn_1  | Mon Oct 15 02:59:23 2018 host/172.24.0.2:55030 Bad compression stub (swap) decompression header byte: 42
openvpn_1  | Mon Oct 15 02:59:33 2018 host/172.24.0.2:55030 Bad compression stub (swap) decompression header byte: 42
openvpn_1  | Mon Oct 15 02:59:43 2018 host/172.24.0.2:55030 Bad compression stub (swap) decompression header byte: 42
openvpn_1  | Mon Oct 15 02:59:53 2018 host/172.24.0.2:55030 Bad compression stub (swap) decompression header byte: 42

Pinning the image to kylemanna/openvpn:2.3 in docker-compose.yml resolved this issue. I tried my hand at fixing the generated client / server config, but I am a real novice with OpenVPN and didn't get anywhere.

tomjakubowski commented 5 years ago

A few relevant issues/PRs on the docker-openvpn repo:

https://github.com/kylemanna/docker-openvpn/pull/411 https://github.com/kylemanna/docker-openvpn/issues/381 https://github.com/kylemanna/docker-openvpn/issues/398

kesler-dev commented 5 years ago

adding comp-lzo no to docker-for-mac.ovpn fix this issue