Révision 7cc88e25
Linting
manifests/rules/dnat4.pp | ||
---|---|---|
1 | 1 |
# manage a ipv4 dnat rule |
2 | 2 |
define nftables::rules::dnat4( |
3 |
Enum['present','absent'] |
|
4 |
$ensure = 'present', |
|
3 |
Pattern[/^[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}$/] |
|
4 |
$daddr, |
|
5 |
Variant[String,Integer[1,65535]] |
|
6 |
$port, |
|
5 | 7 |
Pattern[/^[a-zA-Z0-9_]+$/] |
6 | 8 |
$rulename = $title, |
7 | 9 |
Pattern[/^\d\d$/] |
... | ... | |
10 | 12 |
$chain = 'default_fwd', |
11 | 13 |
Optional[String[1]] |
12 | 14 |
$iif = undef, |
13 |
Pattern[/^[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}\.[12]?\d{1,2}$/] |
|
14 |
$daddr, |
|
15 | 15 |
Pattern[/^(tcp|udp)$/] |
16 | 16 |
$proto = 'tcp', |
17 |
Variant[String,Integer[1,65535]] |
|
18 |
$port, |
|
19 | 17 |
Optional[Variant[String,Integer[1,65535]]] |
20 | 18 |
$dport = '', |
19 |
Enum['present','absent'] |
|
20 |
$ensure = 'present', |
|
21 | 21 |
) { |
22 | 22 |
|
23 | 23 |
$iifname = $iif ? { |
Formats disponibles : Unified diff