
Looking to set up your own secure VPN server without spending hours reading tutorials or configuring files manually?
Hosteons now offers a free, open-source VPN One-Click Installer that helps you launch either OpenVPN or WireGuard on your VPS within minutes. Whether youāre using Ubuntu, Debian, CentOS, or AlmaLinux, this script has you covered.
ā Why Use This Script?
- SupportsĀ both OpenVPN and WireGuard
- Works on most major Linux distros
- Secure and production-ready defaults
- Fully automated ā minimal input required
- Outputs ready-to-use config files for clients
- Ideal for privacy, remote access, and secure browsing
š§° Supported Operating Systems
- Ubuntu 20.04 / 22.04
- Debian 11 and above
- AlmaLinux 8 / 9
- CentOS 7 / 8
š How to Use
SSH into your VPS and run:
wget https://raw.githubusercontent.com/hosteons/vpn-oneclick-installer/main/vpn_installer.sh
chmod +x vpn_installer.sh
sudo ./vpn_installer.sh
Youāll be prompted to choose:
1) WireGuard
2) OpenVPN
Based on your choice, the script installs and configures the selected VPN protocol, generates certificates or keys, configures firewall rules, and finally saves your client configuration file in:
- /root/client.ovpnĀ for OpenVPN
- /root/client.confĀ for WireGuard
You can then download these and import into your VPN app.
š Whatās Under the Hood?
For OpenVPN, the script uses Easy-RSA to:
- Generate CA, server, and client certs
- Create Diffie-Hellman parameters
- Build a secureĀ server.conf
- Auto-start the VPN service when supported
For WireGuard, it:
- Generates private/public key pairs
- Sets up a basic peer-to-peer configuration
- EnablesĀ wg-quick@wg0
š GitHub Repository
Explore, star, or fork the repo:
š https://github.com/hosteons/vpn-oneclick-installer