Commit 724c48255fc71b1f25a48ce3834e92b2245c0e80

Authored by Paulo Tada
Committed by Rafael Manzo
1 parent 93b20fa7
Exists in mezuro_cookbook

Adding iptables rules for Mezuro machine

Signed-off-by: Diego Araújo <diegoamc90@gmail.com>
cookbooks/firewall/templates/host-database/iptables-filter.erb
... ... @@ -2,6 +2,7 @@
2 2 # Allow access to PostgreSQL
3 3 -A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW --dport 5432 -j ACCEPT
4 4 -A INPUT -s <%= node['peers']['social'] %> -p tcp -m state --state NEW --dport 5432 -j ACCEPT
  5 +-A INPUT -s <%= node['peers']['mezuro'] %> -p tcp -m state --state NEW --dport 5432 -j ACCEPT
5 6  
6 7 # Allow access to Redis
7 8 -A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW --dport 6379 -j ACCEPT
... ...
cookbooks/firewall/templates/host-mezuro/iptables-filter.erb 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +# Allow mezuro connect to HTTP
  2 +-A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW -m multiport --dports 8082 -j ACCEPT
... ...
cookbooks/firewall/templates/host-mezuro/iptables-nat.erb 0 → 100644