Commit 4c69a621 authored by Lebedev Vadim's avatar Lebedev Vadim Committed by Matt Taggart

* Add example

parent ba8d84a9
# Manage blrules. For additional information type "man shorewall-blrules"
#
# Sample Usage:
#
# shorewall::interface { 'br0':
# zone => 'net',
# rfc1918 => true,
# options => 'tcpflags,blacklist,nosmurfs,routeback,bridge';
# }
#
# class { 'shorewall::blrules':
# options => 'tcpflags,blacklist,nosmurfs,routeback,bridge',
# whitelists => [
# "net:10.0.0.1,192.168.0.1 all",
# ],
#
# drops => [
# 'net all tcp 22', #ssh
# ],
# }
class shorewall::blrules (
$whitelists,
$drops,
) {
file{'/etc/shorewall/puppet/blrules':
content => template("shorewall/blrules.erb"),
content => template('shorewall/blrules.erb'),
require => Package['shorewall'],
notify => Service['shorewall'],
owner => root,
......@@ -11,6 +33,3 @@ class shorewall::blrules (
mode => 0644;
}
}
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