alturismo / ovpn_privoxy

4 stars 8 forks source link

Mullvad VPN #6

Open Hackermanswitch opened 1 year ago

Hackermanswitch commented 1 year ago

Hi I wanted to use the Mullvad VPN but I need more then the .ovpn file to set it up. for example there are the following files needed for it to work: mullvad_nl_ams.ovpn mullvad_userpass.txt mullvad_ca.crt

any idea how to add the certificate?

Arokan13 commented 9 months ago
  1. You mount your config folder to /app/ovpn/config and /config
  2. copy your mullvad_userpass.txt to logindata.conf
  3. Mullvad provides a "update-resolv-conf", that needs to be mounted to /etc/openvpn/update-resolv-conf
  4. If docker causes your trouble for not being able to set a proper ipv6, add/create /etc/docker/daemon.json
    {
    "experimental": true,
    "ipv6": true,
    "ip6tables": true,
    "fixed-cidr-v6": "2001:db8:1::/64"
    }

    and sudo systemctl restart docker .

  5. If any further trouble arise, you'd have to adjust your ovpn file like this:
    auth-user-pass /config/logindata.conf
    ca /app/ovpn/config/mullvad_ca.crt
    #tun-ipv6
    script-security 2
    up "/bin/sh /etc/openvpn/update-resolv-conf"
    down "/bin/sh /etc/openvpn/update-resolv-conf"

Worked for me in a different container, so I copied all of it to this one and it works. I'm not quite sure which one is the one fixing the issue.