Commit 6cdabf3f45a22c2d3734c08792e6ed478b726819

Authored by Sergio Oliveira
1 parent df683687

Allow SSH access to any host from reverseproxy

cookbooks/firewall/templates/default/iptables.erb
... ... @@ -18,6 +18,9 @@
18 18  
19 19 -A INPUT -i lo -j ACCEPT
20 20  
  21 +# Everybody need to accept SSH from reverseproxy
  22 +-A INPUT -s <%= node['peers']['reverseproxy'] %> -p tcp -m state --state NEW --dport 22 -j ACCEPT
  23 +
21 24 <%= node['firewall'] %>
22 25 <%= render 'iptables-filter.erb' %>
23 26  
... ...