You can choose to connect to virtual machines in scenarios by using VPN. There are two alternatives: either DOWNLOAD CERTIFICATE or DOWNLOAD VPN CLIENT:
Connecting via VPN Client
To connect to the virtual machines in a scenario using the CYBER RANGES VPN Client, click on DOWNLOAD VPN CLIENT. You will be presented with a list of clients that are tailored to the specific operating system you are using.
Select the client that matches your operating system (currently VPN client is stable for Windows OS only) and follow the installation steps. Once you have completed the installation, open the VPN client.
Please note that, the default domain that is picked by this client is cyberranges.com and should be changed accordingly depending the deployment that you are working on.
Enter your username and password then click the LOGIN button.
Once you have logged in, click on CONNECT to finish your VPN connection
Note that if your account has MFA enabled, connect using the VPN Certificate method below.
Connecting via VPN Certificate
To connect via the VPN Certificate, click on DOWNLOAD CERTIFICATE. This will download a .ovpn file which you can use to connect to your VPN and access virtual machines present in scenarios. Save the file in a convenient location where you can easily access it.
Once the vpn file is downloaded, the first few line will resemble the below:
client
proto tcp
remote vpn.cyberranges.com
port 1192
cipher BF-CBC
dev tun
nobind
script-security 2
dhcp-option DNS 192.168.125.254
dhcp-option DNS 8.8.8.8
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
ns-cert-type server
...Edit the VPN config to:
client
proto tcp
remote vpn.cyberranges.com
port 1192
#cipher BF-CBC
providers legacy default
data-ciphers AES-256-GCM:AES-128-GCM:BF-CBC
dev tun
nobind
script-security 2
dhcp-option DNS 192.168.125.254
dhcp-option DNS 8.8.8.8
# up /etc/openvpn/update-resolv-conf
# down /etc/openvpn/update-resolv-conf
remote-cert-tls server
#ns-cert-type serverConnecting to VPN on Linux
To connect to the VPN using your downloaded certificate, ensure OpenVPN package is already installed.
Open a terminal and run the command:
sudo openvpn <path_to_your_downloaded_file>as follows:
Once you see the message Initialization Sequence Completed, you have successfully connected to the VPN and will be assigned a VPN IP address. A step-by-step video guide is available on the link: https://youtu.be/xkUZ8Cz4OZY.
Connecting to VPN on Windows
If you are using a Windows machine, you first need to download and install the OpenVPN community client. Depending on your version of Windows, download the appropriate installation file from the link: https://openvpn.net/community-downloads/. Once downloaded, proceed to install OpenVPN on your machine. Navigate to the start button, search for OpenVPN and run it as an administrator
Next, click on the show hidden icons arrow on the right of the taskbar and right-click on OpenVPN as shown below:
Now click on Import file. This will prompt you to browse to the location of your saved OpenVPN certificate file from CYBER RANGES. Once you are done uploading your certificate, right-click on OpenVPN again and click on Connect. You should see the following:
The last message Initialization Sequence Completed shows that you have successfully connected to the VPN. You can additionally see the VPN IP assigned to you. A step-by-step video guide on how to connect to VPN with Windows is available on the link: https://youtu.be/xkUZ8Cz4OZY.
Connecting to VPN on Mac OS
If you are using Mac OS, you can use Tunnelblick to connect to the CYBER RANGES VPN. To download Tunneblick, navigate to the website: https://tunnelblick.net/downloads.html, download a stable version, and install it on your machine. Once installed, open your launch pad and open Tunnelblick. Tunnelblick will open on your status bar at the top as follows:
Next, click on VPN Details and then the + button as shown below:
This will show you a prompt of the different ways you can add your downloaded VPN certificate. One way to do this is by dragging your certificate file downloaded from CYBER RANGES into this window, which will display the following prompt:
Install as per your preferences. Now under your configurations, you will see your newly added VPN configuration. To connect to the VPN, click on Tunnelblick in the status bar once again and click on Connect as follows:
This will take a few seconds before you successfully connect and are assigned a VPN certificate. You can confirm the status of your running VPN by clicking on VPN Details.
Related to