⚠️ The script only for ubuntu server
install wg server:
curl -O https://raw.githubusercontent.com/evgkg/wireguard_scripts/master/createwg.sh
chmod +x createwg.sh
./createwg.sh
add new client
cd /etc/wireguard
curl -O https://raw.githubusercontent.com/evgkg/wireguard_scripts/master/newclient.sh
chmod +x newclient.sh
./newclient.sh clientname
u can also create a few clients at one time:
./newclient.sh clientname1 clientname2 ... clientnameN