Révision 4ec94616
Re-document and add example
manifests/simplerule.pp | ||
---|---|---|
1 |
# This class is meant to be useful to ease the migration from the Firewall type |
|
2 |
# for simple use cases. The coverage of all the casuistry is rather low so for |
|
3 |
# any case not covered by nftables::simplerule please just use nftables::rule. |
|
1 |
# @summary Provides a simplified interface to nftables::rule for basic use cases |
|
2 |
# |
|
3 |
# @example allow incoming traffic on port 543 TCP to a given IP range and count packets |
|
4 |
# nftables::simplerule{'my_service_in': |
|
5 |
# action => 'accept', |
|
6 |
# comment => 'allow traffic to port 543', |
|
7 |
# counter => true, |
|
8 |
# proto => 'tcp', |
|
9 |
# dport => 543, |
|
10 |
# daddr => '2001:1458::/32', |
|
11 |
# } |
|
12 |
|
|
4 | 13 |
define nftables::simplerule( |
5 | 14 |
Enum['present','absent'] |
6 | 15 |
$ensure = 'present', |
Formats disponibles : Unified diff