diff options
author | bertagaz <bertagaz@ptitcanardnoir.org> | 2015-02-27 15:15:16 +0100 |
---|---|---|
committer | bertagaz <bertagaz@ptitcanardnoir.org> | 2015-02-27 15:15:16 +0100 |
commit | d97171b8e04812c617d126a82f913b987ad292fd (patch) | |
tree | 67c111f9ce533105b84c86003947f1b46d2eb41a /manifests | |
parent | 06c5058752f7c1856380766784f48e077c3194ed (diff) |
Add support for the mangle table.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 2 | ||||
-rw-r--r-- | manifests/mangle.pp | 19 |
2 files changed, 21 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index cd6488b..a567564 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -68,6 +68,8 @@ class shorewall( 'tunnel', # See http://www.shorewall.net/MultiISP.html 'rtrules', + # See http://www.shorewall.net/manpages/shorewall-mangle.html + 'mangle', ]:; } } diff --git a/manifests/mangle.pp b/manifests/mangle.pp new file mode 100644 index 0000000..e3fd1b3 --- /dev/null +++ b/manifests/mangle.pp @@ -0,0 +1,19 @@ +define shorewall::mangle( + $source, + $destination, + $proto = '-', + $destinationport = '-', + $sourceport = '-', + $user = '-', + $test = '-', + $length = '-', + $tos = '-', + $connbytes = '-', + $helper = '-', + $headers = '-', + $order = '100' +){ + shorewall::entry{"mangle-${order}-${name}": + line => "${name} ${source} ${destination} ${proto} ${destinationport} ${sourceport} ${user} ${test} ${length} ${tos} ${connbytes} ${helper} ${headers}" + } +} |