Skip to content

Instantly share code, notes, and snippets.

@SystemZ
Created October 28, 2015 21:55
Show Gist options
  • Save SystemZ/2d7a999823bac4c9dbd9 to your computer and use it in GitHub Desktop.
Save SystemZ/2d7a999823bac4c9dbd9 to your computer and use it in GitHub Desktop.
Iptables reset
#!/bin/bash
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle -X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment