mirror of
https://github.com/pivpn/pivpn.git
synced 2024-12-18 19:00:15 +00:00
Fix-110: iptables-save now actually saves the iptables
This commit is contained in:
parent
1a4e9cdb66
commit
d900efe49b
1 changed files with 1 additions and 1 deletions
|
@ -836,7 +836,7 @@ confNetwork() {
|
||||||
echo 1 > /tmp/noUFW
|
echo 1 > /tmp/noUFW
|
||||||
$SUDO iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o $IPv4dev -j MASQUERADE
|
$SUDO iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o $IPv4dev -j MASQUERADE
|
||||||
if [[ $PLAT == "Ubuntu" || $PLAT == "Debian" ]]; then
|
if [[ $PLAT == "Ubuntu" || $PLAT == "Debian" ]]; then
|
||||||
$SUDO iptables-save
|
$SUDO iptables-save | $SUDO tee /etc/iptables/rules.v4 > /dev/null
|
||||||
else
|
else
|
||||||
$SUDO netfilter-persistent save
|
$SUDO netfilter-persistent save
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue