Skip to content

Instantly share code, notes, and snippets.

@modsaid
Created January 20, 2020 18:08
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 modsaid/90c1adcdaeff83567436214a539436cb to your computer and use it in GitHub Desktop.
Save modsaid/90c1adcdaeff83567436214a539436cb to your computer and use it in GitHub Desktop.
helpful to apply after iptables commands on remote servers to avoid locking yourself out
#!/bin/bash
sleep 2m
iptables -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment