OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
Go to file
Zack Dai 0edec285e2
add more infomation to help set up the client side
This is a simple setting but I do spend massive time figuring it out. To save more time in the future for everyone.
2022-09-07 20:59:44 -04:00
LICENSE.txt Create LICENSE.txt 2013-12-09 00:53:09 +01:00
openvpn-install.sh Fix resolv.conf detection 2022-08-21 20:33:34 +02:00
README.md add more infomation to help set up the client side 2022-09-07 20:59:44 -04:00

New: wireguard-install is also available.

openvpn-install

OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora.

This script will let you set up your own VPN server in no more than a minute, even if you haven't used OpenVPN before. It has been designed to be as unobtrusive and universal as possible.

Installation

Run the script and follow the assistant:

wget https://git.io/vpn -O openvpn-install.sh && bash openvpn-install.sh

Once it ends, you can run it again to add more users, remove some of them or even completely uninstall OpenVPN.

I want to run my own VPN but don't have a server for that

You can get a VPS from just 2€/month at AlphaVPS.

Donations

If you want to show your appreciation, you can donate via PayPal or cryptocurrency. Thanks!

Create/disable another user

bash openvpn-install.sh

Install client on ubuntu server

sudo apt update
sudo apt install openvpn

Copy .ovpn to the target machine

sudo service openvpn@client start

Some note

partial routing (if do not want redirect all traffic to the vpn server. If you have a machine that host public app e.g. website server, you will need this setting.)

in the client side edit .ovpn add

route-nopull
route 10.8.0.0 255.255.255.0

or on the vpn server side remove redirect-gateway def1