From e14ec8c6f45c9045999a5fdbba4a94d8d54a67b6 Mon Sep 17 00:00:00 2001 From: necro-nemesis Date: Sun, 15 Sep 2019 18:17:28 -0400 Subject: [PATCH] Report table support --- installers/common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installers/common.sh b/installers/common.sh index f9d5f0b..7202387 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -195,10 +195,13 @@ function move_config_file() { # select iptables or nftables function network_tables() { + install_log "Selecting iptables or nftable rules" 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' fi + install_log "Use nftables" sudo apt-get -y install nftables tablerouteA='nft add rule ip nat POSTROUTING oifname "lokitun0" ip saddr 10.3.141.0\/24 counter masquerade #RASPAP' tablerouteB='nft add rule ip nat POSTROUTING counter masquerade #RASPAP'