Update awg-manager.sh
This commit is contained in:
parent
6be8733bcc
commit
ee0950ca34
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user