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

Commit

Permalink
#2 ldap in iptables
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed Mar 4, 2016
1 parent e12c885 commit 212b1a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ansible/roles/iptables/templates/iptables.j2
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,11 @@
-A INPUT -m state --state NEW -m tcp -p tcp -s {{ net.wifi }} --dport 443 -j ACCEPT
{% endif %}

{% if inventory_hostname in groups['ldap'] %}
-A INPUT -m state --state NEW -m tcp -p tcp -s 172.0.0.0/8 --dport 389 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp -s 152.54.0.0/16 --dport 389 -j ACCEPT
{% endif %}

-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMIT
2 changes: 1 addition & 1 deletion tools/sharkbait/resources/grouper.client.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
## LDAP connection settings
########################################

grouperClient.config.hierarchy = classpath:grouper.client.base.properties, classpath:grouper.client.properties, file:/etc/grouper/client.properties
grouperClient.config.hierarchy = classpath:grouper.client.base.properties, classpath:grouper.client.properties

0 comments on commit 212b1a3

Please sign in to comment.