/gist:855b8316cf10be6526f4 Secret
Created
June 14, 2013 18:37
Star
You must be signed in to star a gist
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 | |
# | |
# | |
# we will iterate over this directory and run every script in it | |
dir=`ls /etc/iptables/config-enabled/` | |
# but first, clear the existing iptables rules | |
iptables -F | |
iptables -X | |
# now iterate over each enabled config which will populate new iptables rules | |
for file in $dir | |
do | |
/etc/iptables/config-enabled/$file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment