Skip to main content

How to Connect to Agate VPN Cloud

Upload In ProgressThis Article:

Overview


Purpose

This procedure is about configuring VPN connection to Agate’s VPN

Applicability/Scope

This Procedure is applicable when a crew want to connect to Agate’s network through VPN

Prerequisites

  • Request VPN credential to DevOps (explained [below](How to Connect to Agate VPN Cloud 77af87247ca749d8bc06ee52d81ef31d.md))

Responsibilities

  • DevOps: responsible to create and give VPN credential to crew
  • Individual Crew: responsible to configure VPN connection on their own devices

Glossary

ItemDefinition
VPNVirtual Private Network. Enables user’s devices to work as if they were directly connected to company’s private network.
SoftEtherOpen Source VPN App distributed by SoftEther Project at University of Tsukuba, Japan, since March 8, 2013. SoftEther Website
Fedora 35Linux Distribution. add some more desc

Procedure


Request VPN Credential

Flow

Steps

  1. Request for credential to DevOps by following steps here: How to Create Request Ticket to DevOps
  2. Once completed, DevOps will provide you with your own VPN Credential

Configure VPN Connection

VPN for Windows User

This step-by-step is showcased using Windows 10.

Steps

  1. Go to this link: SoftEther Download Center

  2. Download SoftEther

    • Select Software: SoftEther VPN (Freeware)

    • Select Component: SoftEther VPN Client

    • Select Platform: Select depend from your OS

    • Select CPU: Intel (x86 and x64)

    • Image 2.1

      Untitled

  3. Click the first download link that appears. Wait for the download to finish

    • Image 3.1

      Untitled

  4. Open the downloaded SoftEther VPN Client installer

  5. Install SoftEther VPN Client with default configuration (click next until it installs). Click finish.

  6. If you leave the ā€œStart the SoftEther VPN Clientā€ checked during installation, SoftEther Client Manager will automatically open. Otherwise, run SoftEther VPN Client Manager from the Windows start menu or from your desktop

  7. A prompt may pop-up saying you need to create Virtual Network Adapter. Skip to step 11 if this does the prompt does not pop-up

  8. Click ā€œYesā€ on the prompt

    • Image 8.1

      Untitled

  9. Create VPN by clicking ā€œOKā€. Wait for the process to finish

    • Image 9.1

      Untitled

  10. After the process is done, double click again on ā€œAdd VPN Connectionā€

    • Image 10.1

      Untitled

  11. Configure the VPN Connection with configuration below:

    • Setting Name: VPN Name, e.g. Agate Cloud VPN. This is for naming purposes only

    • Host Name: 54.254.17.114

    • Port Number: 5555(Dropdown)

    • Virtual Hub Name: VPN

    • User Name: {Provided VPN Username} (see [Request VPN Credential](How to Connect to Agate VPN Cloud 77af87247ca749d8bc06ee52d81ef31d.md) above)

    • Password: {Provided Password} (see [Request VPN Credential](How to Connect to Agate VPN Cloud 77af87247ca749d8bc06ee52d81ef31d.md) above)

    • Image 11.1

      Untitled

  12. Click ā€œOKā€ to continue. You should be able to see the connection you configured.

  13. Double click on the connection. If the ā€œstatusā€ change from ā€˜Offline’ to ā€˜Connected’, you are connected to Agate’s VPN

    • Image 13.1

      How%20to%20Connect%20to%20Agate%20VPN%20Cloud%2077af87247ca749d8bc06ee52d81ef31d/Untitled%206.png

VPN for Linux User

This step-by-step is showcased using Fedora 35 Linux distribution, but it should work for other distribution. Please adjust and use the relevant module/package accordingly and as needed.

