Skip to content
This repository has been archived by the owner on Nov 1, 2018. It is now read-only.

Commit

Permalink
#4 replacing de-elk punches
Browse files Browse the repository at this point in the history
  • Loading branch information
donsizemore committed Mar 23, 2016
1 parent 5352d33 commit ac5a47e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ansible/roles/iptables/templates/iptables.j2
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@
# postgres from DMZ
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.dmz }} --dport {{ db_port }} -j ACCEPT

{% endif %}
{% if inventory_hostname in groups['de-elk'] %}
# elasticsearch from DMZ
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.dmz }} --dport {{ elk.elasticsearch.port }} -j ACCEPT

# logstash from DMZ
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.dmz }} --dport {{ elk.logstash.port }} -j ACCEPT

{% endif %}
{% if inventory_hostname in groups['docker-registry'] %}
# docker-registry ports from DMZ
Expand Down

0 comments on commit ac5a47e

Please sign in to comment.