docker-mac-network
docker-mac-network copied to clipboard
openvpn:latest image doesn't work with client config
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.
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
adding comp-lzo no
to docker-for-mac.ovpn
fix this issue