This commit is contained in:
Leon Vita 2022-08-31 04:10:05 +00:00
parent 608c7e1f69
commit e16a965b0f
3 changed files with 12 additions and 4 deletions

7
gen.sh
View File

@ -54,13 +54,12 @@ echo "PersistentKeepalive = 25" >> vpn.conf
echo "Would You Like To Have This Config On QR-Code Or File:"
qr=1
file=2
echo -e "QR-code Press 1:\nFile Press 2:\n"
if [ $qr -eq 1 ];then
read user_wish
if [ $user_wish -eq 1 ];then
qrencode -t ansiutf8 < . qr-scan-me.conf
echo "Please scan this code with wireguard-app"
elif [ $file -eq 2 ];then
elif [ $user_wish -eq 2 ];then
echo "Your file is ready"
else
echo "Oops wrong input"

BIN
qr Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 913 B

9
vpn.conf Normal file
View File

@ -0,0 +1,9 @@
[Interface]
Address = 1
PrivateKey = ENiMbxsidpHugMPCAFvytn+lOSyJwcK1A+TMyZKRi2Q=
DNS = 1
[Peer]
PublicKey = M6T+PwMTUhr6BJFGu7OY0she6Z2laPkZKCQWE0HRahE=
Endpoint = 176.58.109.31:7000
AllowedIPs= 1
PersistentKeepalive = 25