Skip to main content

Deploy OpenVPN Access Server on Oracle Cloud β€” Quick Start Guide

Abstract

Access Server VPN for Oracle instance lets you quickly launch a VPN server on your Oracle account.

Deploy OpenVPN Access Server on Oracle Cloud using the Oracle Marketplace. Access Server is available as a preconfigured image you can deploy.

Working with Oracle Cloud, you use their instances, which are Linux-based virtual machines running on virtualized hardware. By using the Access Server instance from their Marketplace, you can launch a VPN hosted in the cloud, with the following benefits:

  1. Sign in to the Access Server Hub on our site or create a new account.

  2. Under Installation, select Oracle.

  3. Select Launch From Oracle Cloud Marketplace and sign in to your Oracle account if necessary.

  4. On the Access Server listing, select Get App.

  5. Select the latest version and the compartment.

  6. Review and accept the Oracle terms and select Launch Instance.

  7. Enter a name for your instance if you want to change it from the generated name.

  8. Select your virtual cloud network and subnet.

  9. Generate a new SSH key or input your public SSH key.

  10. Select Create.

  11. Add aΒ Network Security GroupΒ to your instance with the rules outlined in the table below.

Direction

Source Type

Source

Protocol

Source Port

Destination Port

Ingress

CIDR

0.0.0.0/0

TCP

All

943

Ingress

CIDR

0.0.0.0/0

TCP

All

22

Ingress

CIDR

0.0.0.0/0

TCP

All

443

Ingress

CIDR

0.0.0.0/0

UDP

All

1194

Tip

Port TCP 22 doesn't need to be open to all IP addresses (0.0.0.0/0). This access is only required to manage the instance. For better security, restrict the source IP to only the administrator's IP address.

Once your image deploys, you can connect with an SSH client.

We provide instructions on how to connect with a common use case for Windows OS users with the PuTTY SSH Client: Connect to Access Server via SSH Using PuTTY.

Access Server's initial configuration tool guides you through the first-time Access Server configuration.

For this quick start guide, we assume you use the default configuration values where available.

  1. Review and accept the Access Server End User License Agreement (EULA).

  2. Follow the configuration prompts.

  3. Press ENTER to accept the default values for each configuration option used in this quick start.

  4. When the initial configuration finishes, locate the Access Server sign-in information in the output:

    • Admin Web UI URL

    • Client Web UI URL

    • Administrative username

    • Generated administrative password

  5. When prompted to enable Let's Encrypt for the public IP address, enter Y.

    Note

    If you don't enable Let's Encrypt, or certificate issuance isn't successful, Access Server uses its self-signed certificate. Your browser may display a certificate warning when you open the web interface.

After the initial configuration completes:

  1. Open the Admin Web UI URL displayed in the output. For example: https://<public-ip-address>/admin.

  2. Sign in with the username and generated password displayed.

  3. Review the Access Server license agreement.

  4. Select Agree.

    • The onboarding wizard displays for a new Access Server installation.

The onboarding wizard displays the first time you sign in after activation. It guides you through the initial access configuration and helps you test your first VPN connection.

  1. Select whether VPN clients should have:

    • Internet access through Access Server.

    • Access to private resources in your Oracle virtual network.

    • Both, if appropriate for your deployment.

  2. If access to private resources is enabled, review the network CIDRs that Access Server detected.

  3. Verify that the detected networks match the Oracle virtual networks that VPN users should access.

  4. Keep only the networks that VPN users should be allowed to access.

  5. Select Continue.

  6. Review the OpenVPN Connect download offered by the wizard.

    The wizard displays the download appropriate for the operating system of the device you're currently using.

  7. Select Download.

  8. Install OpenVPN Connect.

  9. Return to the onboarding wizard.

  10. Select Continue.

  11. The wizard displays a prompt while it waits for a VPN connection.

  12. Launch OpenVPN Connect on your device.

  13. Connect using the profile included.

  14. Confirm that the VPN connection succeeds.

  15. Return to the Admin Web UI.

  16. Select Finish Wizard.

    Tip

    You can also close the onboarding wizard by selecting the X if you prefer to skip these steps.

  17. After completing the wizard, the Admin Web UI opens and presents a short product tour covering:

    • The Client Web UI

    • Users

    • Access Controls

    • Authentication

    • Activation

After confirming that users can connect successfully, complete any operating system maintenance and security hardening required for your production deployment.

πŸ•’ Change default time zone

  1. If the server uses a different time zone than you require, run:

    sudo dpkg-reconfigure tzdata
  2. Follow the prompts to select the appropriate time zone.

⏰ Verify time synchronization

Accurate system time is important for authentication, logging, certificates, and time-based one-time password (TOTP) authentication.

Before installing another NTP service, verify which time synchronization service is already active on the server and configure it according to your operating-system requirements.

πŸ”„ Update operating-system software

  1. Keep the underlying Linux operating system current with security and software updates. For example, on Ubuntu servers, run:

    sudo apt-get update
    sudo apt-get upgrade
  2. Review the packages before applying updates in production and reboot the server when required.

πŸ›‘οΈ Further security recommendations

Review the security guidance that applies to your deployment:

Not every security recommendation applies to every installation. Review each tutorial against your deployment and security requirements.