Steps

  1. Install L2TP module/package & strongswan by typing this into your terminal:

    $ sudo dnf install xl2tpd
    $ sudo dnf install NetworkManager-l2tp
    $ sudo dnf install NetworkManager-l2tp-gnome
    $ sudo dnf install strongswan
    
  2. Wait until all module are installed

  3. Open ā€œSettingsā€

    • Image 3.1

      Screenshot from 2022-05-24 08-39-02.png

  4. Go to ā€œNetworkā€ > click ā€œ+ā€ button on VPN section to add new VPN Connection

    • Image 4.1

      Screenshot from 2022-05-24 08-41-54.png

  5. Select ā€œLayer 2 Tunneling Protocol (L2TP)ā€

    • Image 5.1

      Screenshot from 2022-05-24 09-08-45.png

  6. Configure the VPN Profile with configuration below:

    • Name: VPN Name, e.g. AGATE-L2TP. This is for naming purposes only

    • Gateway: vpn600816842.softether.net ****or 54.254.17.114

    • Type: ā€œPasswordā€

    • User Name: {Provided VPN Username} (see [Request VPN Credential](How to Connect to Agate VPN Cloud 77af87247ca749d8bc06ee52d81ef31d.md) above)

    • Password: {Provided Password} (see [Request VPN Credential](How to Connect to Agate VPN Cloud 77af87247ca749d8bc06ee52d81ef31d.md) above)

    • NT Domain: Leave empty

    • Image 6.1

      Screenshot from 2022-05-24 08-41-54.png

  7. Click ā€œIPsec Settingsā€¦ā€, a pop-up will appear. Configure with the information below:

    • Check Enable IPsec tunnel to L2TP host

    • Type: Pre-shared key (PSK)

    • Pre-shared key: vpn

    • Image 7.1

      Screenshot from 2022-05-24 09-14-26.png

  8. Click Apply on upper right corner. This will close the pop-up

  9. Click Add on upper right corner. The VPN Connection should be added

  10. Turn on your configured VPN Connection by clicking the toggle

    • Image 10.1

      Screenshot from 2022-05-24 09-58-24.png

  11. Your VPN should be connected now

    • Image 11.1

      Screenshot from 2022-05-24 10-08-54.png

Troubleshooting

If connection cannot be established, check whether libreswan is installed or not. By default the NetworkManager-l2tp will use libreswan instead strongswan

$ sudo rpm -q libreswan

*// if returned libreswan version 
// ex : libreswan-x.x.x-x.fc35.x86_64
// proceed to the next step*

Switch to strongswan with the following command

$ sudo ipsec stop
$ sudo rpm -e libreswan
$ sudo dnf install strongswan

Switching between libreswan and strongswan helps from some weird compatibilty issue

To revert back to libreswan, just install it again with the following command:

$ sudo dnf install libreswan

When you switch libreswan to strongswan (or the reverse), make sure NetworkManger-l2tp isn't running. You can stop NetworkManger-l2tp with the following command:

$ sudo killall -TERM nm-l2tp-service

Troubleshooting Source: https://community.ui.com/questions/L2TP-unusable-on-Fedora/d91fb0a7-0507-4c6d-be7f-259d2df8edc4

VPN for Mobile User

This step-by-step is showcased using Android. Please adjust accordingly for other mobile OSes.

Steps

  1. Go to ā€œSettingsā€

  2. Tap on ā€œNetwork & Internetā€

    Alternatively, search ā€œVPNā€ on settings search

  3. Tap ā€œVPNā€

  4. Tap ā€œ+ā€ to add VPN Connection

  5. Configure the VPN Connection with configuration below:

    • Name: VPN Name, e.g. Agate Cloud VPN. This is for naming purposes only

    • Server Address: vpn600816842.softether.net

    • Type:

    • IPSec Pre-Shared Key: vpn

    • User Name: {Provided VPN Username} (see [Request VPN Credential](How to Connect to Agate VPN Cloud 77af87247ca749d8bc06ee52d81ef31d.md) above)

    • Password: {Provided Password} (see [Request VPN Credential](How to Connect to Agate VPN Cloud 77af87247ca749d8bc06ee52d81ef31d.md) above)

    • Image 5.1

      How%20to%20Connect%20to%20Agate%20VPN%20Cloud%2077af87247ca749d8bc06ee52d81ef31d/WhatsApp_Image_2021-07-26_at_16.02.34.jpeg

  6. Tap ā€œSaveā€. The VPN Connection should be added

  7. Tap on the connection to connect