Dzahn has uploaded a new change for review. https://gerrit.wikimedia.org/r/228137
Change subject: add script to flush all iptables rules for emergencies ...................................................................... add script to flush all iptables rules for emergencies https://en.wikipedia.org/wiki/Tear_down_this_wall! in case we have issues with ferm a script should be present to safely flush all rules without locking us out Change-Id: Ie54e29dfed23b4eef278e58bcbb54a6913ca7f56 --- A files/misc/scripts/mr_gorbachev.sh 1 file changed, 14 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/37/228137/1 diff --git a/files/misc/scripts/mr_gorbachev.sh b/files/misc/scripts/mr_gorbachev.sh new file mode 100755 index 0000000..41993c4 --- /dev/null +++ b/files/misc/scripts/mr_gorbachev.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# removes all iptables rules +# https://en.wikipedia.org/wiki/Tear_down_this_wall! +echo "flushing all iptables rules.." +iptables -F +iptables -X +iptables -t nat -F +iptables -t nat -X +iptables -t mangle -F +iptables -t mangle -X +iptables -P INPUT ACCEPT +iptables -P FORWARD ACCEPT +iptables -P OUTPUT ACCEPT +echo "done" -- To view, visit https://gerrit.wikimedia.org/r/228137 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie54e29dfed23b4eef278e58bcbb54a6913ca7f56 Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Dzahn <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
