Projet

Général

Profil

Révision 3a469f2b

ID3a469f2b35f19d7e91fe2f745a124faf8271b45b
Parent abb04c95
Enfant 6739966c

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

Implement nftables::simplerule::saddr

Voir les différences:

manifests/simplerule.pp
47 47
# @param sport
48 48
#   The source port, ports or port range.
49 49
#
50
# @param saddr
51
#   The source address, CIDR or set to match.
52
#
50 53
# @param counter
51 54
#   Enable traffic counters for the matched traffic.
52 55

  
......
63 66
  Optional[Variant[Stdlib::IP::Address::V6, Stdlib::IP::Address::V4, Pattern[/^@[-a-zA-Z0-9_]+$/]]] $daddr = undef,
64 67
  Enum['ip', 'ip6'] $set_type = 'ip6',
65 68
  Optional[Variant[Array[Stdlib::Port, 1], Stdlib::Port, Pattern[/\d+-\d+/]]] $sport = undef,
69
  Optional[Variant[Stdlib::IP::Address::V6, Stdlib::IP::Address::V4, Pattern[/^@[-a-zA-Z0-9_]+$/]]] $saddr = undef,
66 70
  Boolean $counter = false,
67 71
) {
68 72
  if $dport and !$proto {
......
84 88
          'proto'    => $proto,
85 89
          'daddr'    => $daddr,
86 90
          'set_type' => $set_type,
91
          'saddr'    => $saddr,
87 92
          'sport'    => $sport,
88 93
        }
89 94
      ),

Formats disponibles : Unified diff