add new client

This commit is contained in:
Leon Vita 2022-09-02 03:41:48 +01:00
parent 62fafaa016
commit 7dc7a89971
6 changed files with 5 additions and 6 deletions

3
IPS
View File

@ -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.11.4/24"
"10.10.11.3/24"

View File

@ -1,6 +1,6 @@
[Interface]
Address = 10.10.11.4/24
PrivateKey = GGyRweYx6WbCB33Uck+t8qs3yfiCclWiI0HZWYLsIlY=
Address = 10.10.11.3/24
PrivateKey = qDQVqwEAtTdwUE4ZvjxTybZB7DSoXT05LlVAq3Tp62s=
DNS = 10.10.11.1,8.8.8.8
[Peer]
PublicKey = w3qegSSuqFTFrGk4XJaWBSwGDOiqbnnAIR9MzwjYVA8=

2
gen.sh
View File

@ -44,10 +44,10 @@ check_ip () {
echo "Ip Accepted:"
sleep 2
gen #Function for generate the config.
push #Function for Pushing on Gitea.
echo "Done generating config:"
mv $file_name config_file
mv "$file_name.png" qr-code
push #Function for Pushing on Gitea.
echo -ne '##########################(100%)\n'
python3 -c 'import cat;cat.cat_done()'
fi

BIN
qr-code/vpn1.conf.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1008 B

View File

@ -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=

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB