Fedora-Fr - Communauté francophone Fedora - Linux

Communauté francophone des utilisateurs de la distribution Linux Fedora.

  

Dernière news : Représenter Fedora au Capitole du Libre 2019

#1 16/09/2019 20:36:34

barney
Membre
Lieu : 74 France & Valais Suisse
Inscription : 06/05/2015
Messages : 71

Comment configurer OpenVPN avec CyberGhost

Parce que tout récemment, j'ai eu une relance sur cette question en "[F29] Réseaux - Comment configurer OpenVPN avec CyberGhost"

Je réplique ma réponse qui fonctionne en [f30]
J'ai donc réglé la question en procédant comme suit :

1. J'ai ouvert un compte CyberGhost (avec abonnement)
2. J'ai téléchargé la toute nouvelle appli "cyberghostvpn-fedora-30-1.2.0.zip" et je l'ai installé :

rbn\ ? # cd /home/rbn/cyberghostvpn-fedora-30-1.2.0
rbn\ ? # sudo bash install.sh
[sudo] Mot de passe de rbn : 

CyberGhost Installer ...

Check if "openvpn" package is already installed ... Yes, skipping ...
Continue ...
Installing application ...
Create symlink ...
Setup account ...
Enter CyberGhost username and press [ENTER]: userNNNN
Enter CyberGhost password and press [ENTER]: //xxx//
Perform authentication ...
Creating a new device ...
Downloading configuration ... 
Installing configuration ... 
Removing unused files ...
Install completed ...

3. Ensuite pour me connecter sur un pays :

Please run the following command to connect to VPN:

	sudo cyberghostvpn --country-code FR --connect

rbn\ ? # sudo cyberghostvpn --country-code FR --connect
[sudo] Mot de passe de rbn : 
Prepare OpenVPN connection ...
Select server ... paris-s34-i07
Connecting ... 
VPN connection estabilished.

###Pour lister les codes pays :
cyberghostvpn --country-code

Pour plus de détail, voici l'aide (readme.txt) :

[CyberGhost Linux Application]
    Version: 1.2.0

[Install]
    - Run 'install.sh' script from the downloaded app's folder via "sudo bash install.sh" command
    
[Uninstall]
    - Run command: sudo cyberghostvpn --uninstall
    
[Setup a new account/device]
    - Run command: sudo cyberghostvpn --setup   
    
[Using Application]
    - To view help type: "cyberghostvpn" or "cyberghostvpn --help":
                Cyberghost - 1.2.0
                Available arguments:
                  SERVER TYPES
                    --server-type <serverType>    : Connect to specified server type. Available types: traffic, streaming and torrent. Default value: traffic.
                    --traffic                     : Show only traffic countries.
                    --streaming <serviceName>     : Get streaming service.
                    --torrent                     : Show only torrent countries.
                  OTHER COMMANDS
                    --country-code <countryCode>  : Connect a specified country. If argument city is not set will be connected to random city from chosen country.
                    --city <cityName>             : Connect a specified city from a country.
                    --server <serverName>         : Connect to a specified server.
                    --connect                     : Prepare a new VPN connection.
                    --status                      : Check if we have VPN connection opened.
                    --stop                        : Terminate all VPN connection.
    [Using Services]
        The default service is: TRAFFIC
        NOTE: all string which contains spaces are written between simple or double quotes
        
        [Traffic]
            - connect to traffic servers
            - Examples:
                [List]
                    - List all countries type: cyberghostvpn --country-code
                    - List a city for a specified country type: cyberghostvpn --country-code us
                    - List all servers for a specified city type:
                        - cyberghostvpn --country-code us --city miami
                        - cyberghostvpn --country-code us --city 'new york'
                [Connect]
                    - Connect to a random city for a specified country type: cyberghostvpn --country-code us --connect
                    - Connect to a random server for a specified city type: cyberghostvpn --country-code us --city 'new york' --connect
                    - Connect to a specified server type:
                        - sudo cyberghostvpn --country-code us --city 'new york' --server newyork-s23-i12 --connect
                        - sudo cyberghostvpn --server newyork-s23-i12 --connect
        [Streaming]
            - connect to streaming servers
            - Examples:
                [List]
                    - List all streaming services and countries type: cyberghostvpn --streaming --country-code
                    - List a specified streaming service for all countries type: cyberghostvpn --streaming netflix --country-code
                    - List all streaming services for a specified country type: cyberghostvpn --streaming  --country-code us
                    - List all servers for a specified city: cyberghostvpn.py --streaming netflix --country-code us --city atlanta
                [Connect]
                    - Connect to a random city type: sudo cyberghostvpn --streaming netflix --country-code us --connect
                    - Connect to a random server for a specified city type: sudo cyberghostvpn --streaming netflix --country-code us --city atlanta --connect
                    - Connect to a specified server type: sudo cyberghostvpn --streaming netflix --country-code us --city atlanta --server atlanta-s01-i01 --connect
        [Torrent]
            - connect to torrent servers
            - Examples:
                [List]
                    - List all countries type: cyberghostvpn --torrent --country-code
                    - List a city for a specified country type:
                        - cyberghostvpn --torrent --country-code fr
                    - List all servers for a specified city type:
                        - cyberghostvpn --torrent --country-code fr --city paris
                [Connect]
                    - Connect to a random city for a specified country type: sudo cyberghostvpn --torrent --country-code fr --connect
                    - Connect to a random server for a specified city type: sudo cyberghostvpn --torrent --country-code fr --city paris --connect
                    - Connect to a specified server type:
                        - sudo cyberghostvpn --torrent --country-code fr --city paris --server paris-s01-i01 --connect
                        - sudo cyberghostvpn --server paris-s01-i01 --connect
    - To connect to a specified country/city/server use "--connect" parameter
    - To check OpenVPN status type "cyberghostvpn --status"
    - To close all OpenVPN connections type "cyberghostvpn --stop"

Voili, voila !!!
A+ Cordialement

Hors ligne

Pied de page des forums