Commit fc200fa2 authored by Silvio Rhatto's avatar Silvio Rhatto

Adding shorewall::tunnel

parent 236336c6
...@@ -46,6 +46,7 @@ class shorewall::base { ...@@ -46,6 +46,7 @@ class shorewall::base {
File["/var/lib/puppet/modules/shorewall/tcdevices"], File["/var/lib/puppet/modules/shorewall/tcdevices"],
File["/var/lib/puppet/modules/shorewall/tcrules"], File["/var/lib/puppet/modules/shorewall/tcrules"],
File["/var/lib/puppet/modules/shorewall/tcclasses"], File["/var/lib/puppet/modules/shorewall/tcclasses"],
File["/var/lib/puppet/modules/shorewall/tunnel"],
], ],
require => Package[shorewall], require => Package[shorewall],
} }
......
...@@ -71,5 +71,7 @@ class shorewall { ...@@ -71,5 +71,7 @@ class shorewall {
shorewall::managed_file { tcrules: } shorewall::managed_file { tcrules: }
# See http://www.shorewall.net/3.0/traffic_shaping.htm # See http://www.shorewall.net/3.0/traffic_shaping.htm
shorewall::managed_file { tcclasses: } shorewall::managed_file { tcclasses: }
# See http://www.shorewall.net/manpages/shorewall-tunnels.html
shorewall::managed_file { tunnel: }
} }
define shorewall::tunnel(
$tunnel_type,
$zone,
$gateway = '0.0.0.0/0',
$gateway_zones = '',
$order = '1'
) {
shorewall::entry { "tunnel.d/${order}-${title}":
line => "# ${name}\n${tunnel_type} ${zone} ${gateway} ${gateway_zones}",
}
}
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