mirror of
https://github.com/EasyTier/EasyTier.git
synced 2025-09-27 04:56:07 +08:00
wireguard client keepalive
This commit is contained in:
@@ -227,6 +227,7 @@ Address = 10.14.14.0/24 # should assign an ip from this cidr manually
|
|||||||
PublicKey = zhrZQg4QdPZs8CajT3r4fmzcNsWpBL9ImQCUsnlXyGM=
|
PublicKey = zhrZQg4QdPZs8CajT3r4fmzcNsWpBL9ImQCUsnlXyGM=
|
||||||
AllowedIPs = 192.168.80.0/20,10.147.223.0/24,10.144.144.0/24
|
AllowedIPs = 192.168.80.0/20,10.147.223.0/24,10.144.144.0/24
|
||||||
Endpoint = 0.0.0.0:11013 # should be the public ip of the vpn server
|
Endpoint = 0.0.0.0:11013 # should be the public ip of the vpn server
|
||||||
|
PersistentKeepalive = 25
|
||||||
|
|
||||||
connected_clients:
|
connected_clients:
|
||||||
[]
|
[]
|
||||||
|
@@ -228,6 +228,7 @@ Address = 10.14.14.0/24 # should assign an ip from this cidr manually
|
|||||||
PublicKey = zhrZQg4QdPZs8CajT3r4fmzcNsWpBL9ImQCUsnlXyGM=
|
PublicKey = zhrZQg4QdPZs8CajT3r4fmzcNsWpBL9ImQCUsnlXyGM=
|
||||||
AllowedIPs = 192.168.80.0/20,10.147.223.0/24,10.144.144.0/24
|
AllowedIPs = 192.168.80.0/20,10.147.223.0/24,10.144.144.0/24
|
||||||
Endpoint = 0.0.0.0:11013 # should be the public ip of the vpn server
|
Endpoint = 0.0.0.0:11013 # should be the public ip of the vpn server
|
||||||
|
PersistentKeepalive = 25
|
||||||
|
|
||||||
connected_clients:
|
connected_clients:
|
||||||
[]
|
[]
|
||||||
|
@@ -284,6 +284,7 @@ Address = {client_cidr} # should assign an ip from this cidr manually
|
|||||||
PublicKey = {my_public_key}
|
PublicKey = {my_public_key}
|
||||||
AllowedIPs = {allow_ips}
|
AllowedIPs = {allow_ips}
|
||||||
Endpoint = {listenr_addr} # should be the public ip of the vpn server
|
Endpoint = {listenr_addr} # should be the public ip of the vpn server
|
||||||
|
PersistentKeepalive = 25
|
||||||
"#,
|
"#,
|
||||||
peer_secret_key = BASE64_STANDARD.encode(cfg.peer_secret_key()),
|
peer_secret_key = BASE64_STANDARD.encode(cfg.peer_secret_key()),
|
||||||
my_public_key = BASE64_STANDARD.encode(cfg.my_public_key()),
|
my_public_key = BASE64_STANDARD.encode(cfg.my_public_key()),
|
||||||
|
Reference in New Issue
Block a user