Jump to content

Recommended Posts

  • Superior Administrator
Posted

OpenVPN installer for Debian, Ubuntu, Fedora, CentOS and Arch Linux.

 

This script will let you setup your own secure VPN server in just a few seconds.

 

You can also check out

This is the hidden content, please
, a simple, safer, faster and more modern VPN protocol.

 

Usage

First, get the script and make it executable :

 

curl -O https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh
chmod +x openvpn-install.sh

 

Then run it :

 

./openvpn-install.sh

 

You need to run the script as root and have the TUN module enabled.

 

The first time you run it, you'll have to follow the assistant and answer a few questions to setup your VPN server.

 

When OpenVPN is installed, you can run the script again, and you will get the choice to :

 

  • Add a client
  • Remove a client
  • Uninstall OpenVPN

In your home directory, you will have .ovpn files. These are the client configuration files. Download them from your server and connect using your favorite OpenVPN client.

 

Features

  • Installs and configures a ready-to-use OpenVPN server
  • Iptables rules and forwarding managed in a seamless way
  • If needed, the script can cleanly remove OpenVPN, including configuration and iptables rules
  • Customisable encryption settings, enhanced default settings (see
    This is the hidden content, please
    below)
  • OpenVPN 2.4 features, mainly encryption improvements (see
    This is the hidden content, please
    below)
  • Variety of DNS resolvers to be pushed to the clients
  • Choice to use a self-hosted resolver with Unbound (supports already existing Unbound installations)
  • Choice between TCP and UDP
  • NATed IPv6 support
  • Compression disabled by default to prevent VORACLE. LZ4 and LZ0 algorithms available otherwise.
  • Unprivileged mode: run as nobody/nogroup
  • Block DNS leaks on Windows 10
  • Randomised server certificate name
  • Choice to protect clients with a password (private key encryption)
  • Many other little things!

Source:

This is the hidden content, please

  • Like 3
  • 2 months later...
  • Superior Administrator
Posted

Running two servers with different configuration

 

I hardcoded like this

 

  1. After a clean install with UDP mode
  2. clone server.conf into server2.conf (manual edit UDP => TCP mode)
  3. in server2.conf, change ip 10.8.0.1 to 10.9.0.1
  4. add 10.9.0.1 in IPtables
  5. at line 838 or close to it, add
    sed -i 's|server2.conf' /lib/systemd/system/openvpn/server2.service
  6. service openvpn@server restart and service openvpn@server2 restart
  7. try lsof -i:1194 your port number, you will see both UDP & TCP openvpn services are running

38155944-3c34fe1a-34ad-11e8-92c9-71da3a4dee4e.png

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...
×
GloTorrents Community Forum
Home
Activities
Sign In
Search
More
×