Skip to content

Instantly share code, notes, and snippets.

@riordant
Created March 6, 2024 11:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riordant/07133bd00c68319d9fb1840ea464710a to your computer and use it in GitHub Desktop.
Save riordant/07133bd00c68319d9fb1840ea464710a to your computer and use it in GitHub Desktop.
Hola Premium - VPN Client - Linux (ipsec)
# 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