From 52a5b7cd110f799ecc03632da92bc4cd8415538f Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 23 May 2023 11:31:13 +0200 Subject: [PATCH] Use iif/oif instead of iifname/oifname in nftables rules Following the change in ansible scripts. --- web/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/system.py b/web/system.py index ad445df..ff829dd 100644 --- a/web/system.py +++ b/web/system.py @@ -113,7 +113,7 @@ map {name} {{ # Print dynamic NAT rules. with open(f'{output}/etc/nftables.d/nat.nft', 'w', encoding='utf-8') as f: for network, address in nat.items(): - print(f'iifname @inside oifname @outside ip saddr @{network} snat to {address}', file=f) + print(f'iif @inside oif @outside ip saddr @{network} snat to {address}', file=f) # Print forwarding rules. with open(f'{output}/etc/nftables.d/forward.nft', 'w', encoding='utf-8') as f: