mirror of
https://github.com/teddysun/across.git
synced 2025-01-19 06:19:35 +08:00
Update comments
Added PersistentKeepalive option
This commit is contained in:
parent
605837ca5e
commit
26090ded9d
@ -453,6 +453,7 @@ PrivateKey = ${SERVER_PRIVATE_KEY}
|
|||||||
PublicKey = ${CLIENT_PUBLIC_KEY}
|
PublicKey = ${CLIENT_PUBLIC_KEY}
|
||||||
AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128
|
AllowedIPs = ${CLIENT_WG_IPV4}/32,${CLIENT_WG_IPV6}/128
|
||||||
PresharedKey = ${CLIENT_PRE_SHARED_KEY}
|
PresharedKey = ${CLIENT_PRE_SHARED_KEY}
|
||||||
|
PersistentKeepalive = 25
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
cat > /etc/wireguard/${SERVER_WG_NIC}.conf <<EOF
|
cat > /etc/wireguard/${SERVER_WG_NIC}.conf <<EOF
|
||||||
@ -465,6 +466,7 @@ PrivateKey = ${SERVER_PRIVATE_KEY}
|
|||||||
PublicKey = ${CLIENT_PUBLIC_KEY}
|
PublicKey = ${CLIENT_PUBLIC_KEY}
|
||||||
AllowedIPs = ${CLIENT_WG_IPV4}/32
|
AllowedIPs = ${CLIENT_WG_IPV4}/32
|
||||||
PresharedKey = ${CLIENT_PRE_SHARED_KEY}
|
PresharedKey = ${CLIENT_PRE_SHARED_KEY}
|
||||||
|
PersistentKeepalive = 25
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
chmod 600 /etc/wireguard/${SERVER_WG_NIC}.conf
|
chmod 600 /etc/wireguard/${SERVER_WG_NIC}.conf
|
||||||
|
Loading…
x
Reference in New Issue
Block a user