Skip to content

Instantly share code, notes, and snippets.

@jhelwig
Created November 18, 2011 18:36
Show Gist options
  • Save jhelwig/1377312 to your computer and use it in GitHub Desktop.
Save jhelwig/1377312 to your computer and use it in GitHub Desktop.
Clear iptables to accept everything
#!/bin/sh
# IPv4
IPT=/sbin/iptables
# Reset iptables
$IPT -P INPUT ACCEPT
$IPT -P OUTPUT ACCEPT
$IPT -P FORWARD ACCEPT
$IPT -F
$IPT -X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment