Download all the available linux configurations for your cyberghost account using the following links. These links are good for a premium account using openvpn UDP. If you want to use a different protocol, are not premium or if you want an up-to-date list, please follow the guide in the "Method" section.
You must be logged in to download these links !
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=RO&os=linux&url=4-ro.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=DE&os=linux&url=1-de.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=NO&os=linux&url=1-no.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=FI&os=linux&url=1-fi.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=CZ&os=linux&url=4-cz.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=CH&os=linux&url=1-ch.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=DK&os=linux&url=1-dk.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=SE&os=linux&url=1-se.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=US&os=linux&url=1-us.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=GB&os=linux&url=1-gb.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=NL&os=linux&url=5-nl.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=CA&os=linux&url=1-ca.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=LT&os=linux&url=1-lt.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=HU&os=linux&url=1-hu.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=IT&os=linux&url=1-it.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=ES&os=linux&url=1-es.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=IL&os=linux&url=1-il.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=LU&os=linux&url=1-lu.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=BE&os=linux&url=1-be.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=IE&os=linux&url=1-ie.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=FR&os=linux&url=1-fr.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=AT&os=linux&url=1-at.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=UA&os=linux&url=1-ua.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=AU&os=linux&url=1-au.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=JP&os=linux&url=1-jp.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=HK&os=linux&url=1-hk.cg-dialup.net
https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country=SG&os=linux&url=1-sg.cg-dialup.net
-
Connect to your account at https://account.cyberghostvpn.com/
-
Go to https://account.cyberghostvpn.com/en_us/proxy/servers/groupedbycountry?protocol=openvpn
You can set protocol to the following :
- OpenVPN UDP : openvpn
- OpenVPN TCP : openvpn_tcp
- IPSEC / L2TP : l2tp
- PPTP : pptp
-
Get the content and save it as 'cyberghost.json'
-
Open a python console and paste the following code :
# coding: utf-8
import json
with open('cyberghost.json') as f:
countries = json.load(f)['countries']
def best_server(servers):
premium = next((s for s in servers if s['name'] == 'Premium Servers'), None)
return premium or servers[0]
servers = [{'country': country['countrycode'], 'url': best_server(country['servers'])['url']} for country in countries]
api_urls = ['https://api2.cyberghostvpn.com/cg/serverconfigurations/download/4?country={}&os=linux&url={}'.format(server['country'], server['url']) for server in servers]
with open('cyberghost_urls.txt', 'w') as f:
f.write('\n'.join(api_urls))
@jojo2massol Sorry, I'm not using Cyberghost anymore. These instructions are probably out of date.