63fb151eb7
Applies iptables configuration based on an input file and the current iptables state. This script is used to perform idempotent operations, eg to prevent adding duplicate rules. Sample input: -N stunnel-INPUT -A stunnel-INPUT -p tcp -m tcp --dport 4433 -j REJECT -A stunnel-INPUT -j RETURN -I INPUT -p tcp -j stunnel-INPUT Unlike 'iptables-restore --noflush' the script is idempotent. Change-Id: I8eef1361ea90647507cf596f7bfc81815e32a96e Partially implements: blueprint os-iptables-scripts |
||
---|---|---|
.. | ||
bin | ||
README.md |
##iptables
This element installs a single script that consolidates the logic required to handle inserting iptables rules. This script uses the check (-C) argument to check whether a rule matching the specification does exist in the selected chain before inserting it.
RULE: The rule to insert into iptables