Skip to content

Commit

Permalink
enable correct service for EL9 using legacy IPv4
Browse files Browse the repository at this point in the history
probably not many people still using IPv4 in their systems, after all
IPv6 is soon 25 years old, but... we still want to support it.

nftables.service loads nft rules from /etc/sysconfig/nftables.conf,
but this module generates classic iptables rules.  The service to load
these on boot is simply "iptables.service".

IPv6 rules are loaded correctly by ip6tables.service.
  • Loading branch information
kjetilho committed Dec 13, 2022
1 parent 62be291 commit c99a310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
default: {
if versioncmp($::operatingsystemrelease, '9') >= 0 {
$service_name = 'nftables'
$service_name = 'iptables'
$service_name_v6 = 'ip6tables'
$package_name = ['iptables-services', 'nftables', 'iptables-nft-services']
$iptables_name = 'iptables-nft'
Expand Down

0 comments on commit c99a310

Please sign in to comment.