diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-08-09 15:14:04 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-08-09 15:14:04 -0300 |
commit | 69b6037ee16bdccb443ae3ac822f477ee2963d29 (patch) | |
tree | ed59c3b4b3b2d1b52300f382cddfa363fe17fd41 /manifests/subsystems/firewall.pp | |
parent | fd11f36e56692e3dd25769282d752bec12296b19 (diff) | |
download | puppet-nodo-69b6037ee16bdccb443ae3ac822f477ee2963d29.tar.gz puppet-nodo-69b6037ee16bdccb443ae3ac822f477ee2963d29.tar.bz2 |
Fixing resource naming for firewall rules (2)
Diffstat (limited to 'manifests/subsystems/firewall.pp')
-rw-r--r-- | manifests/subsystems/firewall.pp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/subsystems/firewall.pp b/manifests/subsystems/firewall.pp index fca990d..75b2b17 100644 --- a/manifests/subsystems/firewall.pp +++ b/manifests/subsystems/firewall.pp @@ -568,7 +568,7 @@ class firewall::router::mail($destination) { } define firewall::router::ssh($destination, $port_orig = '22', $port_dest = '') { - shorewall::rule { "ssh-$port_orig-1": + shorewall::rule { "ssh-$name-1": action => 'DNAT', source => 'net', destination => $port_dest ? { @@ -581,7 +581,7 @@ define firewall::router::ssh($destination, $port_orig = '22', $port_dest = '') { order => "2$port_orig", } - shorewall::rule { "ssh-$port_orig-2": + shorewall::rule { "ssh-$name-2": action => 'DNAT', source => '$FW', destination => $port_dest ? { @@ -597,7 +597,7 @@ define firewall::router::ssh($destination, $port_orig = '22', $port_dest = '') { } define firewall::router::munin($destination, $port_orig, $port_dest = '') { - shorewall::rule { "munin-$port_orig-1": + shorewall::rule { "munin-$name-1": action => 'DNAT', source => 'net', destination => $port_dest ? { @@ -610,7 +610,7 @@ define firewall::router::munin($destination, $port_orig, $port_dest = '') { order => "4$id", } - shorewall::rule { "munin-$port_orig-2": + shorewall::rule { "munin-$name-2": action => 'DNAT', source => '$FW', destination => $port_dest ? { |