Hi Binhex, I'm having a bit of difficulty using wireguard (with mullvad). I've managed to get the container working with openvpn by following this post:
But I've had no success when I switch from openvpn to wireguard. So far I've tried the following:
Enable privileged, change 'VPN_CLIENT' to 'wireguard', and append extra parameter
--sysctl="net.ipv4.conf.all.src_valid_mark=1"
Generate and copy my wireguard configuration file to /wireguard/, which I rename to 'wg0.conf' (although I doubt that matters). I implemented some of the suggestions you made in earlier posts, so my conf file looks something like
[Interface]
PrivateKey = <private key>
Address = x.x.x.x/32,xxxx:xxxx:xxxx:xxxx::x:xxxx/128
[Peer]
PublicKey = <public key>
AllowedIPs = 0.0.0.0/0
Endpoint = y.y.y.y:zzzzz
Since I'm using wireguard, I shouldn't need the openvpn files. However, if I remove the files in /openvpn/, the container almost immediately fails:
2020-10-20 21:49:51.578271 [crit] No OpenVPN config file located in /config/openvpn/ (ovpn extension), please download from your VPN provider and then restart this container, exiting...
If I include the openvpn config files, the container starts successfully. However, I can easily verify (by using https://ipleak.net/ and setting the wireguard/openvpn configs to different regions) that the container is just using openvpn, not wireguard.
Is there something else I can do to force the container to use wireguard instead?