From 32af5a43c0fd717f036a57f84f383a8937085015 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Thu, 2 May 2024 17:27:18 +0200 Subject: [PATCH] Oops, missed a six --- web/system.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/system.py b/web/system.py index 08c0318..3bb66b9 100644 --- a/web/system.py +++ b/web/system.py @@ -134,11 +134,12 @@ def save_config(): # Forwarding rules for VPN users. if vpn_networks := sorted(name for name, data in ipsets.items() if data.get('vpn')): nft_forward = 'iif @inside oif @inside ip saddr @{name} ip daddr @{name} accept\n' + nft_forward6 = 'iif @inside oif @inside ip6 saddr @{name}/6 ip6 daddr @{name}/6 accept\n' f.write('# forward from the VPN interface to physical networks and back\n') for name in vpn_networks: f.write(nft_forward.format(name=name)) for name in vpn_networks: - f.write(nft_forward.format(name=f'{name}/6')) + f.write(nft_forward6.format(name=name)) f.write('\n') # Custom forwarding rules.