Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 813468

Summary: net-firewall/ipset: Systemd unit contains wrong iptables unit names in "Before" list
Product: Gentoo Linux Reporter: Steffen Weber <steffen.weber>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: ran.dall, robbat2, sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Steffen Weber 2021-09-17 14:55:57 UTC
$ grep "Before" /lib/systemd/system/ipset.service 
Before=network-pre.target iptables.service ip6tables.service firewalld.service

But the iptables systemd units are actually called:

$ cd /lib/systemd/system && ls ip*tables*
- ip6tables-restore.service
- ip6tables-store.service
- iptables-restore.service
- iptables-store.service

So the mentioned "Before" line in the ipset systemd unit should probably read:

Before=network-pre.target iptables-restore.service ip6tables-restore.service firewalld.service

This ensures that ipset is always restored before iptables such that the iptables rules can reference ipset sets.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-12-31 23:22:35 UTC
*** Bug 834091 has been marked as a duplicate of this bug. ***
Comment 2 Larry the Git Cow gentoo-dev 2022-12-31 23:28:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abff60a972c82e5c0f155a3a37bc6cdb7613ea25

commit abff60a972c82e5c0f155a3a37bc6cdb7613ea25
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-31 23:23:13 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-12-31 23:23:21 +0000

    net-firewall/ipset: add 7.17
    
    Closes: https://bugs.gentoo.org/813468
    Signed-off-by: Sam James <sam@gentoo.org>

 net-firewall/ipset/Manifest               |   1 +
 net-firewall/ipset/files/ipset.systemd-r1 |  15 ++++
 net-firewall/ipset/ipset-7.17.ebuild      | 119 ++++++++++++++++++++++++++++++
 3 files changed, 135 insertions(+)