aboutsummaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorTim Meusel <tim@bastelfreak.de>2019-09-13 10:36:20 +0200
committerTim Meusel <tim@bastelfreak.de>2019-09-13 10:36:20 +0200
commitbeb7c4247272569918aa0ed85ee5a95653f2b46f (patch)
treeacb4d3a8ac059b7c02ff80aece8305d758319561 /manifests
parent2455de32311040de0d608d8cc151aa6395700e8f (diff)
downloadpuppet-ferm-beb7c4247272569918aa0ed85ee5a95653f2b46f.tar.gz
puppet-ferm-beb7c4247272569918aa0ed85ee5a95653f2b46f.tar.bz2
enhance puppet-strings documentation
Diffstat (limited to 'manifests')
-rw-r--r--manifests/rule.pp17
1 files changed, 17 insertions, 0 deletions
diff --git a/manifests/rule.pp b/manifests/rule.pp
index a973601..1acbfd1 100644
--- a/manifests/rule.pp
+++ b/manifests/rule.pp
@@ -17,6 +17,23 @@
# saddr => '127.0.0.1',
# }
#
+#
+# @example Confuse people that do a traceroute/mtr/ping to your system
+# ferm::rule{'drop-icmp-time-exceeded':
+# chain => 'OUTPUT',
+# policy => 'DROP',
+# proto => 'icmp',
+# proto_options => 'icmp-type time-exceeded',
+# }
+#
+# @example allow multiple protocols
+# ferm::rule{'allow_consul':
+# chain => 'INPUT',
+# policy => 'ACCEPT',
+# proto => ['udp', 'tcp'],
+# dport => 8301,
+# }
+#
# @param chain Configure the chain where we want to add the rule
# @param proto Which protocol do we want to match, typically UDP or TCP
# @param comment A comment that will be added to the ferm config and to ip{,6}tables