OpenVPN server installer for Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, Fedora, openSUSE, Amazon Linux 2 and Raspberry Pi OS
MIT License
ย
Linux OpenVPN Ubuntu, Debian, AlmaLinux, Rocky Linux, CentOS, Fedora, openSUSE, Amazon Linux 2 Raspberry Pi OS
VPN OpenVPNOpenVPN VPN
ยป ๐ Book: VPN [ | English | Espaol | Deutsch | Franais]
sysctl
VPNLinux *
wget -O openvpn.sh https://get.vpnsetup.net/ovpn
* (VPS)
** 1:** OpenVPN
sudo bash openvpn.sh --auto
** 2:**
sudo bash openvpn.sh
VPN (TCP/UDP) VPN DNS
VPN TCP UDP
curl
curl -fL -o openvpn.sh https://get.vpnsetup.net/ovpn
https://github.com/hwdsl2/openvpn-install/raw/master/openvpn-install.sh
https://gitlab.com/hwdsl2/openvpn-install/-/raw/master/openvpn-install.sh
openvpn-install.sh Raw
Ctrl/Cmd+A
Ctrl/Cmd+C
OpenVPN OpenVPN
Bash "here document"
OpenVPN
sudo bash openvpn.sh
OpenVPN
sudo bash openvpn.sh <<ANSWERS
n
1
1194
2
client
y
ANSWERS
Usage: bash openvpn.sh [options]
Options:
--addclient [client name] add a new client
--exportclient [client name] export configuration for an existing client
--listclients list the names of existing clients
--revokeclient [client name] revoke an existing client
--uninstall remove OpenVPN and delete all configuration
-y, --yes assume "yes" as answer to prompts when revoking a client or removing OpenVPN
-h, --help show this help message and exit
Install options (optional):
--auto auto install OpenVPN using default or custom options
--listenaddr [IPv4 address] IPv4 address that OpenVPN should listen on for requests
--serveraddr [DNS name or IP] server address, must be a fully qualified domain name (FQDN) or an IPv4 address
--proto [TCP or UDP] protocol for OpenVPN (TCP or UDP, default: UDP)
--port [number] port for OpenVPN (1-65535, default: 1194)
--clientname [client name] name for the first OpenVPN client (default: client)
--dns1 [DNS server IP] primary DNS server for clients (default: Google Public DNS)
--dns2 [DNS server IP] secondary DNS server for clients
To customize options, you may also run this script without arguments.
OpenVPN
VPN
** ๐ VPN book **
VPN! โจ๐๐โจ
Nyr contributors Setup IPsec VPN
sysctl
VPNsudo
...
MIT