tunnel.pp 268 Bytes
Newer Older
Silvio Rhatto's avatar
Silvio Rhatto committed
1 2 3 4 5 6 7
define shorewall::tunnel(
    $tunnel_type,
    $zone,
    $gateway = '0.0.0.0/0',
    $gateway_zones = '',
    $order = '1'
) {
8
    shorewall::entry { "tunnel-${order}-${name}":
Silvio Rhatto's avatar
Silvio Rhatto committed
9 10 11
        line => "# ${name}\n${tunnel_type} ${zone} ${gateway} ${gateway_zones}",
    }
}