Update fzf location
[dotfiles] / fw.stop
1 #!/bin/sh
2
3 # do not forget to chmod +x /root/fw.stop
4 #
5
6 echo "Stopping firewall and allowing everyone..."
7
8 ipt="/sbin/iptables"
9
10 ## Failsafe - die if /sbin/iptables not found
11 [ ! -x "$ipt" ] && { echo "$0: \"${ipt}\" command not found."; exit 1; }
12
13 $ipt -P INPUT ACCEPT
14 $ipt -P FORWARD ACCEPT
15 $ipt -P OUTPUT ACCEPT
16 $ipt -F
17 $ipt -X
18 $ipt -t nat -F
19 $ipt -t nat -X
20 $ipt -t mangle -F
21 $ipt -t mangle -X
22 $ipt iptables -t raw -F
23 $ipt -t raw -X