Révision cbe342b9
Use protocol number instead of label
The label was `ospf` and will be `ospfigp` in the future. Instead of
creating a map use the protocol number to be compatible with newer
versions.
manifests/rules/ospf.pp | ||
---|---|---|
2 | 2 |
class nftables::rules::ospf { |
3 | 3 |
nftables::rule { |
4 | 4 |
'default_in-ospf': |
5 |
content => 'ip daddr { 224.0.0.5, 224.0.0.6 } meta l4proto ospf accept',
|
|
5 |
content => 'ip daddr { 224.0.0.5, 224.0.0.6 } meta l4proto 89 accept',
|
|
6 | 6 |
} |
7 | 7 |
} |
manifests/rules/ospf3.pp | ||
---|---|---|
2 | 2 |
class nftables::rules::ospf3 { |
3 | 3 |
nftables::rule { |
4 | 4 |
'default_in-ospf3': |
5 |
content => 'ip6 saddr fe80::/64 ip6 daddr { ff02::5, ff02::6 } meta l4proto ospf accept',
|
|
5 |
content => 'ip6 saddr fe80::/64 ip6 daddr { ff02::5, ff02::6 } meta l4proto 89 accept',
|
|
6 | 6 |
} |
7 | 7 |
} |
manifests/rules/out/ospf.pp | ||
---|---|---|
2 | 2 |
class nftables::rules::out::ospf { |
3 | 3 |
nftables::rule { |
4 | 4 |
'default_out-ospf': |
5 |
content => 'ip daddr { 224.0.0.5, 224.0.0.6 } meta l4proto ospf accept',
|
|
5 |
content => 'ip daddr { 224.0.0.5, 224.0.0.6 } meta l4proto 89 accept',
|
|
6 | 6 |
} |
7 | 7 |
} |
manifests/rules/out/ospf3.pp | ||
---|---|---|
2 | 2 |
class nftables::rules::out::ospf3 { |
3 | 3 |
nftables::rule { |
4 | 4 |
'default_out-ospf3': |
5 |
content => 'ip6 saddr fe80::/64 ip6 daddr { ff02::5, ff02::6 } meta l4proto ospf accept',
|
|
5 |
content => 'ip6 saddr fe80::/64 ip6 daddr { ff02::5, ff02::6 } meta l4proto 89 accept',
|
|
6 | 6 |
} |
7 | 7 |
} |
Formats disponibles : Unified diff