Ubuntu VPN Software Package For Access Server (2024)

Table of Contents
Note Important Tip Tip Tip Tip Tip FAQs

Abstract

The best Ubuntu VPN solution — OpenVPN Access Server works with your Linux distro of Ubuntu, also built on open-source software fundamentals. Get started!

Access Server fits seamlessly with Ubuntu. Access Server gives you the following benefits:

  • A self-hosted VPN solution.

  • A simplified, rapid deployment of secure remote access and site-to-site solutions.

  • A web-based administration interface.

  • Built-in OpenVPN Connect app distribution with bundled connection profiles.

Install updates and set the correct time

We recommend you start by updating your operating system to the latest version and ensure it's set to the correct time:

  1. Sign in to your Linux system on the console or via SSH and obtain root privileges.

  2. Run the commands below to install updates and set time and date correctly.

apt updateapt upgradeapt install tzdatadpkg-reconfigure tzdata

Note

We assume your OS comes with a time synchronization tool to ensure the correct date and time. If it doesn't, you must ensure they're correct and consider installing a Network Time Protocol (NTP) client program to keep accurate time on your server. Access Server relies on accurate time for time-based one-time passwords for multi-factor authentication and certificate management.

Install Access Server from the software repository
  1. Sign in to the Access Server portal.

  2. Click Get Access Server.

  3. Click Ubuntu LTS from Linux Software Package.

  4. Select your Ubuntu version and copy the commands to install via the repository.

  5. From your console or SSH session, copy and paste the instructions to install the openvpn-as package.

Important

We only support Ubuntu LTS versions. If your operating system version isn't listed as one we support, don't proceed, as the commands will likely fail.

Take note of the web interface access and login credentials

After installing theopenvpn-aspackage, take note of the Admin UI and Client UI addresses as well as the randomly generated password for your administrative useropenvpn. These display on screen similar to this example:

+++++++++++++++++++++++++++++++++++++++++++++++Access Server 2.14.1 has been successfully installed in /usr/local/openvpn_asConfiguration log file has been written to /usr/local/openvpn_as/init.logAccess Server Web UIs are available here:Admin UI: https://198.51.100.130:943/adminClient UI: https://198.51.100.130:943Login as "openvpn" with "RR4ImyhwbFFq" to continue(password can be changed on Admin UI)+++++++++++++++++++++++++++++++++++++++++++++++
Activate your subscription and finish configuration

Using the information from the previous step, connect to the Access Server and sign in with theopenvpnuser and password.

Tip

The URL for the Admin Web UI is https://[address]/admin/ — replace [address] with your server's public IP address or DNS hostname.

The Access Server Admin Web UI provides an intuitive tool for managing settings for Access Server. The first time you access it, a warning will display. This is expected, as Access Server has a self-signed SSL certificate so the web service can function. Override this warning message and proceed.

Tip

We recommend you set up a valid DNS hostname for your Access Server and install a valid signed SSL certificate.

After you sign in and accept the EULA, the Activation page displays. Paste your activation here and click Activate.

Finish Access Server configuration

Now that you've installed Access Server, follow these next steps.

Find the URLs for your web server

When you complete the installation process on the command line, the output displays the URLs for your admin UI and client UI as well as the username and randomly generated password for the admin account.

+++++++++++++++++++++++++++++++++++++++++++++++Access Server 2.14.1 has been successfully installed in /usr/local/openvpn_asConfiguration log file has been written to /usr/local/openvpn_as/init.logAccess Server Web UIs are available here:Admin UI: https://198.51.100.130:943/adminClient UI: https://198.51.100.130:943Login as "openvpn" with "RR4ImyhwbFFq" to continue(password can be changed on Admin UI)+++++++++++++++++++++++++++++++++++++++++++++++

Admin UI

The Admin UI is the web-based GUI for managing your Access Server. We refer to it as the Admin Web UI. Typically, it is the address of your server with /admin/ appended, for example https://192.168.70.222/admin/.

When you sign in to the Admin Web UI, you can manage the configuration, certificate, users, and so on as an administrative user. The web-based GUI provides simplified management of complex VPN features rather than having to run Linux-based commands and scripts.

Client UI

The Client UI is the web-based GUI where users sign in to download clients or configuration files. Typically, it is the address of your server, https://192.168.70.222 as an example.

Tip

