Subsections of Open VPN connection

Connect GL.iNet using OpenVPN client

Overview

In this article, you’ll learn how to set up an OpenVPN client on Gl.iNet and connect it to the Acreto ecosystem.

How to

Prerequisites

To connect GL.iNet router with Acreto Ecosystem, you will need:

  1. Existing Acreto Ecosystem, if you don’t have one learn how to create it.

  2. Access to Acreto Wedge.

  3. GL.inet router with OpenVPN client installed.

Download the VPN profile from Acreto

  1. Log in to the Acreto Portal.

  2. Choose your Ecosystem.

  3. Create a new VPN profile using tutorial or use the existing profile.

  4. Download the Acreto VPN profile GL.iNet - openvpn GL.iNet - openvpn

Setup OpenVPN client on GL.iNet

  1. Login to the GL.iNet routers Web Admin Panel.

  2. From the left sidebar, goto VPN » OpenVPN Client and click Add a New OpenVPN Configuration. GL.iNet - openvpn GL.iNet - openvpn

  3. Add a new OpenVPN configuration. GL.iNet - openvpn GL.iNet - openvpn

  4. Upload your VPN configuration file from Acreto. GL.iNet - openvpn GL.iNet - openvpn

  5. Enter a description for your VPN configuration file and then click Submit to finish the upload process. GL.iNet - openvpn GL.iNet - openvpn

  6. Click Connect to start the VPN connection. GL.iNet - openvpn GL.iNet - openvpn

  7. Once connected, the Disconnect button is shown on the screen along with the recieved IP address and Data sent and recieved information. GL.iNet - openvpn GL.iNet - openvpn

  8. At this point, the machine is connected to Acreto Ecosystem. You may confirm that by checking logs available in Acreto Acreto Portal > Logs > User and Things. GL.iNet - openvpn GL.iNet - openvpn

Android

Overview

This guide will help you to configure the Acreto Security connection on your Android device with the help of the OpenVPN app.

Android

Android doesn’t have built-in OpenVPN support. It is required to download OpenVPN app from Google Play store.

1. Go to the Google Play Store

OpenVPN config - Android - Play Store OpenVPN config - Android - Play Store

2. Search for the OpenVPN Connect application

OpenVPN config - Android - Play Store OpenVPN config - Android - Play Store

3. Install the OpenVPN Connect application

OpenVPN config - Android - Play Store OpenVPN config - Android - Play Store

4. Once the application is installed, download the configuration

Open the https://wedge.acreto.net in your favorite browser.

Add a thing named laptop on Acreto Ecosystem - check how to do it

Wedge on Android - adding thing Wedge on Android - adding thing

Open the laptop thing details:

Wedge on Android - adding thing Wedge on Android - adding thing

Click on Download OpenVPN config file to save the configuration.

Wedge on Android - saving config Wedge on Android - saving config

5. Launch the application from your home screen or menu

On the following window, select FILE tab.

OpenVPN config - Android - Import profile OpenVPN config - Android - Import profile

6. A similar permissions prompt window should be received

OpenVPN config - Android - Permissions OpenVPN config - Android - Permissions

7. Click Allow and navigate to the folder with OpenVPN config file

OpenVPN config - Android - List .ovpn profiles OpenVPN config - Android - List .ovpn profiles

By default, it should be in the downloads folder.

OpenVPN config - Android - List .ovpn profiles OpenVPN config - Android - List .ovpn profiles

Make sure that OVPN is selected (see image below), then select the files you want to import and press IMPORT button on the upper-right corner.

OpenVPN config - Android - Import profile OpenVPN config - Android - Import profile

8. Enter any title for the connection

OpenVPN config - Android - Import profile OpenVPN config - Android - Import profile

Select Connect after import

Then press the Add button.

9. When asked for permissions

OpenVPN config - Android - Import profile OpenVPN config - Android - Import profile

Click the OK button.

10. When prompt for a certificate

Click on Continue button.

11. The connection is successful

The connection stats window should be visible.

There you can see extensive information about your connection, such as current data throughput or duration.

OpenVPN config - Android - Import profile OpenVPN config - Android - Import profile

12. To disconnect

Simply press the switch button next to the OpenVPN profile name and toggle it off.

iOS

Overview

This guide will help you to configure the Acreto Security connection on your Apple mobile device with the help of the OpenVPN app.

iOS

1. Go to the App Store on your iPad/iPhone

OpenVPN config - iOS - Play Store OpenVPN config - iOS - Play Store

2. Enter OpenVPN connect in the search bar

OpenVPN config - iOS - Play Store OpenVPN config - iOS - Play Store

3. Tap on the GET button

OpenVPN config - iOS - Play Store OpenVPN config - iOS - Play Store

