Update awg-manager.sh

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

View File

@ -148,15 +148,15 @@ PrivateKey = ${SERVER_PVT_KEY}
PostUp = iptables -P FORWARD ACCEPT
PostUp = iptables -t nat -A POSTROUTING -o ${SERVER_INTERFACE} -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o ${SERVER_INTERFACE} -j MASQUERADE
Jc = 9
Jc = 7
Jmin = 50
Jmax = 1000
S1 = 122
S2 = 73
H1 = 1885740354
H2 = 1719205186
H3 = 2118327503
H4 = 297399059
S1 = 116
S2 = 61
H1 = 1139437039
H2 = 1088834137
H3 = 977318325
H4 = 1583407056
EOF
@ -190,15 +190,16 @@ cat <<EOF > "keys/${USER}/${USER}.conf"
[Interface]
PrivateKey = ${USER_PVT_KEY}
Address = ${USER_IP}
Jc = 9
MTU = 1350
Jc = 7
Jmin = 50
Jmax = 1000
S1 = 122
S2 = 73
H1 = 1885740354
H2 = 1719205186
H3 = 2118327503
H4 = 297399059
S1 = 116
S2 = 61
H1 = 1139437039
H2 = 1088834137
H3 = 977318325
H4 = 1583407056
[Peer]
PublicKey = ${SERVER_PUB_KEY}