Update awg-manager.sh

This commit is contained in:
Bkeenke 2024-02-15 16:09:53 +03:00 committed by GitHub
parent 6be8733bcc
commit ee0950ca34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -188,9 +188,8 @@ function create {
cat <<EOF > "keys/${USER}/${USER}.conf" cat <<EOF > "keys/${USER}/${USER}.conf"
[Interface] [Interface]
Address = ${USER_IP}
PrivateKey = ${USER_PVT_KEY} PrivateKey = ${USER_PVT_KEY}
DNS = 8.8.8.8 Address = ${USER_IP}
Jc = 9 Jc = 9
Jmin = 50 Jmin = 50
Jmax = 1000 Jmax = 1000
@ -204,8 +203,8 @@ H4 = 297399059
[Peer] [Peer]
PublicKey = ${SERVER_PUB_KEY} PublicKey = ${SERVER_PUB_KEY}
Endpoint = ${SERVER_ENDPOINT}:${SERVER_PORT} Endpoint = ${SERVER_ENDPOINT}:${SERVER_PORT}
PersistentKeepalive = 20
AllowedIPs = 0.0.0.0/0 AllowedIPs = 0.0.0.0/0
PersistentKeepalive = 20
EOF EOF
add_user_to_server add_user_to_server