bundle/wireguard: fix firewall for home.router
This commit is contained in:
parent
cd48cc5911
commit
f3269ce979
2 changed files with 4 additions and 1 deletions
|
@ -226,7 +226,9 @@ def firewall(metadata):
|
||||||
except NoSuchNode: # roadwarrior
|
except NoSuchNode: # roadwarrior
|
||||||
ports['{}/udp'.format(config['my_port'])] = atomic(set(metadata.get('wireguard/restrict-to', set())))
|
ports['{}/udp'.format(config['my_port'])] = atomic(set(metadata.get('wireguard/restrict-to', set())))
|
||||||
else:
|
else:
|
||||||
ports['{}/udp'.format(config['my_port'])] = atomic({name})
|
ports['{}/udp'.format(config['my_port'])] = atomic(
|
||||||
|
set(repo.libs.s2s.WG_AUTOGEN_SETTINGS.get(name, {}).get('firewall', set())) | {name}
|
||||||
|
)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'firewall': {
|
'firewall': {
|
||||||
|
|
|
@ -23,6 +23,7 @@ WG_AUTOGEN_NODES = [
|
||||||
WG_AUTOGEN_SETTINGS = {
|
WG_AUTOGEN_SETTINGS = {
|
||||||
# special settings to apply when peering with a specific node
|
# special settings to apply when peering with a specific node
|
||||||
'home.router': {
|
'home.router': {
|
||||||
|
'firewall': {'versatel'},
|
||||||
'no_autoconnect': True,
|
'no_autoconnect': True,
|
||||||
'persistent_keepalive': False,
|
'persistent_keepalive': False,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue