diff --git a/IPS b/IPS index 965d6b5..71c1a56 100644 --- a/IPS +++ b/IPS @@ -4,8 +4,7 @@ ips=( #server_ips: "10.10.11.1/24" "10.10.100.1/24" "10.10.11.2/24" #Client_ips: - 10.10.123123/24 - + "10.10111.11111./24" diff --git a/gen.sh b/gen.sh index 0c6e229..e01a07e 100755 --- a/gen.sh +++ b/gen.sh @@ -39,7 +39,7 @@ check_ip () { #Checking if the ip net exist do this: if [[ $i -ne 1 ]] then - echo "Ip Accepted:";echo "Your Config will be generate in seconds." + echo "Ip Accepted:" sleep 2 gen fi @@ -102,7 +102,7 @@ sleep 1 #---------------Done-Build------------------ #--------------Writing-New-Data------------- -sed -i '' '7i\'$'\n'' '$user_input' ' IPS +sed -i '' '7i\'$'\n'' "'$user_input'" ' IPS echo -ne '###################### (85%)\n' sleep 1 @@ -122,12 +122,12 @@ push (){ git commit -m "add new client='$userinput'" git push echo -e "Done Pushing." + echo -ne '######################### (95%)\n' } #---------------Pushing-to-repo----------------- #---------------Call-Functions----------------- -echo -ne '######################### (95%)\n' check_ip push echo -ne '##########################(100%)\n' diff --git a/user_info b/user_info index 0aaf462..d5f7745 100644 --- a/user_info +++ b/user_info @@ -1 +1 @@ -10.10.123123/24 = privatekey= CBmbXblmBNEePTMZO23d8L850rmOgqlaIBoxBG2NSHQ= publickey= pApnZKYsBJ6kT6HiI9+XK88qCx2exbWHZm1xnYVs4kA= +10.10111.11111./24 = privatekey= 2B5vDUu1JZZtpV7jMHfMYsF9Z8LHVSufIFWpQ6LIDFg= publickey= 3vE61SIhfnLdIOjalMZbxuKBxiTdOrAeJnPRIIx8Qg4= diff --git a/vpn.conf b/vpn.conf index dbbe5bf..33206bc 100644 --- a/vpn.conf +++ b/vpn.conf @@ -1,8 +1,9 @@ [Interface] -Address = 10.10.123123/24 -PrivateKey = CBmbXblmBNEePTMZO23d8L850rmOgqlaIBoxBG2NSHQ= +Address = 10.10111.11111./24 +PrivateKey = 2B5vDUu1JZZtpV7jMHfMYsF9Z8LHVSufIFWpQ6LIDFg= +DNS = 10.10.11.1,8.8.8.8 [Peer] PublicKey = w3qegSSuqFTFrGk4XJaWBSwGDOiqbnnAIR9MzwjYVA8= Endpoint = 81.201.149.152:18800 -AllowedIPs= 199992/24 +AllowedIPs= 10.10.10.11/24 PersistentKeepalive = 25