base / iptables: simplify conditional to perhaps actually work
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
parent
4fffa25daf
commit
fcd3e67484
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
-A OUTPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
|
||||
# if the host is external, block some ips
|
||||
{% if datacenter != 'iad2' or ( datacenter == 'iad2' and hostvars[inventory_hostname].external == 'true' ) %}
|
||||
{% if datacenter != 'iad2' or ( datacenter == 'iad2' and external == 'true' ) %}
|
||||
-A INPUT -p all -m set --match-set blocklist src -j REJECT
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue