Skip to content

Instantly share code, notes, and snippets.

@Betree
Last active July 22, 2023 18:43
Show Gist options
  • Save Betree/a42ec05d12a787e48644a518151e4948 to your computer and use it in GitHub Desktop.
Save Betree/a42ec05d12a787e48644a518151e4948 to your computer and use it in GitHub Desktop.
Cyberghost linux VPN configs urls for all countries

Cyberghost linux VPN configs urls for all countries

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 !

Urls (as of 2016-10-26)

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

Method

  1. Connect to your account at https://account.cyberghostvpn.com/

  2. 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
  3. Get the content and save it as 'cyberghost.json'

  4. 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
Copy link

The link doesn't seem to work anymore. Even connected to my account. Where did you get this link?

@Betree
Copy link
Author

Betree commented Mar 16, 2023

@jojo2massol Sorry, I'm not using Cyberghost anymore. These instructions are probably out of date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment