diff options
author | Marcel Haerry <haerry@puzzle.ch> | 2009-09-16 17:51:56 +0200 |
---|---|---|
committer | Micah Anderson <micah@riseup.net> | 2009-12-07 11:33:26 -0500 |
commit | 69ffd72ce9e5217ae7d205e04716c40d8c862315 (patch) | |
tree | 36dfb4eb635bd065396b6a4595df217a2d9c1a3b /manifests/masq.pp | |
parent | e972b9abde01a6d89579e20fe4b038c7cbfe0c45 (diff) | |
download | puppet-shorewall-69ffd72ce9e5217ae7d205e04716c40d8c862315.tar.gz puppet-shorewall-69ffd72ce9e5217ae7d205e04716c40d8c862315.tar.bz2 |
factored everything out in its own file
Diffstat (limited to 'manifests/masq.pp')
-rw-r--r-- | manifests/masq.pp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/masq.pp b/manifests/masq.pp new file mode 100644 index 0000000..a9c9840 --- /dev/null +++ b/manifests/masq.pp @@ -0,0 +1,17 @@ +# mark is new in 3.4.4 +# source (= subnet) = Set of hosts that you wish to masquerade. +# address = If you specify an address here, SNAT will be used and this will be the source address. +define shorewall::masq( + $interface, + $source, $address = '-', + $proto = '-', + $port = '-', + $ipsec = '-', + $mark = '', + $order='100' +){ + shorewall::entry{"masq.d/${order}-${name}": + line => "# ${name}\n${interface} ${source} ${address} ${proto} ${port} ${ipsec} ${mark}" + } +} + |