Usage Guidelines – Ubuntu 18.04 with SoftEther VPN Server – Free VPN

SoftEther VPN Server

Ubuntu 18.04

Ubuntu 18.04 with SoftEther VPN Server – Free VPN

In case you have NSG’s or Firewall appliances in Azure Marketplace you’ll have to open access to the next ports: 443 TCP and 1194 UDP.

In order to open the ports, go to the Virtual machine’s settings in Azure Marketplace – open Networking and add the necessary ports.

Then you need to open these ports in the Windows firewall.

To do this, go to “Windows firewall with advanced security” console, create an inbound rule to allow TCP on port (443…).

To start remote server administration on the operator’s computer, you need to install SoftEther VPN Server manager.

This is a program for Windows OS. The software is available for download on the official website:

https://www.softether-download.com/en.aspx?product=softether

In the “Select Component” drop-down list, select SoftEther VPN Server Manager for Windows.

In the Select Platform drop-down list, select Windows.

Download links will display. Select the latest version:

SoftEther VPN Server and VPN Bridge (Ver 4.34, Build 9745, rtm)

Download the SoftEther VPN Server installer and run it after completing the download. In the window that opens, click “Next”:

Select the “SoftEther VPN Server Manager (Admin Tools Only)” and click “Next”:

After installation, run the program shortcut from the desktop.

When opening, the following window will be displayed:

You must create a new connection. To do this, click on the button

New Settings”.

Specify the IP address of the virtual machine in the “Host Name” line. Leave port 443 by default:

To start the VPN Server admin panel, you should open the app “SoftEther VPN Server Manager” on the desktop. Click “Connect” in the opened window of the app:

At the first authorization, you need to set a new administrator password to connect to the server.

Next, in the “SoftEther VPN Server / Bridge Easy Setup” window, select the setting Remote Access VPN Server and click “Next”:

Next, enter a name for the hub you want and click “OK”:

Click Exit in the “Dynamic DNS Function” window:

Click “OK” in the “IP / L2TP / EtherIP / L2TPv3 Settings” window:

Next, select “Enable VPN Azure” and click “OK”.

Next, close the windows “VPN Easy Setup Tasks”.

To work with VPN, at first you should add a user in the app.

For this you need:

  1. Click on the “Manage Virtual Hub” button:

2. Then click on the “Manage Users” button:

3. To create a new user, click “New”:

4. It’s necessary to insert the name of the user into the “User Name” field, type the password into the “Password” field and verify it by re-entering the password into the “Confirm Password” field.

  1. After the data were entered, click “OK”.

Also, when creating each hub, you need to enable the Virtual NAT function. For this you need:

  1. Click “Manage Virtual Hub”:

2. Open “Virtual NAT and Virtual DHCP Server (SecureNAT)”:

3. Click “Enable SecureNAT”:

The instruction for the customization of the VPN Client

To customize the VPN Client, first you need to know the server IP address. You can find it in the personal account of Azure. (You need to select the virtual machine from the list. By clicking the item “Overview”, your IP is displayed in the line of “Public IP Address”).

After that, you need the OpenVPN Client for the work. Go to site: https://openvpn.net/community-downloads/ and download the installer in the “.exe” format, depending on your OS Windows:

After the downloading of the installer is finished, you should run it.

In the opened window of the OpenVPN  installer click on the “Next” button:

After that click “I Agree”:

Click “Next”:

Then click “Install”:

After the installation progress is finished, click “Next”:

And then click “Finish”.

When you try to start OpenVPN after the installation, the pop-up message of the absence of the configuration files appears:

In order for OpenVPN work, you need to add these configuration files for the app by hand. You can create them in the “SoftEther VPN Server Manager” app. For this you need:

  1. Run the “SoftEther VPN Server Manager”.
  2. Click “Connect” in the opened window of the app.
  3. Click on the “OpenVPN / MS-SSTP Settings” button.

4. Click on the “Generate a Sample Configuration File for OpenVPN Clients” button.

5. When the window of the Windows Explorer is opened, select the path to save the archive:

6. There are the next files in the saved archive:

  1. You should transmit the file named “…_openvpn_remote_access_l3” by the path of installation of the “OpenVPN”, in this case (since the standard path was selected) this is “C:\Program Files\OpenVPN\config”.

Now the OpenVPN is ready for work and you can run it. After it was started, the app is displayed in the system tray in the form of the monitor icon with the lock.

 To connect to VPN you should click the icon with the monitor with the lock twice.

The next windows will be opened:

 In the fields “Username” and “Password” it’s necessary to enter the name and the password which were added to the “SoftEther VPN Server Manager” and after that click “OK” to connect to the VPN server.

Now your external IP address has changed and you are using the Internet through the VPN server of the virtual machine.

Connect to Ubuntu OS:

  1. To connect to the virtual machine you can use the PuTTY client

(you can download it from the official site: https://www.putty.org/). When the app was started, you will see the following window:

  1. In the “Host Name (or IP address)” field you should enter the IP address of the virtual machine from the personal account in Azure. In the “Port” field enter the 22 value, select the “Connections type” – SSH and click on the “Open” button.

        The following window will be opened:

In the window above you should enter the login and password of the user of the virtual machine. (while typing the password, the data isn’t displayed!)