iptables_sifirla 630 B

12345678910111213141516171819202122232425262728
  1. # IPv6
  2. ##
  3. ## set default policies to let everything in
  4. ip6tables --policy INPUT ACCEPT;
  5. ip6tables --policy OUTPUT ACCEPT;
  6. ip6tables --policy FORWARD ACCEPT;
  7. ##
  8. ## start fresh
  9. ip6tables -Z; # zero counters
  10. ip6tables -F; # flush (delete) rules
  11. ip6tables -X; # delete all extra chains
  12. # IPv4
  13. ##
  14. ## set default policies to let everything in
  15. iptables --policy INPUT ACCEPT;
  16. iptables --policy OUTPUT ACCEPT;
  17. iptables --policy FORWARD ACCEPT;
  18. ##
  19. ## start fresh
  20. iptables -Z; # zero counters
  21. iptables -F; # flush (delete) rules
  22. iptables -X; # delete all extra chains