Skip to content

Instantly share code, notes, and snippets.

@nyxsorcerer
Created November 13, 2021 14:08
Show Gist options
  • Save nyxsorcerer/fc1cbf0a39aa24d89748aeb68860d17e to your computer and use it in GitHub Desktop.
Save nyxsorcerer/fc1cbf0a39aa24d89748aeb68860d17e to your computer and use it in GitHub Desktop.
flushing / removing all iptables rules
#/bin/bash
# https://serverfault.com/a/200658
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -t nat -F
iptables -t mangle -F
iptables -F
iptables -X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment