42 lines
632 B
Ruby
42 lines
632 B
Ruby
#
|
|
# Cookbook Name:: kosmos-base
|
|
# Recipe:: firewall
|
|
#
|
|
# Copyright 2015, Kosmos
|
|
#
|
|
# All rights reserved - Do Not Redistribute
|
|
#
|
|
|
|
# enable default firewall
|
|
firewall 'default'
|
|
|
|
firewall_rule 'ssh' do
|
|
port 22
|
|
protocol :tcp
|
|
command :allow
|
|
end
|
|
|
|
firewall_rule 'mosh' do
|
|
port 60000..61000
|
|
protocol :udp
|
|
command :allow
|
|
end
|
|
|
|
firewall_rule 'hubot_express_hal8000' do
|
|
port 8080
|
|
protocol :tcp
|
|
command :allow
|
|
end
|
|
|
|
firewall_rule 'hubot_express_botka_xmpp' do
|
|
port 8082
|
|
protocol :tcp
|
|
command :allow
|
|
end
|
|
|
|
firewall_rule 'hubot_express_schlupp_xmpp' do
|
|
port 8083
|
|
protocol :tcp
|
|
command :allow
|
|
end
|