RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1397262 - Provide a service file and a script to load ip sets via ipset at boot
Summary: Provide a service file and a script to load ip sets via ipset at boot
Keywords:
Status: CLOSED DUPLICATE of bug 1136257
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipset
Version: 7.2
Hardware: All
OS: All
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Thomas Woerner
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-11-22 05:10 UTC by Thomas Spear
Modified: 2016-11-22 10:06 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 888571
Environment:
Last Closed: 2016-11-22 10:06:02 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Thomas Spear 2016-11-22 05:10:08 UTC
+++ This bug was initially created as a clone of Bug #888571 +++

Hi,

The original bug listed above was for RHEL6. I have recently discovered that there is no systemd service file nor a loading script for ipset for RHEL7.

It would be very handy to have a proper framework for saving IP sets and loading them via ipset at boot, as my iptables rules depend on the sets, and currently the firewall fails to start since no sets exist at boot.

Personally I have a simple setup. I download IP lists from an RBL site and load them via cron once per day.

I have 2 sets. One for IPv4 and one for IPv6. I match ip4-block set in iptables and ip6-block set in ip6tables.

Because these sets don't exist at boot, both services fail to start.

[root@jump ~]# cat /etc/sysconfig/iptables
# Generated by iptables-save v1.4.21 on Mon Nov 21 23:06:55 2016
*raw
:PREROUTING ACCEPT [395:51283]
:OUTPUT ACCEPT [212:32052]
-A PREROUTING -i eth0 -m set --match-set ip4-block src -j DROP
COMMIT
# Completed on Mon Nov 21 23:06:55 2016
# Generated by iptables-save v1.4.21 on Mon Nov 21 23:06:55 2016
*filter
-------snip-------

[root@jump ~]# cat /etc/sysconfig/ip6tables
COMMIT
# Completed on Mon Nov 21 23:06:59 2016
# Generated by ip6tables-save v1.4.21 on Mon Nov 21 23:06:59 2016
*raw
:PREROUTING ACCEPT [99:35695]
:OUTPUT ACCEPT [105:42767]
-A PREROUTING -i eth0 -m set --match-set ip6-block src -j DROP
COMMIT
# Completed on Mon Nov 21 23:06:59 2016

Comment 1 Thomas Woerner 2016-11-22 10:06:02 UTC
Please have a look at #1136257

This is part of 7.3.

*** This bug has been marked as a duplicate of bug 1136257 ***


Note You need to log in before you can comment on or make changes to this bug.