From 2f263476d3180e7262d0cd044064ae1625fad738 Mon Sep 17 00:00:00 2001 From: CroneKorkN Date: Sat, 9 Aug 2025 23:31:29 +0200 Subject: [PATCH] fix sysctl --- bundles/linux/items.py | 3 +-- nodes/home.router.py | 14 +++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/bundles/linux/items.py b/bundles/linux/items.py index d3c5b96..bd51616 100644 --- a/bundles/linux/items.py +++ b/bundles/linux/items.py @@ -12,9 +12,8 @@ def generate_sysctl_key_value_pairs_from_json(json_data, parents=[]): key_value_pairs = generate_sysctl_key_value_pairs_from_json(node.metadata.get('sysctl')) - files= { - '/etc/sysctl.conf': { + '/etc/sysctl.d/managed.conf': { 'content': '\n'.join( sorted( f"{'.'.join(path)}={value}" diff --git a/nodes/home.router.py b/nodes/home.router.py index 7a4d53e..7aa2ed0 100644 --- a/nodes/home.router.py +++ b/nodes/home.router.py @@ -70,9 +70,21 @@ 'net': { 'ipv4': { 'ip_forward': 1, + 'conf': { + 'default': { + 'forwarding': 1, + }, + }, }, 'ipv6': { - 'ip_forward': 1, + 'conf': { + 'all': { + 'forwarding': 1, + }, + 'default': { + 'forwarding': 1, + }, + }, }, }, },