The web services run on port TCP 943, by default, so you can visit them at https://192.168.70.222:943/ and https://192.168.70.222:943/admin/ as well. The OpenVPN TCP daemon that runs on TCP port 443 redirects incoming browser requests so that it is slightly easier for users to open the web interface by leaving the :943 part out.

First time signing into the Admin Web UI

Administrative User

For the first use of the Admin Web UI, sign in with theopenvpnuser created during setup. The user’s password is randomly generated and displays in the output at the completion of setup.

On Access Server versions older than 2.9, you must manually set the password for theopenvpnuser with this command:

passwd openvpn

You can now open a browser and enter your Admin Web UI address.

Invalid Certificate

Access Server’s web interface comes with a self-signed certificate. This allows you to sign in to the Admin Web UI right away. Since it’s self-signed, it triggers an expected warning. We recommendadding your own SSL certificatein the Admin Web UI to resolve this.

By clicking through to the site, you can continue to the web interface. At the login screen, enter the username and password for your openvpn user.

Activating a subscription

The first time you sign into the Admin Web UI, Access Server displays theActivationpage so you can easily get an activation key:

  1. Click Get Activation Key.

    • This takes you to the Access Server portal.

  2. Sign in with your openvpn.com account if needed.

  3. Click Activation Keys.

  4. Click Purchase A New Key.

  5. Select the number of concurrent connections for your subscription.

    • For a free subscription with two connections, select the free option.

    • For five or more connections, select the standard option.

  6. Once you've finished obtaining a subscription, click Copy Key to copy the subscription key.

  7. Return to your Admin Web UI.

  8. Paste the subscription key in the text field.

  9. Click Activate.

Once your subscription loads, you can see the available connections. When users start connecting, you'll see how many are connected. You can also see the connection details on theAccess Server portalby clickingAccess Server Information.

Setting up a hostname

We recommend using a hostname for your web interfaces and client connections, rather than the IP address of your server. It’s easier for clients and users to sign in with a domain such as vpn.example.com than to use an IP address.

Refer to Setting up your Access Server Hostname and follow the steps.

Setting up authentication

Once signed in to the Admin Web UI, you can configure user authentication. Access Server supports local authentication where you configure users in the Admin Web UI. You can also use an external authentication system with PAM, RADIUS, LDAP, or SAML.

Access ServerAccess Server 2.10 and newer supports using multiple authentication systems simultaneously. Refer toAccess Server’s User Authentication Systemfor more information.

First time connecting to the VPN server

With your VPN server configured, yourusers can get connected. Choose one of the options below to connect to the server.

Option to connect

Procedure

Download a bundled VPN client to connect

A user follows these steps to download a pre-configured OpenVPN Connect app:

  1. Navigate to the Client Web UI in a browser.

  2. Sign in with user credentials.

  3. Choose the OpenVPN Connect app for their operating system.

  4. After it downloads, install the software.

  5. Open the app and click on the connection profile.

    • The user connects to Access Server.

Download a connection profile

A user follows these steps to download a connection profile. They can then load this file into an installed VPN client like OpenVPN Connect:

  1. Navigate to the Client Web UI in a browser.

  2. Sign in with their user credentials.

  3. Click on the link under Available Connection Profiles.

  4. After the connection profile downloads, upload the file to a VPN client.

Admin provides users with ways to connect

Alternatively, as an admin, you can use these ways to connect your users:

  1. Have your users installOpenVPN Connectfrom our website, thendownload a connection profile from the Admin Web UIand distribute it to users.

  2. Create an OpenVPN Connect installer from the Access Server command-line interfaceand distribute it to users.

Tip

Once connected, a simple test the user can perform is checking their IP address. If internet traffic travels over your encrypted VPN tunnel, the user's IP address changes when they connect to Access Server. If you configuresplit-tunnel traffic, their IP address remains the same for internet traffic.

Recommended next steps
  • Set up a DNS hostname for your server.

  • Install a valid signed SSL certificate.

  • Configure VPN settings.

  • Set up users.

  • Additional security steps.

Installation tips
  • To reach Access Server via the internet, set the hostname or IP address to one facing the public internet. If you set up your server in a private network, it may assume a private IP that can't be reached from the internet. Change this setting by setting up a DNS hostname that resolves to the public IP address where your Access Server can be reached.

  • Ensure the right ports are open so your VPN clients can reach Access Server from outside your private network.

  • Access Server's default, internal VPN subnet is 172.27.224.0/20. You can change the subnet to one that might work better for your current network.

