add new client=''
This commit is contained in:
parent
e8ee9edbb3
commit
ee06119504
3
IPS
3
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"
|
||||
|
||||
|
||||
|
||||
|
|
6
gen.sh
6
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'
|
||||
|
|
|
@ -1 +1 @@
|
|||
10.10.123123/24 = privatekey= CBmbXblmBNEePTMZO23d8L850rmOgqlaIBoxBG2NSHQ= publickey= pApnZKYsBJ6kT6HiI9+XK88qCx2exbWHZm1xnYVs4kA=
|
||||
10.10111.11111./24 = privatekey= 2B5vDUu1JZZtpV7jMHfMYsF9Z8LHVSufIFWpQ6LIDFg= publickey= 3vE61SIhfnLdIOjalMZbxuKBxiTdOrAeJnPRIIx8Qg4=
|
||||
|
|
7
vpn.conf
7
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
|
||||
|
|
Loading…
Reference in New Issue