All Projects → theonemule → Simple Openvpn Server

theonemule / Simple Openvpn Server

Licence: mit
A setup script and simple web UI for setting up an OpenVPN Server

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Simple Openvpn Server

Azuredatalake
Samples and Docs for Azure Data Lake Store and Analytics
Stars: ✭ 128 (-9.22%)
Mutual labels:  azure
Learn Devops
🚧 Learn the craft of "DevOps" (Developer Operations) to Deploy your App and Monitor it so it stays "Up"!
Stars: ✭ 139 (-1.42%)
Mutual labels:  azure
Oauth2 Azure
Azure AD provider for the OAuth 2.0 Client.
Stars: ✭ 140 (-0.71%)
Mutual labels:  azure
Spark
.NET for Apache® Spark™ makes Apache Spark™ easily accessible to .NET developers.
Stars: ✭ 1,721 (+1120.57%)
Mutual labels:  azure
Saga Orchestration Serverless
An orchestration-based saga implementation reference in a serverless architecture
Stars: ✭ 136 (-3.55%)
Mutual labels:  azure
Azsentinel
PowerShell module for Azure Sentinel
Stars: ✭ 140 (-0.71%)
Mutual labels:  azure
Baget
A lightweight NuGet and symbol server
Stars: ✭ 1,861 (+1219.86%)
Mutual labels:  azure
Promitor
Bringing Azure Monitor metrics where you need them.
Stars: ✭ 140 (-0.71%)
Mutual labels:  azure
Azure Signalr
Azure SignalR Service SDK for .NET
Stars: ✭ 137 (-2.84%)
Mutual labels:  azure
Laravel Azure Storage
Microsoft Azure Blob Storage integration for Laravel's Storage API
Stars: ✭ 139 (-1.42%)
Mutual labels:  azure
Bucc
The fastest way to get a BUCC (BOSH, UAA Credhub and Concourse)
Stars: ✭ 130 (-7.8%)
Mutual labels:  azure
Azure Az 900 Study Guide
Study Guide for the Microsoft Azure Fundamentals Exam
Stars: ✭ 134 (-4.96%)
Mutual labels:  azure
Azure kinect ros driver
A ROS sensor driver for the Azure Kinect Developer Kit.
Stars: ✭ 140 (-0.71%)
Mutual labels:  azure
Vscode Deploy Reloaded
Recoded version of Visual Studio Code extension 'vs-deploy', which provides commands to deploy files to one or more destinations.
Stars: ✭ 129 (-8.51%)
Mutual labels:  azure
Azure Event Hubs Spark
Enabling Continuous Data Processing with Apache Spark and Azure Event Hubs
Stars: ✭ 140 (-0.71%)
Mutual labels:  azure
Hybrid multicloud overlay
MutiCloud_Overlay demonstrates a use case of overlay over one or more clouds such as AWS, Azure, GCP, OCI, Alibaba and a vSphere private infrastructure in Hub and spoke topology, point to point topology and in a Single cloud. Overlay protocols IPv6 and IPv4 are independent of underlying infrastructure. This solution can be integrated with encryption and additional security features.
Stars: ✭ 127 (-9.93%)
Mutual labels:  azure
Booster
Booster Cloud Framework
Stars: ✭ 136 (-3.55%)
Mutual labels:  azure
Dicomcloud
Azure friendly DICOMweb part 18 .NET server with qido-rs, wado-rs, stow-rs, wado-uri RESTful implementation
Stars: ✭ 140 (-0.71%)
Mutual labels:  azure
Activelogin.authentication
Support Swedish BankID (svenskt BankID) authentication in .NET.
Stars: ✭ 141 (+0%)
Mutual labels:  azure
Orleans.clustering.kubernetes
Orleans Membership provider for Kubernetes
Stars: ✭ 140 (-0.71%)
Mutual labels:  azure

Simple OpenVPN Server

OpenVPN is a one of the most popular VPN platforms for a lot of good reasons. It's free, open source, and there are clients for just about every platform imaginable. For these reasons, OpenVPN is the choice for organizations and individuals alike.

