Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 813468 - net-firewall/ipset: Systemd unit contains wrong iptables unit names in "Before" list
Summary: net-firewall/ipset: Systemd unit contains wrong iptables unit names in "Befor...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 834091 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-09-17 14:55 UTC by Steffen Weber
Modified: 2022-12-31 23:28 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(+)