Simple script that generates an OpenVPN configuration file for use with ProtonVPN.
There's no need to manually create a ProtonVPN account — the script leverages Proton's /credentialless
API to automatically generate a new one each time it runs.
# Generate new conf and credentials
./generate.sh [options]
# Connect to ProtonVPN
sudo openvpn --config proton.ovpn
# Check your ip address
curl ipinfo.io
Options | Description |
---|---|
-v |
Verbose mode. |
-vvv |
Very verbose mode (enables set -x for full debugging output). |
--no-ipv6 |
Explicitly disables IPv6 in the generated OpenVPN configuration. Required if IPv6 is disabled on your host. |
--no-dns-leak |
Add up/down scripts to avoid using your ISP's DNS servers (DNS queries go through the tunnel anyway). |