How to do it...

  1. Make sure you have a valid CA. If not, create one by following step 1 in the Connecting to the OpenVPN service recipe.
  2. Make sure you have a valid server certificate. If not, create one by following step 1 in the Connecting to the OpenVPN service recipe.
  1. Add an OpenVPN client with the User Manager:
    1. Navigate to System | User Manager.
    2. Click on the Group tab.
    3. Click on the Add button to add a new group.
    4. Enter a name in the Group name text field (for example, Remote VPN Users).
    5. Enter a brief description in the Description text field.
    6. When you are done making changes, click on Save.
    7. Click on the Users tab.
    8. Click on Add to add a VPN client.
    9. Enter a Username and Password in the appropriate text field.
    10. Enter the user’s full name in the Full name text field, if desired. In the Group membership section, add the user to the newly created user group.
    11. Check the Click to create a user certificate checkbox.
    12. Click on the Save button.
    13. Repeat the process for as many VPN clients as you wish to add.
  2. Next, we need to install the the OpenVPN Client Export Utility:
    1. Navigate to System | Package Manager.
    2. Click on the Available Packages tab.
    3. Find openvpn-client-export in the list, and click on the Install button for this package.
    4. Clicking on the Install button will take you to the Package Installer tab; click on the Confirm button on this tab.
    5. Wait for openvpn-client-export to install.
  1. Now we can configure the OpenVPN server:
    1. Navigate to VPN | OpenVPN.
    2. Click on the Wizards tab. This will take you through the OpenVPN server setup.
    3. Leave Type of Server set to Local User Access. Click on the Next button:

    1. In the Certificate Authority drop-down menu, select the CA created in step 1 (or earlier if you followed the Connecting to the OpenVPN service recipe). You may also click on the Add new CA button to generate a new CA; otherwise, click on the Next button.
    2. In the Certificate drop-down menu, select the server certificate created in step 1 (or earlier if you followed the Connecting to the OpenVPN service recipe). You may also click on the Add new certificate button to generate a new server certificate; otherwise, click on the Next button.
    3. On the Server Setup page, scroll down to Tunnel Settings. In the Tunnel Network text field, enter a virtual network for private communications between the client and server. You can make this network as big or as small as you wish. For example, if you know you will never have more than a dozen clients connecting and 192.168.1.0 is not being used by any of the subnets on your network, you can set it to 192.168.1.0/28.

    1. In the Local Network text field, enter the local network that will be accessible from the remote endpoint (usually the LAN network).
    2. Scroll down to Client Settings. In DNS Default Domain, enter the default domain name for clients, if there is one.
    3. You may also enter up to four DNS servers in the DNS Server text field.
    4. You may enter up to two NTP servers in the NTP Server edit boxes.
    5. When you are done making changes, click on the Next button.
    6. On the Firewall Rule Configuration page, make sure both Firewall rule and OpenVPN Rule are checked. Once you confirm this, click on the Next button:

    1. The final page of the wizard should inform you that configuration is complete. Click on the Finish button to complete the wizard:

  1. Confirm that the configured server appears on the Servers tab. Once you do, you can begin using the Client Export Utility:
    1. Click on the Client Export tab.
    2. Make sure the correct server is selected in the Remote Access Server drop-down menu.
    3. Check the Password Protect Certificate checkbox.
    4. Enter a password in the Certificate Password text field (the password must be entered twice).
    5. Scroll down to the OpenVPN Clients section and download the appropriate config file or client for the appropriate user (you should see different options for each user configured earlier) iOS, Android, Windows, and macOS are supported:

  1. Now that we have the OpenVPN client software, we can move over to the remote system and connect to the remote firewall:
    1. Install the downloaded OpenVPN client on the client’s computer.
    2. Run the installed client. The client interface will prompt you for the username and password. Enter the username and password entered in the User Manager for the client earlier. When you are done, click on OK.
    3. The client should now be connected to the server via OpenVPN:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.239.77