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

Commit

Permalink
#2 iptables tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Mar 9, 2016
1 parent d82e099 commit d18d75b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ansible/roles/iptables/templates/iptables.j2
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.dmz }} --dport {{ user_preferences.port }} -j ACCEPT
{% endif %}


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


{% if inventory_hostname in groups['ui'] %}
# http and https, campus for now
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.campus }} --dport 80 -j ACCEPT
Expand Down

0 comments on commit d18d75b

Please sign in to comment.