summaryrefslogtreecommitdiff
path: root/manifests/masq.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2018-01-13 11:13:23 -0500
committerMicah Anderson <micah@riseup.net>2018-01-13 11:13:23 -0500
commit4cf7030c0c1f9977d297d502f736029e57e36d40 (patch)
treec2219300400d0a455e8e0aba0df19c83a6de8121 /manifests/masq.pp
parent7332777829c19a63ce3d9bc50a2ddd40b940743a (diff)
parentfab57483f46bab58275063081c5e4e6f7db9d2ab (diff)
Merge remote-tracking branch 'immerda/master' into immerda_merge
Diffstat (limited to 'manifests/masq.pp')
-rw-r--r--manifests/masq.pp21
1 files changed, 11 insertions, 10 deletions
diff --git a/manifests/masq.pp b/manifests/masq.pp
index fb097e5..1ecbe35 100644
--- a/manifests/masq.pp
+++ b/manifests/masq.pp
@@ -2,16 +2,17 @@
# 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'
+ $interface,
+ $source,
+ $address = '-',
+ $proto = '-',
+ $port = '-',
+ $ipsec = '-',
+ $mark = '-',
+ $order = '100',
){
- shorewall::entry{"masq-${order}-${name}":
- line => "# ${name}\n${interface} ${source} ${address} ${proto} ${port} ${ipsec} ${mark}"
- }
+ shorewall::entry{"masq-${order}-${name}":
+ line => "# ${name}\n${interface} ${source} ${address} ${proto} ${port} ${ipsec} ${mark}"
+ }
}