diff options
Diffstat (limited to 'core/conf/rc.d/iptables')
-rw-r--r-- | core/conf/rc.d/iptables | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/core/conf/rc.d/iptables b/core/conf/rc.d/iptables index d3bbc9b..2d77722 100644 --- a/core/conf/rc.d/iptables +++ b/core/conf/rc.d/iptables @@ -10,12 +10,19 @@ start) ;; stop) echo "Stopping firewall and deny everyone..." - /usr/sbin/iptables -F - /usr/sbin/iptables -X - /usr/sbin/iptables -t nat -F - /usr/sbin/iptables -t nat -X - /usr/sbin/iptables -t mangle -F - /usr/sbin/iptables -t mangle -X + iptables -F + iptables -X + iptables -t nat -F + iptables -t nat -X + iptables -t mangle -F + iptables -t mangle -X + iptables -t raw -F + iptables -t raw -X + iptables -t security -F + iptables -t security -X + + + /usr/sbin/iptables -P INPUT DROP /usr/sbin/iptables -P FORWARD DROP /usr/sbin/iptables -P OUTPUT DROP ;; |