diff --git a/installers/common.sh b/installers/common.sh index 20736a4..ebc59b1 100755 --- a/installers/common.sh +++ b/installers/common.sh @@ -222,7 +222,7 @@ function default_configuration() { if [ ! -f /usr/sbin/iptables-nft ]; then 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' - else + fi 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'