Skip to content

Instantly share code, notes, and snippets.

View anthonysr's full-sized avatar

Anthony Rogliano anthonysr

  • Cisco Systems, Inc.
View GitHub Profile
@anthonysr
anthonysr / gist:ef2c619573b7c222d31e
Created June 10, 2015 19:02
check_iptables_reload_chains
#!/bin/bash
#
# Check if /etc/default/iptables exists *and* contains RELOAD_CHAINS=1
# If yes, echo "RELOAD_CHAINS_BLOCKED" in any other case, echo "OK"
#
RELOAD_FILE=testreloadfile
RELOAD_CHAINS=1
# Load defaults