iptables_sifirla

This commit is contained in:
milisarge 2017-03-23 01:51:20 +02:00
parent 1780b29327
commit 8f608602f4
1 changed files with 27 additions and 0 deletions

27
bin/iptables_sifirla Executable file
View File

@ -0,0 +1,27 @@
# IPv6
##
## set default policies to let everything in
ip6tables --policy INPUT ACCEPT;
ip6tables --policy OUTPUT ACCEPT;
ip6tables --policy FORWARD ACCEPT;
##
## start fresh
ip6tables -Z; # zero counters
ip6tables -F; # flush (delete) rules
ip6tables -X; # delete all extra chains
# IPv4
##
## set default policies to let everything in
iptables --policy INPUT ACCEPT;
iptables --policy OUTPUT ACCEPT;
iptables --policy FORWARD ACCEPT;
##
## start fresh
iptables -Z; # zero counters
iptables -F; # flush (delete) rules
iptables -X; # delete all extra chains