Projet

Général

Profil

Révision 1d56f209

ID1d56f2090b8d38c26f3e987ddc6a3a9f19e9513b
Parent 7d44d49e
Enfant 14156fb6

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

Fix IP version filter for IPv6 traffic

Voir les différences:

spec/defines/simplerule_spec.rb
141 141
        it { is_expected.to compile }
142 142
        it {
143 143
          is_expected.to contain_nftables__rule('default_in-my_default_rule_name').with(
144
            content: 'ip version 6 udp dport {33} accept',
144
            content: 'ip6 version 6 udp dport {33} accept',
145 145
          )
146 146
        }
147 147
      end
templates/simplerule.epp
15 15
  }
16 16
  $_ip_version_filter = $proto ? {
17 17
    /(tcp4|udp4)/ => 'ip version 4',
18
    /(tcp6|udp6)/ => 'ip version 6',
18
    /(tcp6|udp6)/ => 'ip6 version 6',
19 19
    default       => undef,
20 20
  }
21 21
} else {

Formats disponibles : Unified diff