diff --git a/IPS b/IPS index 2501270..5a943b6 100644 --- a/IPS +++ b/IPS @@ -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" diff --git a/client.conf b/client.conf new file mode 100644 index 0000000..0c41246 --- /dev/null +++ b/client.conf @@ -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 diff --git a/client.conf.png b/client.conf.png new file mode 100644 index 0000000..a7ebefd Binary files /dev/null and b/client.conf.png differ diff --git a/vpn.conf b/config_file/vpn.conf similarity index 100% rename from vpn.conf rename to config_file/vpn.conf diff --git a/gen.sh b/gen.sh index 6d50927..e01f0af 100755 --- a/gen.sh +++ b/gen.sh @@ -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" diff --git a/qrscanme.png b/qr-code/qrscanme.png similarity index 100% rename from qrscanme.png rename to qr-code/qrscanme.png diff --git a/user_info b/user_info index a30e03d..136ef21 100644 --- a/user_info +++ b/user_info @@ -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=