From a5d371aefc402d6594abd41b9af64dcf20a123b9 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 26 Sep 2014 16:40:46 -0300 Subject: Adding device and zone parameters to firewall class (2) --- manifests/init.pp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 853456f..7543d1a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -166,7 +166,7 @@ class firewall( # # Traffic shapping # - shorewall::tcdevices { "eth0": + shorewall::tcdevices { "${device}": in_bandwidth => "$in_bandwidth", out_bandwidth => "$out_bandwidth", } @@ -189,7 +189,7 @@ class firewall( shorewall::tcclasses { "ssh": order => "1", - interface => "eth0", + interface => "${device}", rate => "4*full/100", ceil => "full", priority => "1", @@ -197,7 +197,7 @@ class firewall( shorewall::tcclasses { "default": order => "2", - interface => "eth0", + interface => "${device}", rate => "6*full/100", ceil => "full", priority => "2", -- cgit v1.2.3