Révision 1d56f209
Fix IP version filter for IPv6 traffic
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