Skip to content

Commit 1e978ac

Browse files
dallasd1christopherco
authored andcommitted
iptables: add back missing kernel modules for iptables (#11982)
Co-authored-by: Christopher Co <[email protected]>
1 parent fdb227f commit 1e978ac

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

Diff for: SPECS/iptables/iptables.conf

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ip_tables
2+
iptable_filter
3+
iptable_mangle
4+
iptable_nat
5+
iptable_security
6+
ip6_tables
7+
ip6table_filter
8+
ip6table_mangle
9+
ip6table_nat
10+
ebt_ip
11+
nf_nat

Diff for: SPECS/iptables/iptables.signatures.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"iptables": "a1981d0e5a7e6b0546d17fcddb5bdc6b639a136b5c2f7f2b2b54d18a41b3d6ac",
66
"iptables-1.8.10.tar.xz": "5cc255c189356e317d070755ce9371eb63a1b783c34498fb8c30264f3cc59c9c",
77
"iptables.service": "40c2a272a6abb4d3e50ff9ae83cedaa241ad5963f27cb5aee113d15597553620",
8-
"iptables.stop": "749be754470183b3edf69ff53109806a81e0b4c4578858faf96d23d59966ef5d"
8+
"iptables.stop": "749be754470183b3edf69ff53109806a81e0b4c4578858faf96d23d59966ef5d",
9+
"iptables.conf": "9e5c56a57c320c264c8a31a41caa32afa797672b52b4fbb0664b7a82218fef11"
910
}
1011
}

Diff for: SPECS/iptables/iptables.spec

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Summary: Linux kernel packet control tool
22
Name: iptables
33
Version: 1.8.10
4-
Release: 3%{?dist}
4+
Release: 4%{?dist}
55
License: GPLv2+
66
Vendor: Microsoft Corporation
77
Distribution: Azure Linux
@@ -13,6 +13,7 @@ Source2: iptables
1313
Source3: iptables.stop
1414
Source4: ip4save
1515
Source5: ip6save
16+
Source6: iptables.conf
1617
BuildRequires: jansson-devel
1718
BuildRequires: libmnl-devel
1819
BuildRequires: libnftnl-devel
@@ -54,6 +55,9 @@ It contains the libraries and header files to create applications.
5455
%install
5556
%make_install
5657

58+
# Create the /etc/modules-load.d directory if it doesn't exist
59+
install -vdm755 %{buildroot}/etc/modules-load.d
60+
5761
# Install daemon scripts
5862
install -vdm755 %{buildroot}%{_unitdir}
5963
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
@@ -62,6 +66,7 @@ install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/systemd/scripts
6266
install -m 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/systemd/scripts
6367
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/systemd/scripts
6468
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/systemd/scripts
69+
install -m 644 %{SOURCE6} %{buildroot}/etc/modules-load.d
6570

6671
find %{buildroot} -name '*.a' -delete
6772
find %{buildroot} -type f -name "*.la" -delete -print
@@ -123,6 +128,7 @@ fi
123128
/usr/share/xtables/iptables.xslt
124129
%ghost %{_sbindir}/ip{,6}tables{,-save,-restore}
125130
%ghost %{_sbindir}/{eb,arp}tables{,-save,-restore}
131+
/etc/modules-load.d/iptables.conf
126132

127133
%files devel
128134
%{_libdir}/*.so
@@ -131,6 +137,9 @@ fi
131137
%{_mandir}/man3/*
132138

133139
%changelog
140+
* Thu Jan 16 2025 Dallas Delaney <[email protected]> - 1.8.10-4
141+
- Add back kernel modules that were removed by enabling nftables
142+
134143
* Tue Nov 12 2024 Sumedh Sharma <[email protected]> - 1.8.10-3
135144
- Enable nftables and use alternatives.
136145

0 commit comments

Comments
 (0)