Advertisement
tolikpunkoff

disable IPTABLES/NETFILTER

Dec 2nd, 2020
1,309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.28 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement