---
title: OpenVPN Installation on Linux OS
description: This article will help you learn how to install and configure OpenVPN on Linux OS.
---

[Skip to content](https://help.ishosting.com/en/openvpn-installation-on-linux-os#main-content)

- [English](https://help.ishosting.com/en/openvpn-installation-on-linux-os)
- [Русский](https://help.ishosting.com/ru/openvpn-installation-on-linux-os)

English

Show submenu for translations

[![is\*hosting](https://help.ishosting.com/hubfs/Logo_Ishosting_mono-1.svg)](https://help.ishosting.com/en)

- [Blog](https://blog.ishosting.com/en)
- [Support](https://my.ishosting.com/en/tickets)

Open main navigation

Close main navigation

- [Blog](https://blog.ishosting.com/en)
- [Support](https://my.ishosting.com/en/tickets)
- - [English](https://help.ishosting.com/en/openvpn-installation-on-linux-os)
    - [Русский](https://help.ishosting.com/ru/openvpn-installation-on-linux-os)

  English
  
  Show submenu for translations
- [Go to ishosting.com](https://ishosting.com/)

[Go to ishosting.com](https://ishosting.com/)

 Hello. How can we help you?

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.ishosting.com/en)
2. [VPN](https://help.ishosting.com/en/vpn)
3. [Linux](https://help.ishosting.com/en/vpn#linux)

# OpenVPN Installation on Linux OS

## This article will help you learn how to install and configure OpenVPN on Linux OS.

To install and configure OpenVPN on your Linux OS device, follow the steps (run all the installation commands as the root user):

1. Start the terminal (**Ctrl**+**Alt**+**T**) and log in with root rights, while knowing the public IP of the server with which the VPN is installed.
2. To install and configure the packages required when starting OpenVPN, an appropriate script is used. Give the correct server IP address to the script. To download this script, run the command:
   
   ```
   wget https://raw.githubusercontent.com/angristan/openvpn-install/master/openvpn-install.sh
   ```
3. To make the script executable, run the command:
   
   ```
   chmod +x openvpn-install.sh
   ```
4. To run the script, write the command:
   
   ```
   ./openvpn-install.sh
   ```
   
    Some default settings are optimal, just confirm them. The Public IP is the only thing to be checked and possibly edited. Edit the rest only if you know and understand the desired installation option.  
   ![0](https://help.ishosting.com/hs-fs/hubfs/help/vpn/linux/openvpn/openvpn-installation-on-linux-os%20en/0.png?width=658&height=524&name=0.png)
5. The last step is to enter the client's name. Set a password for security reasons.
6. After the process is completed, check if incoming connections are being listened to:
   
   ```
   ss -tupln | grep openvpn
   ```
   
    ![1](https://help.ishosting.com/hs-fs/hubfs/help/vpn/linux/openvpn/openvpn-installation-on-linux-os%20en/1.png?width=688&height=30&name=1.png)
7. Additionally, download the OpenVPN configuration file (**client01-tcp.ovpn**) from the provided link:  **http://server\_IP:port/xxxxxxxxxx/**, you have received this link via email after activating the service.  
   ![2](https://help.ishosting.com/hs-fs/hubfs/help/vpn/linux/openvpn/openvpn-installation-on-linux-os%20en/2.png?width=362&height=397&name=2.png)  
   ![3](https://help.ishosting.com/hs-fs/hubfs/help/vpn/linux/openvpn/openvpn-installation-on-linux-os%20en/3.png?width=663&height=460&name=3.png)
8. You can also find VPN access information in your client area. 
     1. In your client area, find the **VPN Servers** tab.
     2. Click **Manage**.  
        ![10\_en (1)](https://help.ishosting.com/hs-fs/hubfs/help/vpn/linux/openvpn/openvpn-installation-on-linux-os%20en/10_en%20(1).png?width=688&height=280&name=10_en%20(1).png)
     3. In the **Access** section, find the OpenVPN settings.  
        ![10\_en (2)](https://help.ishosting.com/hs-fs/hubfs/help/vpn/linux/openvpn/openvpn-installation-on-linux-os%20en/10_en%20(2).png?width=688&height=340&name=10_en%20(2).png)
     4. Download access information there.  
        ![10\_en (3)](https://help.ishosting.com/hs-fs/hubfs/help/vpn/linux/openvpn/openvpn-installation-on-linux-os%20en/10_en%20(3).png?width=688&height=339&name=10_en%20(3).png)
9. After creating the configuration and specifying the path, download it:
   
   ```
   scp user@vpn-server:/path/to/configuration.ovpn /home/user
   ```
10. To install the OpenVPN client, run the command:
    
    ```
    sudo apt install openvpn
    ```
11. Start the client and specify the path to the configuration downloaded from the server with the following command:
    
    ```
    openvpn --config /path/to/configuration.ovpn
    ```
12. The following line shows that the connection was successful:
    
    ```
    Wed Aug 15 19:00:00 2023 Initialization Sequence Completed
    ```
13. To add or remove clients, as well as remove OpenVPN, run the script again and select the appropriate option.
    
    ```
    ./openvpn-install.sh
    ```
    
    ```
    What do you want to do?Add a new userRevoke existing userRemove OpenVPNExitSelect an option [1-4]:
    ```

If you have any questions, you can ask them in the online chat in the lower right corner of the site or by [ticketing the Techsupport Department](https://my.ishosting.com/en/tickets).

To order [the Personal VPN and Socks5 Proxy service](https://my.ishosting.com/en/plans/vpn), please proceed with the order.

- [Virtual Private Servers](https://help.ishosting.com/en/virtual-private-servers#main-content)

    - [Getting Started](https://help.ishosting.com/en/virtual-private-servers#getting-started)
    - [Working with VPS](https://help.ishosting.com/en/virtual-private-servers#working-with-vps)
    - [Software](https://help.ishosting.com/en/virtual-private-servers#software)
    - [Backup and Data Storage](https://help.ishosting.com/en/virtual-private-servers#backup-and-data-storage)
    - [Additional Services](https://help.ishosting.com/en/virtual-private-servers#additional-services)
    - [VPS Load](https://help.ishosting.com/en/virtual-private-servers#vps-load)
    - [Other Issues](https://help.ishosting.com/en/virtual-private-servers#other-issues)
- [Dedicated Servers](https://help.ishosting.com/en/dedicated-servers#main-content)

    - [Getting Started](https://help.ishosting.com/en/dedicated-servers#getting-started)
    - [Working with Dedicated Server](https://help.ishosting.com/en/dedicated-servers#working-with-dedicated-server)
    - [Additional Services](https://help.ishosting.com/en/dedicated-servers#additional-services)
    - [Other Issues](https://help.ishosting.com/en/dedicated-servers#other-issues)
- [Server Administration](https://help.ishosting.com/en/server-administration#main-content)

    - [API](https://help.ishosting.com/en/server-administration#api)
    - [Windows Instructions](https://help.ishosting.com/en/server-administration#windows-instructions)
    - [UNIX Instructions](https://help.ishosting.com/en/server-administration#unix-instructions)
    - [ispmanager](https://help.ishosting.com/en/server-administration#ispmanager)
    - [VestaCP](https://help.ishosting.com/en/server-administration#vestacp)
    - [DirectAdmin](https://help.ishosting.com/en/server-administration#directadmin)
    - [BitrixVM](https://help.ishosting.com/en/server-administration#bitrixvm)
    - [Security](https://help.ishosting.com/en/server-administration#security)
    - [DDoS Protection](https://help.ishosting.com/en/server-administration#ddos-protection)
    - [Working with Files](https://help.ishosting.com/en/server-administration#working-with-files)
    - [Databases](https://help.ishosting.com/en/server-administration#databases)
    - [PHP](https://help.ishosting.com/en/server-administration#php)
    - [Logs and Statistics](https://help.ishosting.com/en/server-administration#logs-and-statistics)
    - [Diagnostics and Troubleshooting](https://help.ishosting.com/en/server-administration#diagnostics-and-troubleshooting)
    - [HestiaCP](https://help.ishosting.com/en/server-administration#hestiacp)
    - [cPanel](https://help.ishosting.com/en/server-administration#cpanel)
    - [aaPanel](https://help.ishosting.com/en/server-administration#aapanel)
    - [FastPanel](https://help.ishosting.com/en/server-administration#fastpanel)
    - [Other](https://help.ishosting.com/en/server-administration#other)
- [Mail](https://help.ishosting.com/en/mail#main-content)

    - [Getting Started](https://help.ishosting.com/en/mail#getting-started)
    - [ispmanager](https://help.ishosting.com/en/mail#ispmanager)
    - [DirectAdmin](https://help.ishosting.com/en/mail#directadmin)
    - [VestaCP](https://help.ishosting.com/en/mail#vestacp)
    - [Other Issues](https://help.ishosting.com/en/mail#other-issues)
- [VPN](https://help.ishosting.com/en/vpn#main-content)

    - [Getting Started](https://help.ishosting.com/en/vpn#getting-started)
    - [Android](https://help.ishosting.com/en/vpn#android)
    - [iOS](https://help.ishosting.com/en/vpn#ios)
    - [macOS](https://help.ishosting.com/en/vpn#macos)
    - [Mikrotik](https://help.ishosting.com/en/vpn#mikrotik)
    - [Linux](https://help.ishosting.com/en/vpn#linux)
    - [Windows](https://help.ishosting.com/en/vpn#windows)
    - [Amnezia VPN](https://help.ishosting.com/en/vpn#amnezia-vpn)
    - [Hysteria](https://help.ishosting.com/en/vpn#hysteria)
- [Data Storage](https://help.ishosting.com/en/data-storage#main-content)

    - [Getting Started](https://help.ishosting.com/en/data-storage#getting-started)
    - [Backups](https://help.ishosting.com/en/data-storage#backups)
    - [Other](https://help.ishosting.com/en/data-storage#other)
- [SSL Certificates](https://help.ishosting.com/en/ssl-certificates#main-content)

    - [Getting Started](https://help.ishosting.com/en/ssl-certificates#getting-started)
    - [Install](https://help.ishosting.com/en/ssl-certificates#install)
- [Affiliate Program](https://help.ishosting.com/en/affiliate-program)
- [Additional Services](https://help.ishosting.com/en/additional-services#main-content)

    - [Additional IP](https://help.ishosting.com/en/additional-services#additional-ip)
    - [Control Panels](https://help.ishosting.com/en/additional-services#control-panels)
    - [Antivirus](https://help.ishosting.com/en/additional-services#antivirus)
- [Client Area](https://help.ishosting.com/en/client-area#main-content)

    - [Balance History](https://help.ishosting.com/en/client-area#balance-history)
- [Payment for Services](https://help.ishosting.com/en/payment-for-services#main-content)

    - [Getting Started](https://help.ishosting.com/en/payment-for-services#getting-started)
    - [My Account](https://help.ishosting.com/en/payment-for-services#my-account)
    - [Payments](https://help.ishosting.com/en/payment-for-services#payments)
    - [Other Issues](https://help.ishosting.com/en/payment-for-services#other-issues)
- [Documents and Policies](https://help.ishosting.com/en/documents-and-policies#main-content)

    - [General](https://help.ishosting.com/en/documents-and-policies#general)
    - [Company](https://help.ishosting.com/en/documents-and-policies#company)
- [Questions and Answers](https://help.ishosting.com/en/questions-and-answers#main-content)

    - [Control Panels](https://help.ishosting.com/en/questions-and-answers#control-panels)
    - [ispmanager](https://help.ishosting.com/en/questions-and-answers#ispmanager)
    - [Windows](https://help.ishosting.com/en/questions-and-answers#windows)
    - [Linux](https://help.ishosting.com/en/questions-and-answers#linux)
    - [Mail](https://help.ishosting.com/en/questions-and-answers#mail)
    - [Other](https://help.ishosting.com/en/questions-and-answers#other)
- [Special Offers](https://help.ishosting.com/en/special-offers)
- [is\*smart](https://help.ishosting.com/en/issmart#main-content)

    - [General Info](https://help.ishosting.com/en/issmart#general-info)
    - [Getting Started](https://help.ishosting.com/en/issmart#getting-started)
    - [API](https://help.ishosting.com/en/issmart#api)
    - [AI Models](https://help.ishosting.com/en/issmart#ai-models)
- [List of Apps](https://help.ishosting.com/en/list-of-apps)

[![is\*hosting](https://help.ishosting.com/hubfs/ishosting-logo-black.svg "is*hosting")](https://ishosting.com)

<https://www.facebook.com/ishostingcom> <https://twitter.com/ishostingcom> <https://www.instagram.com/is.hosting> <https://www.youtube.com/@ishosting> <https://www.linkedin.com/company/is-hosting>

Copyright © 2025, © Webrain OÜ