Commit ceb57f6a authored by varac's avatar varac

add rtrules

parent 911cc18e
#LAST LINE -- ADD YOUR ENTRIES BEFORE THIS ONE -- DO NOT REMOVE
#
# Shorewall version 4 - route rules File
#
# For information about entries in this file, type "man shorewall-rtrules"
#
# For additional information, see http://www.shorewall.net/MultiISP.html
####################################################################################
# SOURCE DEST PROVIDER PRIORITY MASK
......@@ -42,6 +42,7 @@ class shorewall::base {
File["/var/lib/puppet/modules/shorewall/tcdevices"],
File["/var/lib/puppet/modules/shorewall/tcrules"],
File["/var/lib/puppet/modules/shorewall/tcclasses"],
File["/var/lib/puppet/modules/shorewall/rtrules"],
],
require => Package[shorewall],
}
......
......@@ -72,4 +72,6 @@ class shorewall {
# See http://www.shorewall.net/3.0/traffic_shaping.htm
shorewall::managed_file { tcclasses: }
shorewall::managed_file { rtrules: }
}
define shorewall::rtrules(
$source = '-',
$destination = '-',
$provider,
$priority,
$mark,
){
shorewall::entry { "rtrules.d/${mark}-${title}":
line => "# ${name}\n${source} ${destination} ${provider} ${priority} ${mark}",
}
}
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