1
0
mirror of https://github.com/Nyr/openvpn-install.git synced 2024-11-27 23:46:07 +03:00
openvpn-install/README.md

112 lines
3.6 KiB
Markdown
Raw Normal View History

# OpenVPN Installer
2013-05-14 16:04:19 +04:00
## To Developers and Users
2013-05-14 16:04:19 +04:00
**WARNING: Only Trust Signed Commits.**
2018-07-14 23:54:34 +03:00
## Table of Contents
2013-05-14 16:04:19 +04:00
- [Description](#description)
- [Installation](#installation)
2018-07-25 06:21:46 +03:00
- [Client setup](#client-setup)
- [Troubleshooting](#troubleshooting)
- [FAQ](#faq)
- [Donations](#donations)
2013-05-14 16:04:19 +04:00
## Description
2013-05-14 16:04:19 +04:00
OpenVPN installer for Debian, Ubuntu and CentOS, with support for OpenVPN over SSL.
2013-05-14 16:04:19 +04:00
This script lets you set up your own OpenVPN server in minutes, even if you no experience OpenVPN before. It's designed to be as simple, unobtrusive, and universal as possible.
## Installation
2018-07-25 00:07:28 +03:00
If you run into any issues during installation, please refer to [Troubleshooting](#troubleshooting).
2018-07-25 06:25:48 +03:00
### Install on CentOS/Debian/Ubuntu
2018-07-25 06:21:46 +03:00
- **Please note: if your server is running the following OS versions, please select `AES-256-CBC` when you're asked to select a cipher mode.**
- CentOS 6 or older
- Debian 8 (Jessie) or older
- Ubuntu 16.10 or older
2018-07-25 06:21:46 +03:00
- Run this in a terminal on your server, and follow the on-screen instructions:
2018-07-25 06:21:46 +03:00
```bash
# Download the script
wget https://raw.githubusercontent.com/birkhoffcheng/openvpn-install/master/openvpn-install.sh
# Run the install script
sudo bash openvpn-install.sh
2018-07-25 06:21:46 +03:00
# Start stunnel (only if you're using OpenVPN over SSL)
sudo stunnel
```
2018-07-25 06:21:46 +03:00
- Once it finishes, your OpenVPN server is up and running! You should [set up client devices](#client-setup) next.
## Client setup
### Before continuing...
- Download the `.ovpn` file from your server.
- If you're using OpenVPN with SSL, also download `stunnel.crt` and `stunnel.conf` from your server.
- If your username is `root`, they're located at `/root`.
- Otherwise, they're located at `/home/<YOUR USERNAME>`.
### OS-specific setup processes
2018-07-25 06:21:46 +03:00
- [OpenVPN (without SSL)](Documentation/client-ovpn.md)
- [OpenVPN over SSL](Documentation/client-ssl.md)
2018-07-25 06:21:46 +03:00
## Troubleshooting
2018-07-25 06:21:46 +03:00
- `wget: command not found`: This means that `wget` isn't install it on your server. Just install it and try again. To install `wget`:
```bash
2018-07-25 06:21:46 +03:00
# Run this on Debian/Ubuntu
sudo apt -y install wget
2018-07-25 06:21:46 +03:00
# Run this on CentOS
sudo yum -y install wget
```
2018-07-25 06:21:46 +03:00
- `The TUN device is not available. You need to enable TUN before running this script`: Follow [this guide](https://help.skysilk.com/support/solutions/articles/9000136471-how-to-enable-tun-tap-on-linux-vps-with-skysilk).
2018-07-25 06:21:46 +03:00
- If you're unable to connect to your server with OpenVPN...
2018-07-25 06:21:46 +03:00
- Please check if `stunnel` is running on your device. (if you're using OpenVPN over SSL)
2018-07-25 06:21:46 +03:00
- On Windows, check if the `stunnel` icon is present in the Task Bar (bottom right).
- Run this to check on MacOS or Linux (both client and server)
2018-07-25 06:21:46 +03:00
```bash
# You should see stunnel in the output
ps -A | grep stunnel
```
2018-07-25 06:21:46 +03:00
- Also check if both `stunnel` (if applicable) and OpenVPN are running on your server.
2018-07-25 06:21:46 +03:00
```bash
# You should see stunnel in the output (if you're using OpenVPN over SSL)
ps -A | grep stunnel
2018-07-25 06:21:46 +03:00
# You should see openvpn in the output
ps -A | grep openvpn
```
- If you still can't connect, try removing and reinstalling OpenVPN on your server.
2018-07-25 06:21:46 +03:00
- Run the install script and select `Uninstall`
- Run the install script again and make sure you enter the correct information.
## FAQ
### Where to find a VPS
You can get a VPS for as little as $2.50/month (IPv6 only) or $5/month (with IPv4) at [Vultr](https://www.vultr.com/?ref=7088313) or $5/month (with IPv4) at [DigitalOcean](https://m.do.co/c/c51ec51bb352).
## Donations
2014-12-11 01:31:04 +03:00
If you want to show some appreciation, you can donate via [PayPal](https://paypal.me/birkhoffcheng) or Bitcoin (12R4euPg17EfJyYNfdTxjiQ2SctW1b4CRz). Thanks!