Commit 37f8ac410170081059bd3b407899c19c292b27ca

Authored by Antonio Terceiro
1 parent ff12302b

lxc: also whitelist port 5555 from host

Showing 1 changed file with 1 additions and 0 deletions   Show diff stats
@@ -37,6 +37,7 @@ if $SPB_ENV == 'lxc' @@ -37,6 +37,7 @@ if $SPB_ENV == 'lxc'
37 File.open('config/lxc/iptables-filter-rules', 'w') do |f| 37 File.open('config/lxc/iptables-filter-rules', 'w') do |f|
38 lxc_host_bridge_ip = '192.168.122.1' # FIXME don't hardcode 38 lxc_host_bridge_ip = '192.168.122.1' # FIXME don't hardcode
39 f.puts "-A INPUT -s #{lxc_host_bridge_ip} -p tcp -m state --state NEW --dport 22 -j ACCEPT" 39 f.puts "-A INPUT -s #{lxc_host_bridge_ip} -p tcp -m state --state NEW --dport 22 -j ACCEPT"
  40 + f.puts "-A INPUT -s #{lxc_host_bridge_ip} -p tcp -m state --state NEW --dport 5555 -j ACCEPT"
40 end 41 end
41 end 42 end
42 43