Created
January 20, 2020 18:08
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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