Created
March 6, 2024 11:59
-
-
Save riordant/07133bd00c68319d9fb1840ea464710a to your computer and use it in GitHub Desktop.
Hola Premium - VPN Client - Linux (ipsec)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# prerequisites: | |
# - log in with premium account | |
# - go to https://hola.org/plus_setup?platform=router | |
# - grab: USERNAME, PASSWORD and LOCATION_ID (eg. "us", "uk" etc.) | |
# in /etc/ipsec.secrets: | |
$USERNAME : EAP "$PASSWORD" | |
# in ipsec.conf: | |
conn Hola | |
keyexchange=ikev2 | |
dpdaction=clear | |
dpddelay=300s | |
eap_identity=$USERNAME | |
leftauth=eap-mschapv2 | |
left=%defaultroute | |
leftsourceip=%config | |
right=$LOCATION_ID.vpn.h-vpn.org | |
rightauth=pubkey | |
rightsubnet=0.0.0.0/0 | |
rightid="CN=*.vpn.hola.org" | |
type=tunnel | |
auto=add | |
# restart ipsec: | |
sudo ipsec restart | |
# start VPN: | |
sudo ipsec up Hola | |
# stop VPN: | |
sudo ipsec down Hola |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment