Awesome Open Source
Awesome Open Source


This repository is no longer maintained due to lack of time. Use some other scripts instead.

WireGuard road warrior installer for Ubuntu 18.04 LTS, Debian 9 and CentOS 7.

This script will let you setup your own VPN server in no more than a minute, even if you haven't used WireGuard before. It has been designed to be as unobtrusive and universal as possible.


Run the script and follow the assistant:

wget -O

Once it ends, you can run it again to add more users. Reboot your server to apply all settings.


The script can be configured by setting the following environment variables:

  • INTERACTIVE - if set to "no", the script will not prompt for user input
  • PRIVATE_SUBNET - private subnet configuration, "" by default
  • SERVER_HOST - public IP address, detected by default
  • SERVER_PORT - listening port, picked random by default
  • CLIENT_DNS - comma separated DNS servers to use by the client

Setting up clients

Ubuntu PC

Install WireGuard and reboot your computer:

sudo add-apt-repository ppa:wireguard/wireguard -y && sudo apt update && sudo apt install wireguard resolvconf -y
sudo reboot

Copy the file /root/client-wg0.conf from a remote server to your local PC path /etc/wireguard/wg0.conf and run sudo systemctl start [email protected]

To show VPN status, run sudo wg show.


Inspired by Nyr's openvpn-install.

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Shell (182,399
Server (65,691
Script (62,258
Security (32,260
Dns (10,291
Installer (6,718
Pc (5,956
Networking (5,568
Privacy (5,313
Vpn (4,002
Subnet (1,425
Self Hosted (1,420
Wireguard (802
Vpn Server (337