> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ahmadraza.in/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenVPNServerSetup

# OpenVPN Access Server Setup

## Server Details

* **Server IP**: 20.244.31.140
* **OpenVPN Initialization Command**:
  ```bash theme={null}
  /usr/local/openvpn_as/bin/ovpn-init [Restart Setup of Server]
  ```

## Access URLs

* **Admin UI**: [https://10.3.0.6:943/admin](https://10.3.0.6:943/admin)
* **Client UI**: [https://10.3.0.6:943/](https://10.3.0.6:943/)

**Login Credentials**:

* **Username**: `openvpn`
* **Password**: `TtBzMr29B23C`

**Release Notes**: [OpenVPN Release Notes](https://openvpn.net/vpn-server-resources/release-notes/)

## Setup Instructions

1. **Spin Up the Server**:
   * Launch a server instance where OpenVPN will be installed.

2. **Install OpenVPN**:
   * Follow the installation instructions for OpenVPN Access Server on Ubuntu:
     [OpenVPN Installation Instructions](https://as-portal.openvpn.com/instructions/ubuntu/installation)

3. **Install and Configure NGINX**:
   * Install NGINX and configure it to serve as a reverse proxy on port 943.
   * Apply SSL certificates using Certbot.

4. **Update Network Settings**:
   * Access the Admin UI to update the network settings with the new hostname or IP of the VPN server.
     <img src="https://mintlify.s3.us-west-1.amazonaws.com/ahmadrazalab/9-BoNUS/VPN/Domainconfig.png" alt="Alt text" />

5. **Obtain and Install SSL Certificate**:
   * Log in to the Admin UI.
   * Navigate to [SSL Certificate Management](https://manage.sslforfree.com/certificate/new) to obtain a certificate.
   * Inject the SSL certificate into OpenVPN Access Server via the Admin UI.
     * Follow the instructions in the [OpenVPN SSL Certificate Installation Guide](https://openvpn.net/vpn-server-resources/installing-a-valid-ssl-web-certificate-in-access-server/).

## SSL Certificate Configuration in Admin UI

1. **Sign in to the Admin Web UI**.

2. **Navigate to Configuration > Web Server**.

3. **Change Web Server Certificate**:
   * Under "Do you want to change the web server certificate?" select "Yes" for "User-provided Certificate".

<img src="https://mintlify.s3.us-west-1.amazonaws.com/ahmadrazalab/9-BoNUS/VPN/SSL.png" alt="Alt text" />

4. **Upload SSL Files**:
   * Provide the following files:
     * **CA Bundle**: Choose File
     * **Certificate**: Choose File
     * **Private Key**: Choose File

5. **Save Configuration**.

**Note**: Refer to the [OpenVPN Finishing Configuration Guide](https://openvpn.net/vpn-server-resources/finishing-configuration-of-access-server/) for additional setup details.

> This format organizes the information and provides clear steps for setting up OpenVPN Access Server. Feel free to adjust any details or URLs as needed.
