Commit 635ed54c3bdc6a6f9b0a7ff8d112391c641519d4
1 parent
1ea699c9
Exists in
master
and in
36 other branches
Add forwarding rules for external ssh connection
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
cookbooks/firewall/templates/host-reverseproxy/iptables-filter.erb
@@ -7,3 +7,7 @@ | @@ -7,3 +7,7 @@ | ||
7 | 7 | ||
8 | # Real SSH connection | 8 | # Real SSH connection |
9 | -A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW --dport <%= node['config']['alt_ssh_port'] %> -j ACCEPT | 9 | -A INPUT -s <%= node['peers']['integration'] %> -p tcp -m state --state NEW --dport <%= node['config']['alt_ssh_port'] %> -j ACCEPT |
10 | + | ||
11 | +# Allow forwarding to integration on port 22 | ||
12 | +-A FORWARD -p tcp -d <%= node['peers']['integration'] %> --dport 22 -j ACCEPT | ||
13 | +-A FORWARD -s <%= node['peers']['integration'] %> -p tcp --sport 22 -j ACCEPT |