Commit 22bda562988b6d1cceca4cf00cd13290a5dbc01c
1 parent
6cdabf3f
Exists in
r5_design
and in
1 other branch
Allow postgresql and redis connections
Showing
1 changed file
with
7 additions
and
0 deletions
Show diff stats
cookbooks/firewall/templates/host-database/iptables-filter.erb
0 → 100644
| @@ -0,0 +1,7 @@ | @@ -0,0 +1,7 @@ | ||
| 1 | + | ||
| 2 | +# Allow access to PostgreSQL | ||
| 3 | +-A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW --dport 5432 -j ACCEPT | ||
| 4 | +-A INPUT -s <%= node['peers']['social'] %> -p tcp -m state --state NEW --dport 5432 -j ACCEPT | ||
| 5 | + | ||
| 6 | +# Allow access to Redis | ||
| 7 | +-A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW --dport 6379 -j ACCEPT |