diff options
-rw-r--r-- | manifests/firewall.pp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/manifests/firewall.pp b/manifests/firewall.pp index 6aea13d..765a59f 100644 --- a/manifests/firewall.pp +++ b/manifests/firewall.pp @@ -151,9 +151,19 @@ class firewall { # # Traffic shapping # + $in_bandwidth = $max_in_bandwidth ? { + '' => "2mbit", + default => "$max_in_bandwidth", + } + + $out_bandwidth = $max_out_bandwidth ? { + '' => "2mbit", + default => "$max_out_bandwidth", + } + shorewall::tcdevices { "eth0": - in_bandwidth => "2mbit", - out_bandwidth => "2mbit", + in_bandwidth => "$in_bandwidth", + out_bandwidth => "$out_bandwidth", } shorewall::tcrules { "ssh-tcp": |