OpenVPN Connect client

Your users and devices need a VPN client program, like OpenVPN Connect, to establish a connection to Access Server. You can obtain the necessary software and connection details from the Client Web UI. This is the same address as the Admin Web uI, minus the /admin part.

Tip

The URL for the Client Web UI is https://[address]/ — replace [address] with the public IP address or DNS hostname of your server.

Users can sign in with their credentials and obtain all the necessary client software and configuration to connect to your Access Server.

Helpful Linux tips
  • Successfully running the Linux commands here requires executing them with root privileges logged in as a root user or sudo up.

  • By default, an unlicensed server allows only two connections. You canpurchase a subscriptionto increase this.

  • Licensing an Access Server without internet access requirescontacting OpenVPN supportfor an offline activation procedure.

  • If you experience slowness with the web interface or license key activation, check that DNS resolution is working as expected.

In this section:

Ubuntu VPN Software Package For Access Server (2024)

FAQs

How to install OpenVPN Access server on Ubuntu? ›

Install Access Server from the software repository
  1. Sign in to the Access Server portal.
  2. Click Get Access Server.
  3. Click Ubuntu LTS from Linux Software Package.
  4. Select your Ubuntu version and copy the commands to install via the repository.

How to setup VPN on Ubuntu server? ›

Navi Singh
  1. Step 1: Install OpenVPN and Easy-RSA. ...
  2. Step 2: Create Easy-RSA Directory. ...
  3. Step 3: Initialize PKI (Public Key Infrastructure) ...
  4. Step 4: Build Certificate Authority (CA) ...
  5. Step 5: Generate Server Certificates. ...
  6. Step 6: Copy Server Certificates to OpenVPN Directory. ...
  7. Step 7: Generate Client Certificates.
Feb 24, 2024

What are the 3 ports required for OpenVPN access server to be reachable properly? ›

By default, Access Server requires three ports to be reachable: TCP 443, TCP 943, and UDP 1194. Check that the port is correct. Make sure you're not trying an incorrect port.

Is OpenVPN access server free? ›

Access Server's free tier allows you to install and start using our powerful VPN solution without a subscription or license. Enjoy the free functionality of Access Server right from the start, with no time limits and two simultaneous connections for free.

Is WireGuard better than OpenVPN? ›

Overall, WireGuard is the faster of the two protocols. OpenVPN, if configured in UDP mode, will offer similar latency, but it will still require higher data usage. Note that WireGuard runs only in UDP mode. Both OpenVPN and WireGuard use strong unbroken ciphers.

How do I connect to OpenVPN access server? ›

Creating users and groups
  1. Access Server setup and configuration.
  2. Install Access Server.
  3. Connect to your server's console.
  4. Find the URLs for your web server.
  5. First time signing into the Admin Web UI.
  6. Activating a subscription.
  7. Setting up a hostname.
  8. Setting up authentication.

Should I use TCP or UDP for OpenVPN? ›

OpenVPN's default is to use UDP simply because it is faster. Our smart protocol selection feature will always attempt to establish a connection using UDP first. But you can also switch between UDP and TCP manually in our app or command line tool.

What is the best port for OpenVPN server? ›

OpenVPN daemons interface and ports

By default, they listen on all available network interfaces, using UDP port 1194 and TCP port 443. You can customize these settings via the Admin Web UI or CLI.

What is the minimum requirement for OpenVPN server? ›

Memory requirements depend on the number of connected devices and the level of NAT traffic your VPN server needs to process. At a minimum, start with 1GB of memory and add approximately 1GB for every 150 connected devices. Again, note that this is a rough estimate but should serve as a basis for estimating memory size.

Why is OpenVPN so expensive? ›

OVPN is more expensive as we work harder on delivering a more sustainable VPN service. All our servers are load balanced and are using the latest hardware.

Do I need a VPN provider for OpenVPN? ›

Anyone can use the OpenVPN open-source code client to set up their VPN connection. Most VPN providers include the OpenVPN protocol in their software. However, while OpenVPN refers to one tunneling protocol, a VPN provider can offer multiple VPN protocols, such as WireGuard® and IKEv2/IPsec.

How much does access VPN cost? ›

PIA test results and overall scores
Subscription termPrice
Monthly£9.99 / month
12 months£2.71 / month
24 months (+2 months free)£1.67 / month
Aug 13, 2024

How do I install an OpenVPN server? ›

