Skip to content

Instantly share code, notes, and snippets.

@SanjaySRocks
Created February 17, 2022 06:31
Show Gist options
  • Save SanjaySRocks/4f9206622724d1e66bd41d65371b49fe to your computer and use it in GitHub Desktop.
Save SanjaySRocks/4f9206622724d1e66bd41d65371b49fe to your computer and use it in GitHub Desktop.
simple rules to flush iptables and allow all traffic
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