add new client=''

This commit is contained in:
Leon Vita 2022-09-02 01:46:14 +01:00
parent 60f2fc922a
commit 008591be8b
7 changed files with 13 additions and 3 deletions

2
IPS
View File

@ -4,7 +4,7 @@ ips=(
#server_ips:
"10.10.11.1/24" "10.10.100.1/24" "10.10.11.2/24"
#Client_ips:
"10.10.11.4/24"
"10.10.11.5/24" "10.10.11.4/24"

9
client.conf Normal file
View File

@ -0,0 +1,9 @@
[Interface]
Address = 10.10.11.5/24
PrivateKey = +KHM/pPWnxoJPfIXwdWXv+RUsD6H80O/hnq0CPhjMGo=
DNS = 10.10.11.1,8.8.8.8
[Peer]
PublicKey = w3qegSSuqFTFrGk4XJaWBSwGDOiqbnnAIR9MzwjYVA8=
Endpoint = 81.201.149.152:18800
AllowedIPs= 10.10.11.0/24
PersistentKeepalive = 25

BIN
client.conf.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1020 B

4
gen.sh
View File

@ -45,7 +45,7 @@ check_ip () {
push #Function for Pushing on Gitea.
echo "Done generating config:"
mv $file_name config_file
mv qrscanme.png qr-code
mv "$file_name.png" qr-code
fi
}
echo -ne '##### (33%)\n'
@ -103,7 +103,7 @@ echo "PersistentKeepalive = 25" >> $file_name
echo -ne '################## (65%)\n'
sleep 1
if [ $user_wish -eq 1 ];then
qrencode -t PNG -o qrscanme.png < "$file_name"
qrencode -t PNG -o "$file_name.png" < "$file_name"
echo "Please scan this code with wireguard-app"
elif [ $user_wish -eq 2 ];then
echo "Your file is ready"

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -1 +1,2 @@
10.10.11.4/24 = privatekey= sKo8wS23fqlZNGWjuyEZq0v7B838H9gHoNALjY7ZbFs= publickey= WIga9sClL3CGCJgwTs9MgGth29ZsS7XDGAzqbu+cVko=
10.10.11.5/24 = privatekey= +KHM/pPWnxoJPfIXwdWXv+RUsD6H80O/hnq0CPhjMGo= publickey= VpUJl37tSBViN5ypVLHlfxSN8lOsc4vgwxsClQIZQm4=