There are dedicated appliances for OpenVPN that work well for enterprises, but for smaller organizations and individuals, these are overkill. This little project grew out of a desire to create a simple, web based UI for managing OpenVPN while as well as creating a fully automated installer of the the software on a rather lower-powered Linux host, such as an entry level VM on Azure, a Virtual Private Server (VPS) or even a container.

A special thanks goes out to the folks behind openvpn-install for their wonderful project, which serves as an interactive installer on the command line. Much of the heavy lifting for the installer here is from the script there.

The scripts assumes that there is NOT an instance of OpenVPN already installed on the machine and that port 443 is not in use by another web server for HTTPS. Likewise, this script was built for Redhat 6+ and current Debian/Ubuntu distros.

Installing OpenVPN

Optionally, you can do a completely automated deployment to Azure and skip past the installation to Managing Clients.

Otherwise, use the installer:

  1. Pull up a terminal or SSH into the target server.

  2. Logon as root

    sudo -i
    
  3. Download the installer script.

    wget https://raw.githubusercontent.com/theonemule/simple-openvpn-server/master/openvpn.sh
    
  4. Make the script executable

    chmod +x openvpn.sh
    
  5. Run the script.

    ./openvpn.sh [options]
    

    Example:

    ./openvpn.sh --adminpassword=mypassword --host=myvpn.example.com
    

    There are number of options the script will accept

    adminpassword -- This is the admin password for the website for managing clients. The default is password.

    dns1 -- The first dns server assigned to the clients. The default is 8.8.8.8.

    dns2 -- The first dns server assigned to the clients. The default is 8.8.4.4.

    vpnport -- The port to be used by OpenVPN. 1194 may be blocked by some firewalls, so this is customizable. The default port is 1194.

    protocol -- The protocol to be used by OpenVPN. This accepts udp or tcp. The default is udp.

    host -- The host name of the server. The script attempts to detect the external IP of your server if the host is not specified. It is highly recommended that you use a host name if your sever is not using a static IP address. You can get a free dynamic DNS account and use a dynamic DNS updater that keeps the DNS records for your server up to date in the event that your IPa address changes.

  6. Let the installer finish. This may take a few minutes, as the intaller generates a few keys to set up a certificate authority (CA) that is used to assign certificates to the clients.

  7. If the server you are installing this on is behind a firewall, be sure that you forward the external ports from the firewall to the ports on the server for the VPN. Optionally, if you want to be able to manage the VPN from outside the firewall, forward a port to 443 on the VPN Server.

Managing Profiles

  1. Once the script is complete, point your browser to https://[your host or IP]/, where your host or IP is the host name or IP addressed for the VPN. You may get an error about the site not being secure even though you are using https. This is because the site is using a self-esigned certificate. Simply ignore the warning.

  2. Logon to the admin site. Use admin for the username and the password used for the adminpassword option when the installer was run. If you did not supply one, use password.

    Logon

  3. Once logged on, enter a name for the client and click Add.

    Add a client

  4. Once added, you can click Revoke to revoke access or Download to download the client profile.

    Revoke or Download

Connecting to the Server

Once the profile is downloaded you need to configure a client:

  • Windows: use OpenVPN GUI. After installing the app, copy the .ovon to the C:\Program Files\OpenVPN\config folder. Launch the GUI from your Start menu, then right click the icon in the Tool Tray, then click Connect. Disconnect by right clicking and selecting Disconnect.

  • MacOS (OS X): use Tunnelblick. Download and install Tunnelblick. After downloading, double-click on the downloaded .ovpn file and import the configuration either for yourself or all users. Once imported, click the Tunnleblick icon on the menu bar and click Connect. Disconnect by clicking the Tunnelblick icon and selecting Disconnect.

  • Android: use OpenVPN Connect for Android. Download and install the app. Next, go to the admin site and create and/or download a profile. In the app, select Import from the menu, then select Import, then select Import Profile from SD card. Find the profile in your Downloads folder and import the profile. Once downloaded, click Connect. To disconnect, open the app again and select Disconnect.

  • iOS: use OpenVPN Connect for iOS. Install the app, then browse to the admin site in Safari. Create and/or download a profile. After the profile is downloaded, select Open in Open VPN. Install the profile, then select Connect to connect to the VPN. To disconnect, open the app again and select Disconnect.

That's it! Your VPN is up and running.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].