diff options
author | intrigeri <intrigeri@boum.org> | 2012-11-11 23:10:20 +0100 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2012-11-11 23:10:20 +0100 |
commit | 8080f1a892a69dc171187c8165d7e81f5b5b512d (patch) | |
tree | 6e610ec18aaa13f7797eedd08b03c852e49d8cfb /manifests/rules/ssh.pp | |
parent | 911cc18e594bb5a3ab642ebb24615a0447050c32 (diff) | |
parent | 5052233d92e97263eab292408ed2602db0836d98 (diff) | |
download | puppet-shorewall-8080f1a892a69dc171187c8165d7e81f5b5b512d.tar.gz puppet-shorewall-8080f1a892a69dc171187c8165d7e81f5b5b512d.tar.bz2 |
Merge remote-tracking branch 'riseup/master' into tmp
Conflicts:
manifests/init.pp
Diffstat (limited to 'manifests/rules/ssh.pp')
-rw-r--r-- | manifests/rules/ssh.pp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/rules/ssh.pp b/manifests/rules/ssh.pp index 0eebcb4..3a1b530 100644 --- a/manifests/rules/ssh.pp +++ b/manifests/rules/ssh.pp @@ -1,10 +1,12 @@ -class shorewall::rules::ssh($ports) { - $flatted_ports = join($ports,',') +class shorewall::rules::ssh( + $ports, + $source = 'net' +) { shorewall::rule { 'net-me-tcp_ssh': - source => 'net', + source => $shorewall::rules::ssh::source, destination => '$FW', proto => 'tcp', - destinationport => $flatted_ports, + destinationport => join($shorewall::rules::ssh::ports,','), order => 240, action => 'ACCEPT'; } |