add new client
This commit is contained in:
parent
62fafaa016
commit
7dc7a89971
3
IPS
3
IPS
|
@ -4,8 +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.3/24"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[Interface]
|
[Interface]
|
||||||
Address = 10.10.11.4/24
|
Address = 10.10.11.3/24
|
||||||
PrivateKey = GGyRweYx6WbCB33Uck+t8qs3yfiCclWiI0HZWYLsIlY=
|
PrivateKey = qDQVqwEAtTdwUE4ZvjxTybZB7DSoXT05LlVAq3Tp62s=
|
||||||
DNS = 10.10.11.1,8.8.8.8
|
DNS = 10.10.11.1,8.8.8.8
|
||||||
[Peer]
|
[Peer]
|
||||||
PublicKey = w3qegSSuqFTFrGk4XJaWBSwGDOiqbnnAIR9MzwjYVA8=
|
PublicKey = w3qegSSuqFTFrGk4XJaWBSwGDOiqbnnAIR9MzwjYVA8=
|
2
gen.sh
2
gen.sh
|
@ -44,10 +44,10 @@ check_ip () {
|
||||||
echo "Ip Accepted:"
|
echo "Ip Accepted:"
|
||||||
sleep 2
|
sleep 2
|
||||||
gen #Function for generate the config.
|
gen #Function for generate the config.
|
||||||
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 "$file_name.png" qr-code
|
mv "$file_name.png" qr-code
|
||||||
|
push #Function for Pushing on Gitea.
|
||||||
echo -ne '##########################(100%)\n'
|
echo -ne '##########################(100%)\n'
|
||||||
python3 -c 'import cat;cat.cat_done()'
|
python3 -c 'import cat;cat.cat_done()'
|
||||||
fi
|
fi
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1008 B |
|
@ -1 +1 @@
|
||||||
10.10.11.4/24 = privatekey= GGyRweYx6WbCB33Uck+t8qs3yfiCclWiI0HZWYLsIlY= publickey= xFBw/VvYtlym0NbHk+mDy2chcEW2SI/9NK+U5qrzN1k=
|
10.10.11.3/24 = privatekey= qDQVqwEAtTdwUE4ZvjxTybZB7DSoXT05LlVAq3Tp62s= publickey= aW0DxexC5slC1xdsquFpbXHpLWIDXLUbSsx20Cj8NWA=
|
||||||
|
|
BIN
vpn.conf.png
BIN
vpn.conf.png
Binary file not shown.
Before Width: | Height: | Size: 1.0 KiB |
Loading…
Reference in New Issue