1
0
Fork 0
mirror of https://github.com/Nyr/openvpn-install.git synced 2025-04-05 05:33:30 +03:00
OpenVPN road warrior installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS and Fedora
Find a file
2022-09-13 17:00:42 -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 Update README.md 2022-09-13 17:00:42 -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

make a file norouting.bash sed -i '/verb 3/r nopuul.txt' $1

then you can add the setting to the usercofig with bash norouting.bash <USERNAME>.ovpn

or on the vpn server side remove redirect-gateway def1