Page 1 of 1

Installation-wireguard-server-Ubuntu-18

Posted: Sat Mar 06, 2021 5:54 am
by anonim1
sudo apt update

sudo apt upgrade

sudo add-apt-repository ppa:wireguard/wireguard

sudo apt-get update

sudo apt-get install wireguard

sudo apt-get install mawk grep iproute2 qrencode

wget https://raw.githubusercontent.com/burgh ... y-wg-quick

nano /etc/sysctl.conf


#net.ipv4.ip_forward = 1 /////# clear///////
net.ipv4.ip_forward = 1
Ctrl+C
Ctrl+X


sysctl -p


net.ipv4.ip_forward = 1


chmod +x easy-wg-quick

./easy-wg-quick

cat wgclient_10.conf

cp wghub.conf /etc/wireguard/wghub.conf

systemctl enable wg-quick@wghub

systemctl start wg-quick@wghub

wg show

adding new profiles///////////////
./easy-wg-quick profile_name
+
cp wghub.conf /etc/wireguard/wghub.conf
+
systemctl restart wg-quick@wghub

skip line 2 do not wgclient_10.conf in the root folder
WinSCP wgclient_10.conf https://winscp.net/eng/download.php
https://www.wireguard.com/install/
https://www.chiark.greenend.org.uk/~sgt ... atest.html PuTTY
change the port to come up with your own