From: Silvio Rhatto Date: Fri, 26 Sep 2014 19:40:46 +0000 (-0300) Subject: Adding device and zone parameters to firewall class (2) X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=a5d371aefc402d6594abd41b9af64dcf20a123b9;p=puppet-firewall.git Adding device and zone parameters to firewall class (2) --- 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",