Skip to content

Instantly share code, notes, and snippets.

@dolftax
Created May 29, 2015 16:30
Show Gist options
  • Save dolftax/36bfa1451f85196dcb24 to your computer and use it in GitHub Desktop.
Save dolftax/36bfa1451f85196dcb24 to your computer and use it in GitHub Desktop.
Flushing iptables
#!/bin/sh
echo "Flushing iptables rules..."
sleep 1
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