Setting up OpenVPN on a Windows PC

The wherever SIM offers a free OpenVPN gateway. This allows you to easily and securely access all your devices equipped with the wherever SIM connect+ card via a single VPN tunnel.

Setting up the OpenVPN Client on Windows

Settings of the "Service Policy" in the portal

Settings are required in the service policy in your online portal. The necessary steps are explained here.

Create a new user in the portal

Create a separate user in the customer portal for each user who is to set up a VPN tunnel. You can create the new user in the portal by clicking on your user name in the top right-hand corner and then on "Company settings" by inviting users there. Assign the role "Observer". The VPN tunnel will later be set up with the e-mail address and password of the newly created user. When the VPN tunnel is set up, we assign each user an IP address that never changes. 

Download and install the OpenVPN Software

Download the installation files at OpenVPN Downloads and follow the installation instructions on your Windows PC.


Download and install the OpenVPN config file
Log in to the wherever SIM portal with your user and select the menu "Integrations". There, click on "Instructions" under OpenVPN. Here you can now download a pre-configured configuration file, the file name is client.ovpn (please make sure that you download the file client.ovpn and not the file client.conf, client.conf is for Linux).

Save this file on your PC in this folder: C:\Users\<Ihr Name>\OpenVPN\config

Create the necessary file for authentication

In the next step, you must create a file credentials.txt in the folder C:\Users\<your name>\OpenVPN\config. The content of the file credentials.txt must only consist of 2 lines. 

In the first line write the user name and in the second line the password:

username@domain.com
YourPassword

 

ATTENTION: If you have activated the option under Windows that file name extensions are not displayed, then you must make sure that the file is not called credentials.txt.txt. The second ".txt" would be hidden for you if necessary.

Adjusting the file path in the configuration file to credentials.txt

Locate the auth-user-pass line in the client.ovpn file and copy the file path to credentials.txt into it. The entry should look like this:

auth-user-pass "C:\\Users\\<your user>\\OpenVPN\\config\\credentials.txt"

If you do not want to save your login information, you can also enter it again each time you set up the VPN tunnel. In this case, comment out the above line with ";".

Starting and monitoring of your OpenVPN connection

You can start the OpenVPN GUI and the VPN tunnel to the client via the icon in the notification area of the taskbar.

To check the OpenVPN connection, go to \OpenVPN\log\client.txt. 

Testing of your data connection

After the VPN tunnel has been successfully set up, you can connect directly to the private IP addresses of your mobile endpoints. To test the connection, select one of the endpoints (mobile end device) that is currently in an active data session (marked ONLINE in the wherever SIM portal) and get the IP address from the details area.

Use the command line (cmd programme under Windows) to ping the IP address of the selected terminal:

C:\>ping 10.193.104.2

Pinging 10.193.104.2 with 32 bytes of data:

Reply from 10.193.104.2: bytes=32 time=1158ms TTL=62

Reply from 10.193.104.2: bytes=32 time=391ms TTL=62

Reply from 10.193.104.2: bytes=32 time=413ms TTL=62

Reply from 10.193.104.2: bytes=32 time=1307ms TTL=62

For this to work, an IP stack must be running on your terminal that responds to the ICMP echo request. This may not be the case with embedded devices on which the IP stack functionality is only partially implemented.