Skip to content

Secure WireGuard server installer for Debian, Ubuntu, CentOS

License

Notifications You must be signed in to change notification settings

X1Aaron/wireguard-install-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

wireguard-install

curl -O https://raw.githubusercontent.com/LiveChief/wireguard-install/master/wireguard-install.sh 
bash wireguard-install.sh
INTERACTIVE - if set to "no", the script will not prompt for user input
PRIVATE_SUBNET - private subnet configuration, "10.8.0.0/24" by default
SERVER_HOST - public IP address, detected by default
SERVER_PORT - listening port, picked random by default
CLIENT_DNS - comma serparated DNS servers to use by the client

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
sudo systemctl start [email protected]

To show VPN status, run

sudo wg show

About

Secure WireGuard server installer for Debian, Ubuntu, CentOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages