/atakhq-wg-install-scripts

Script package that will install WireGuard for you on a centos7 server and walk you through the entire process, prompting your for user creation so your don't have to manually create certs one by one.

Primary LanguageShell

Wireguard Install Scripts

This is a script package that will install wireguard for you on Ubuntu or CentOS7.

Also creates QR codes for easy connection.

  1. SSH into your server as root

  2. Install git if you do not have it installed already

sudo yum install -y git for centos7, ubuntu should have installed already.

  1. Clone this repo to your server

git clone https://github.com/atakhq/wg-install-scripts.git

  1. Move into the folder, make the script executable, run it

cd wg-install-scripts

sudo chmod +x *

. wgInstallScript_CENTOS7.sh

or

. wgInstallScript_UBUNTU.sh

Post Install

  1. Clone this repo to your server

git clone https://github.com/atakhq/wg-install-scripts.git

  1. Move into the folder, make the scripts executable, run the local transfer scripts:

./wgGetConfigQrPngs.sh for a scanable QR code to auto-create the connection in wireguard client (suggested)

or

./wgGetConfigFiles.sh for the .conf text files.

Run wgLocalMachineConfigDownloader.sh from your local machine to download the config QR Code PNG's to scan and auto-create your connections on your client devices.