add new client=''
This commit is contained in:
parent
60f2fc922a
commit
008591be8b
2
IPS
2
IPS
|
@ -4,7 +4,7 @@ ips=(
|
||||||
#server_ips:
|
#server_ips:
|
||||||
"10.10.11.1/24" "10.10.100.1/24" "10.10.11.2/24"
|
"10.10.11.1/24" "10.10.100.1/24" "10.10.11.2/24"
|
||||||
#Client_ips:
|
#Client_ips:
|
||||||
"10.10.11.4/24"
|
"10.10.11.5/24" "10.10.11.4/24"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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
|
Binary file not shown.
After Width: | Height: | Size: 1020 B |
4
gen.sh
4
gen.sh
|
@ -45,7 +45,7 @@ check_ip () {
|
||||||
push #Function for Pushing on Gitea.
|
push #Function for Pushing on Gitea.
|
||||||
echo "Done generating config:"
|
echo "Done generating config:"
|
||||||
mv $file_name config_file
|
mv $file_name config_file
|
||||||
mv qrscanme.png qr-code
|
mv "$file_name.png" qr-code
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
echo -ne '##### (33%)\n'
|
echo -ne '##### (33%)\n'
|
||||||
|
@ -103,7 +103,7 @@ echo "PersistentKeepalive = 25" >> $file_name
|
||||||
echo -ne '################## (65%)\n'
|
echo -ne '################## (65%)\n'
|
||||||
sleep 1
|
sleep 1
|
||||||
if [ $user_wish -eq 1 ];then
|
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"
|
echo "Please scan this code with wireguard-app"
|
||||||
elif [ $user_wish -eq 2 ];then
|
elif [ $user_wish -eq 2 ];then
|
||||||
echo "Your file is ready"
|
echo "Your file is ready"
|
||||||
|
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
@ -1 +1,2 @@
|
||||||
10.10.11.4/24 = privatekey= sKo8wS23fqlZNGWjuyEZq0v7B838H9gHoNALjY7ZbFs= publickey= WIga9sClL3CGCJgwTs9MgGth29ZsS7XDGAzqbu+cVko=
|
10.10.11.4/24 = privatekey= sKo8wS23fqlZNGWjuyEZq0v7B838H9gHoNALjY7ZbFs= publickey= WIga9sClL3CGCJgwTs9MgGth29ZsS7XDGAzqbu+cVko=
|
||||||
|
10.10.11.5/24 = privatekey= +KHM/pPWnxoJPfIXwdWXv+RUsD6H80O/hnq0CPhjMGo= publickey= VpUJl37tSBViN5ypVLHlfxSN8lOsc4vgwxsClQIZQm4=
|
||||||
|
|
Loading…
Reference in New Issue