From f4b0b2ee2594e6ca0507f1fc7a63ba587d9afcec Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Thu, 26 Sep 2019 23:51:56 -0400 Subject: [PATCH] nftables --- installers/common.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/installers/common.sh b/installers/common.sh index a03e4b4..3085b45 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -206,13 +206,12 @@ function network_tables() { if [ $version -lt 10 ]; then install_log "Use iptables" tablerouteA='iptables -t nat -A POSTROUTING -s 10.3.141.0\/24 -o lokitun0 -j MASQUERADE #RASPAP' - tablerouteB='iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP' + tablerouteB='iptables -t nat -A POSTROUTING -j MASQUERADE #RASPAP' else tablerouteC='#RASPAP' tablerouteD='#RASPAP' - else install_log "Use nftables" sudo apt-get -y install nftables - tablerouteA='nft add table nat #RASPAP' + tablerouteA='nft -f backup.nft #RASPAP' tablerouteB='nft add chain nat postrouting { type nat hook postrouting priority 100 \\; } #RASPAP' tablerouteC='nft add rule ip nat postrouting oifname "lokitun0" ip saddr 10.3.141.0\/24 counter masquerade #RASPAP' tablerouteD='nft add rule ip nat postrouting counter masquerade #RASPAP'