Commit ba8d84a9 authored by Lebedev Vadim's avatar Lebedev Vadim Committed by Matt Taggart

* Add shorewall-blrules support

parent f35965e0
class shorewall::blrules (
$whitelists,
$drops,
) {
file{'/etc/shorewall/puppet/blrules':
content => template("shorewall/blrules.erb"),
require => Package['shorewall'],
notify => Service['shorewall'],
owner => root,
group => 0,
mode => 0644;
}
}
#
# Shorewall version 4.4 - Rule-based Blacklisting
#
# For information about entries in this file, type "man shorewall-blrules"
#
# Please see http://shorewall.net/blacklisting_support.htm for additional
# information.
#
###############################################################################
<% @whitelists.each do |value| -%>
WHITELIST <%= value %>
<% end -%>
<% @drops.each do |value| -%>
REJECT <%= value %>
<% end -%>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment