Skip to content

Instantly share code, notes, and snippets.

@andyfangdz
Created February 3, 2022 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyfangdz/8c3456407916cc4ddcc8a07ccf8f292b to your computer and use it in GitHub Desktop.
Save andyfangdz/8c3456407916cc4ddcc8a07ccf8f292b to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
set -euxo pipefail
sudo iptables -P INPUT ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -F
sudo netfilter-persistent save
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment