Commit 079a8e91 authored by mh's avatar mh

introduce parametrized class for ports so we can pass the ports from the sshd module

parent f9c1086a
class shorewall::rules::ssh {
shorewall::rule { 'net-me-tcp_ssh':
source => 'net',
destination => '$FW',
proto => 'tcp',
destinationport => 'ssh',
order => 240,
action => 'ACCEPT';
}
class shorewall::rules::ssh($ports) {
$flatted_ports = join($ports,',')
shorewall::rule { 'net-me-tcp_ssh':
source => 'net',
destination => '$FW',
proto => 'tcp',
destinationport => $flatted_ports,
order => 240,
action => 'ACCEPT';
}
}
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