save config to .conf

pull/33/head
necro-nemesis 6 years ago
parent c490fbdbca
commit db6d7b230f

@ -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
}

Loading…
Cancel
Save