From 0218f4beeae927404889f482de5775116aeb3455 Mon Sep 17 00:00:00 2001 From: billz Date: Fri, 20 Mar 2020 12:07:13 +0000 Subject: [PATCH] Fix ruleset with iptables + iptables-save --- installers/iptables.rules | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/installers/iptables.rules b/installers/iptables.rules index cd02a1b8..c39dd4cb 100644 --- a/installers/iptables.rules +++ b/installers/iptables.rules @@ -1,5 +1,10 @@ -iptables -t nat -A POSTROUTING -j MASQUERADE -iptables -t nat -A POSTROUTING -s 192.168.50.0\/24 ! -d 192.168.50.0\/24 -j MASQUERADE - +# RaspAP iptables rules +*nat +:PREROUTING ACCEPT [0:0] +:INPUT ACCEPT [0:0] +:POSTROUTING ACCEPT [0:0] +:OUTPUT ACCEPT [0:0] +-A POSTROUTING -j MASQUERADE +-A POSTROUTING -s 192.168.50.0/24 ! -d 192.168.50.0/24 -j MASQUERADE COMMIT