From db6d7b230f27a96306aa4219a8059716a4f45011 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Fri, 27 Sep 2019 16:44:04 -0400 Subject: [PATCH] save config to .conf --- installers/common.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index 95620a9..aad396f 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -212,10 +212,11 @@ function network_tables() { sudo apt-get -y install nftables sudo apt-get -y purge iptables #nft flush ruleset - sudo nft add table nat - sudo nft add chain nat postrouting { type nat hook postrouting priority 100 \; } - suod nft add rule ip nat postrouting oifname "lokitun0" ip saddr 10.3.141.0/24 counter masquerade - sudo nft add rule ip nat postrouting counter masquerade + nft add table nat + nft add chain nat postrouting { type nat hook postrouting priority 100 \; } + nft add rule ip nat postrouting oifname "lokitun0" ip saddr 10.3.141.0/24 counter masquerade + nft add rule ip nat postrouting counter masquerade + nft -s list ruleset > /etc/nftables.conf sudo systemctl enable nftables.service fi }