4. Once the application is installed, download the configuration

Open the https://wedge.acreto.net in your favorite browser.

Add a thing named laptop on Acreto Ecosystem - check how to do it

Wedge on iOS - adding thing Wedge on iOS - adding thing

Open the laptop thing details:

Wedge on iOS - adding thing Wedge on iOS - adding thing

Click on Download OpenVPN config file to save the configuration.

Wedge on iOS - saving config Wedge on iOS - saving config

5. Launch the application from your home screen or menu

Select whether you wish to enable push notifications.

OpenVPN on iOS - push notifications OpenVPN on iOS - push notifications

Accept the OpenVPN Policy Agreement

6. Go to home screen and open Files

7. Navigate to the folder with OpenVPN config file

Files on iOS - file location Files on iOS - file location

Select the Share button in the upper right-hand corner.

Files on iOS - share Files on iOS - share

Press Copy to OpenVPN

Files on iOS - open with Files on iOS - open with

8. Add the VPN profile

Ensure the OpenVPN profile selected is correct, then press ADD.

OpenVPN on iOS - add profile OpenVPN on iOS - add profile

9. Name the connection

Feel free to specify the profile name, by changing the field

OpenVPN on iOS - name profile OpenVPN on iOS - name profile

Be sure to check the box Connect after import

OpenVPN on iOS - name profile OpenVPN on iOS - name profile

10. When asked for permissions

Click Allow to allow OpenVPN to add VPN connections.

OpenVPN on iOS - permissions OpenVPN on iOS - permissions

Click Yes to allow OpenVPN to enable the VPN connection.

OpenVPN on iOS - permissions OpenVPN on iOS - permissions

If all went well, you should see the following

OpenVPN on iOS - success OpenVPN on iOS - success

11. To disconnect

Tap on the same button you used to connect.

Linux

Overview

This article will demonstrate how to secure your Ubuntu system with an Acreto Secured Connection. To create an additional layer of security, we’ll use the OpenVPN application.

Before proceeding to the installation, make sure that you’ve added at least one Thing to your Ecosystem - if not, check how to do it.

Solution 1: Script-based Installation

Acreto Wedge offers a ready-to-use script that will install and configure the Acreto client on your Ubuntu system:

  1. Log in to your account on Acreto Wedge.
  2. Select the Ecosystem where your device is configured.
  3. Click on the Objects item from the left side menu.
  4. Find your Ubuntu device on the list and click the i button to show the details panel.
  5. Within the details panel, you’ll see a Configuration Options section with a list of ready-to-use configurations. Find Acreto Connect Client for Ubuntu 18.04 LTS on this list and click the download icon.
  6. Run this downloaded script – acreto-connect.sh.
sudo ./acreto-connect.sh

Once the script finishes downloading your device should be connected to Acreto.

The script:

  1. Checks the type and version of the Operating System
  2. Installs OpenVPN and all other required dependencies
  3. Pulls the TLS-client configuration via API call using the device token
  4. Creates a service enabled at boot
  5. Starts the service and connects the client to the Acreto platform

In case the TLS client is already installed, the user is presented with a menu to update/remove it.

Solution 2: Manual Installation

Don’t want to manage the VPN setup automatically?

How to connect to OpenVPN manually using the terminal:

  1. Open the Terminal (keyboard shortcut: ctrl + alt + t).
  2. Install OpenVPN client by entering:
    sudo apt-get install openvpn
    (if asked for a password, enter the password used when creating your Linux account).
  3. Navigate to the OpenVPN configuration directory with this command:
    cd /etc/openvpn
  4. Download OpenVPN configuration files – in the terminal, type command:
    curl -k --silent --request POST -H 'Accept: text/plain' \
    https://api-is-rock-solid.acreto.net/v2/tlsvpn/config?_token=SECRET
    In case you get an ERROR, the certificate is not trusted. Please install the ca-certificates package with the command:
    sudo apt-get install ca-certificates
  5. Start OpenVPN with a chosen configuration by entering:
    sudo openvpn [file name]
    For example:
    sudo openvpn acreto.ovpn
  6. You have successfully connected to the VPN!
  7. To disconnect, open the terminal window it’s running in and press ctrl + c.

MacOS

Overview

This article will show you how to secure your MacOS device with Acreto Secured Connection. To create an additional layer of security we will use the Tunnelblick app.

Configuring MacOS

The Tunnelblick application is a recommended option for connecting to ACRETO servers on your Mac.

1. Download the Tunnelblick

Tunnelblick provides free, user-friendly control of OpenVPN client connections for macOS.

2. Download the OpenVPN configuration

Add a thing named laptop on Acreto Ecosystem - check how to do it

OpenVPN config download OpenVPN config download

Open the laptop thing details:

OpenVPN config download OpenVPN config download

Save the file as-is, or change the name to acreto-thing.ovpn

3. To begin the installation of OpenVPN for macOS

Navigate to your Downloads folder and double-click the Tunnelblick image (DMg) file you just downloaded

macOS OpenVPN Installation macOS OpenVPN Installation

4. Double-click on the Tunnelblick icon in the Tunnelblick disk image Finder window

macOS OpenVPN Installation macOS OpenVPN Installation

5. A dialog box will appear

Tunnelblick is an app downloaded from the Internet. Are you sure you want to open it?

Click Open

macOS OpenVPN Installation macOS OpenVPN Installation

6. The installer will ask for your password. Enter it and click OK:

MacOS OpenVPN Installation MacOS OpenVPN Installation

7. After the installation completes, you will see a pop-up notification:

Installation succeeded. Tunnelblick was successfully installed. Do you wish to launch Tunnelblick now? (An administrator username and password will be required so Tunnelblick can be secured.).

Click Launch

8. Alternatively, you can click on the Tunnelblick icon on the status bar

and click VPN details:

MacOS OpenVPN Installation MacOS OpenVPN Installation

9. A dialog box will appear:

There are no configurations installed.

Click I have configuration files

MacOS OpenVPN Installation MacOS OpenVPN Installation

10. A pop-up will appear with instructions on how to import configuration files:

MacOS OpenVPN Installation MacOS OpenVPN Installation

Click OK

11. Drag and drop the previously downloaded .ovpn file

From your Downloads folder, copy->paste or drag and drop to the Configurations tab on the Tunnelblick.

MacOS OpenVPN Installation MacOS OpenVPN Installation

12. A new pop-up will appear

The Installer will ask if you want to install the configuration profile for your current user only, or for all users on your Mac.

Select your preferred option: [All Users] / [Cancel] / [Only Me]

13. You will be asked to enter your password again.

14. A new pop-up warning will appear about comp-lzo deprecation.

You can safely check the Do not warn about this again and click OK.

15. Select the server and click Connect.

16. You are connected to the VPN

17. Check your IP address

Browse to https://www.myip.com/ and verify your IP and network (should be different than your ISP).

18. Disconnect

Click on the Tunnelblick icon in your menu bar and select Disconnect from the drop-down menu.

Windows

Overview

This article will show you how to secure your Microsoft Windows with Acreto Secured Connection. To create an additional layer of security we will use the OpenVPN application.

Configuring Windows 10

Use these steps to set up a VPN on a computer running Windows 10.

You can set up a manual OpenVPN connection by using the OpenVPN application.

1. Download the OpenVPN GUI application

https://swupdate.openvpn.org/community/releases/openvpn-install-2.4.8-I602-Win10.exe

2. Open the installer file

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

3. Follow the setup wizard

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

4. Once the application is installed, download the configuration

Add a thing named laptop on Acreto Ecosystem - check how to do it

OpenVPN config download OpenVPN config download

Open the laptop thing details:

OpenVPN config download OpenVPN config download

Save the file as-is, or change the name to acreto-thing.ovpn

5. Go to the folder where the configurations are downloaded

6. Click and drag to select the OpenVPN configuration downloaded

7. Right-click on them and select Copy

8. Find the OpenVPN config folder

Right-click the OpenVPN GUI shortcut on your desktop and select Open file location.

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

9. Once you’re there, click the parent OpenVPN folder in the address bar

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

10. Extract the configuration file you need to this directory:

c:/Program Files/OpenVPN/config

11. Open the OpenVPN config folder

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

12. Paste the copied configuration files in the folder

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

13. Click Continue to allow the files to be extracted to the folder

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

14. Note: How to prevent possible DNS leaks (optional)

If you are using Windows 10, add an extra line in the configuration files.

To do that, open the downloaded .ovpn configuration file with any text editor and paste this line:

block-outside-dns

Don’t forget to save the file before proceeding to the next steps of this tutorial.

15. Run OpenVPN

Now that the configuration files have been loaded into the proper folder for the application to detect them, let’s open the OpenVPN GUI app itself.

Double-click the shortcut on your desktop.

16. Allow the application to make necessary changes to your device

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

17. The application will start running in the system tray

It’s the area near your clock:

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

It might also be in the hidden system tray area:

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

18. Right-click on the application icon, hover over one of the servers, and click Connect

19. The connection log window will pop up

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

You don’t need to provide any passwords.

20. In a few seconds, the application will connect, and its window will disappear.

The system tray icon will turn green and indicate that you are connected when you hover over it:

Win 10 OpenVPN Installation Win 10 OpenVPN Installation

21. Check Internet access and IP

Browse to https://www.myip.com/ and verify your IP and network (should be different than your ISP)