Projet

Général

Profil

Révision aaa37172

IDaaa3717227e47c22195f2cf7e95d96bc01179cd8
Parent d38aab5b
Enfant d43ced4d

Ajouté par Nacho Barrientos il y a plus de 4 ans

Implement nftables:;simplerule::daddr

Voir les différences:

manifests/simplerule.pp
20 20
    $dport  = undef,
21 21
  Optional[Enum['tcp', 'tcp4', 'tcp6', 'udp', 'udp4', 'udp6']]
22 22
    $proto  = undef,
23
  Optional[Variant[Stdlib::IP::Address::V6, Stdlib::IP::Address::V4, Pattern[/^@[-a-zA-Z0-9_]+$/]]]
24
    $daddr = undef,
25
  Enum['ip', 'ip6']
26
    $set_type = 'ip6',
23 27
){
24 28

  
25 29
  if $dport and !$proto {
......
30 34
    nftables::rule{"${chain}-${rulename}":
31 35
      content => epp('nftables/simplerule.epp',
32 36
        {
33
          'action'  => $action,
34
          'comment' => $comment,
35
          'dport'   => $dport,
36
          'proto'   => $proto,
37
          'action'   => $action,
38
          'comment'  => $comment,
39
          'dport'    => $dport,
40
          'proto'    => $proto,
41
          'daddr'    => $daddr,
42
          'set_type' => $set_type,
37 43
        }
38 44
      ),
39 45
      order   => $order,

Formats disponibles : Unified diff