OpenVPN Rapid Installer

From Coolscript
Revision as of 20:49, 2 April 2022 by Admin (talk | contribs) (Created page with "<span style="font-size:180%">''Install and configure OpenVPN including certificates in less than one minute''</span> *Express installation and configuration of [https://commu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install and configure OpenVPN including certificates in less than one minute

  • Express installation and configuration of OpenVPN, this has been tested on any recent Debian, Ubuntu and Raspian releases.
  • Enjoy the wide range of supported OpenVPN Clients, with this Script you may quickly establish a VPN connection, compatible with Windows, Linux, Mac OS, Android and iOS
  • Install and configure OpenVPN together with a Certification Authority and X509 Client Certificates with one single command,
  • Optional journaling

Additional Tools

  • ovpncert
    • Create new ovpn profiles and certificates on the fly
    • Revoke ovpn certificates on the fly
  • ovpnreport
    • Search the journal for login activity, users or ip-addresses
    • List current connections

Installation Samples

Basic with no options

Install and configure OpenVPN with Easy-RSA

  • Default udp port 1194
  • Default network 10.8.0.0/24
  • Automatically installation (-a)
#Copy&Paste
wget -q https://coolscript.org/download/scripts/openvpn/openvpn-install.sh -O \
/tmp/openvpn-install.sh && bash \
/tmp/openvpn-install.sh -a

Custom Network Installation

Install and configure OpenVPN with Easy-RSA

  • Use tcp port 1194 (-o and -p)
  • Use your custom network 192.168.200.0/24 (-n and -m)
  • Automatically installation (-a)
  • Reinstallation if a previous setup exists (-r)
#Copy&Paste
wget -q https://coolscript.org/download/scripts/openvpn/openvpn-install.sh -O \
/tmp/openvpn-install.sh && bash \
/tmp/openvpn-install.sh -a -r \
-o 1194 \
-p tcp \
-n 192.168.200.0 \
-m 24

Recommend - Support local users and journaling

Install and configure OpenVPN with Easy-RSA

  • Default udp port 1194
  • Default network 10.8.0.0/24
  • Automatically installation (-a)
  • Reinstallation if a previous setup exists (-r)
  • Enable additional authentication using local user (-u)
  • Enable journaling (-j)
#Copy&Paste
wget -q https://coolscript.org/download/scripts/openvpn/openvpn-install.sh -O \
/tmp/openvpn-install.sh && bash \
/tmp/openvpn-install.sh -a -r -u -j

Available Arguments

openvpn-install.sh -h
-a Mandatory Flag, Automatic installation, otherwise do nothing than STDOUT
-h Optional Flag, help and exit
-j Optional Flag, Enable jthe journaling
-m Optional String, Network mask set in decimal format, default is $defCIDR bit
-n Optional String, Network Address, default is $defNET
-o Optional String, port, default is $defPort
-p Optional String, protocol (tcp or udp), default is $defProto 
-r Optional Flag, Re-Install application
-u Optional Flag, enforce additional user authentication through local PAM