From 0d46467a6cc096d1b8123af044e833a836d740da Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 11 Aug 2015 11:12:52 +0200 Subject: [PATCH] Added clear command --- scripts/firewall.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/scripts/firewall.sh b/scripts/firewall.sh index ad8860a..fc63e45 100755 --- a/scripts/firewall.sh +++ b/scripts/firewall.sh @@ -67,6 +67,14 @@ do_list() { ls $PROFILES | egrep '.rules$' | sed 's/.rules$//g' } +do_clear() { + iptables -F + iptables -X + iptables -P INPUT ACCEPT + iptables -P OUTPUT ACCEPT + iptables -P FORWARD ACCEPT + echo "Clearing iptables succeeded." +} if [ "$1" == "-h" -o "$1" == "help" ]; then cat <