Before you begin: Ensure you know your Linux operating system so you can choose the correct instructions from our Access Server portal.
  1. Create a free OpenVPN account.
  2. Sign in to the Access Server portal.
  3. Click Get Access Server and select the platform for your server.

How do I install OpenVPN client on Ubuntu? ›

Installation for Debian and Ubuntu
  1. Open the Terminal by pressing ctrl + alt + T .
  2. Type the following command into the Terminal: DISTRO=$(lsb_release -c | awk '{print $2}') . ...
  3. Type the following command into the Terminal: sudo apt update.
  4. Type the following command into the Terminal: sudo apt install openvpn3 .

How to install OpenConnect VPN server on Ubuntu? ›

  1. Step 1: Installing OpenConnect VPN Server (ocserv) First, you'll need to install the OpenConnect VPN server on your Ubuntu 20.04 system. ...
  2. Step 2: Configuring ocserv. ...
  3. Step 3: Creating VPN User Accounts. ...
  4. Step 4: Setting Up Firewall Rules. ...
  5. Step 5: Enabling and Starting the VPN Server. ...
  6. Step 6: Connecting to the VPN Server.
Jan 21, 2024

How to install OpenVPN on Ubuntu via CLI? ›

Install OpenVPN on Ubuntu via CLI
  1. Run as superuser. sudo su.
  2. Download components. apt-get install openvpn unzip.
  3. Download the configuration you want.
  4. Enter your login credentials. ...
  5. Start OpenVPN and see that everything works. ...
  6. Verify that the connection was successful. ...
  7. Done.
Feb 10, 2020

Top Articles
Protecting Yourself when Financial Infidelity Leads to A Divorce | The Berger Firm
What will happen to the Trump tax cuts in 2025, and how will they affect the national debt?
Angela Babicz Leak
Brendon Tyler Wharton Height
New Slayer Boss - The Araxyte
Craglist Oc
Braums Pay Per Hour
Erskine Plus Portal
Craigslist Estate Sales Tucson
Mycarolinas Login
Cvs Learnet Modules
Amelia Bissoon Wedding
Help with Choosing Parts
Elbasha Ganash Corporation · 2521 31st Ave, Apt B21, Astoria, NY 11106
Guidewheel lands $9M Series A-1 for SaaS that boosts manufacturing and trims carbon emissions | TechCrunch
Buy PoE 2 Chaos Orbs - Cheap Orbs For Sale | Epiccarry
Truck Trader Pennsylvania
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Toy Story 3 Animation Screencaps
Jbf Wichita Falls
Exterior insulation details for a laminated timber gothic arch cabin - GreenBuildingAdvisor
Saritaprivate
Johnnie Walker Double Black Costco
Utexas Iot Wifi
Vivaciousveteran
Trivago Myrtle Beach Hotels
Ltg Speech Copy Paste
Foodsmart Jonesboro Ar Weekly Ad
Meta Carevr
When His Eyes Opened Chapter 3123
FSA Award Package
Top Songs On Octane 2022
91 Octane Gas Prices Near Me
Angel del Villar Net Worth | Wife
Beth Moore 2023
Upstate Ny Craigslist Pets
1-800-308-1977
The Mad Merchant Wow
Flashscore.com Live Football Scores Livescore
Puretalkusa.com/Amac
Fetus Munchers 1 & 2
Worcester County Circuit Court
manhattan cars & trucks - by owner - craigslist
Thor Majestic 23A Floor Plan
ACTUALIZACIÓN #8.1.0 DE BATTLEFIELD 2042
Dickdrainersx Jessica Marie
Is Ameriprise A Pyramid Scheme
Craigslist Com St Cloud Mn
Hello – Cornerstone Chapel
Gonzalo Lira Net Worth
Roller Znen ZN50QT-E
Runelite Ground Markers
Latest Posts
Article information

Author: Frankie Dare

Last Updated:

Views: 6260

Rating: 4.2 / 5 (53 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Frankie Dare

Birthday: 2000-01-27

Address: Suite 313 45115 Caridad Freeway, Port Barabaraville, MS 66713

Phone: +3769542039359

Job: Sales Manager

Hobby: Baton twirling, Stand-up comedy, Leather crafting, Rugby, tabletop games, Jigsaw puzzles, Air sports

Introduction: My name is Frankie Dare, I am a funny, beautiful, proud, fair, pleasant, cheerful, enthusiastic person who loves writing and wants to share my knowledge and understanding with you.