tolikpunkoff

disable IPTABLES/NETFILTER

Dec 2nd, 2020
654
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. echo "Restore firewall rules"
  3.  
  4. # Delete all rules
  5. iptables -F
  6. iptables -F  -t nat
  7. iptables -F  -t mangle
  8. iptables -X
  9. iptables -t nat -X
  10. iptables -t mangle -X
  11.  
  12. # Accept all traffic
  13. iptables -P INPUT ACCEPT
  14. iptables -P OUTPUT ACCEPT
  15. iptables -P FORWARD ACCEPT
RAW Paste Data