bundles/wireguard: add option to set settings based on a specific peer

This commit is contained in:
Franzi 2023-12-10 14:48:24 +01:00
parent 0084257872
commit ffb5125ddd
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 10 additions and 0 deletions

View file

@ -20,6 +20,13 @@ WG_AUTOGEN_NODES = [
'daisy',
]
WG_AUTOGEN_SETTINGS = {
# special settings to apply when peering with a specific node
'home.router': {
'persistent_keepalive': False,
},
}
def get_subnet_for_connection(repo, peer_a, peer_b):
assert peer_a in WG_AUTOGEN_NODES
assert peer_b in WG_AUTOGEN_NODES