* Systemd, nftables, and iptables
@ 2020-05-18 14:13 Stephen Satchell
2020-05-18 14:24 ` kfm
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Stephen Satchell @ 2020-05-18 14:13 UTC (permalink / raw)
To: netfilter
I'm building a CentOS 8.1 system on a Protectly four-port appliance, to
be my new firewall. To avoid problems, I'm trying to remove IPTABLES
completely from the system so there is no chance of interference between
the two firewalls.
Problem: systemd requires iptables-lib.
1. Why?
2. How to keep systemd from requiring iptables-lib?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Systemd, nftables, and iptables
2020-05-18 14:13 Systemd, nftables, and iptables Stephen Satchell
@ 2020-05-18 14:24 ` kfm
2020-05-18 14:28 ` Reindl Harald
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: kfm @ 2020-05-18 14:24 UTC (permalink / raw)
To: list, netfilter
On 18/05/2020 15:13, Stephen Satchell wrote:
> I'm building a CentOS 8.1 system on a Protectly four-port appliance, to
> be my new firewall. To avoid problems, I'm trying to remove IPTABLES
> completely from the system so there is no chance of interference between
> the two firewalls.
>
> Problem: systemd requires iptables-lib.
>
> 1. Why?
systemd uses libiptc for some features. One example I'm aware of is the
--port option of systemd-nspawn.
> 2. How to keep systemd from requiring iptables-lib?
Build it with -Dlibiptc=false.
--
Kerin Millar
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Systemd, nftables, and iptables
2020-05-18 14:13 Systemd, nftables, and iptables Stephen Satchell
2020-05-18 14:24 ` kfm
@ 2020-05-18 14:28 ` Reindl Harald
2020-05-20 12:01 ` Alexander Dahl
2020-05-21 2:23 ` Trent W. Buck
3 siblings, 0 replies; 5+ messages in thread
From: Reindl Harald @ 2020-05-18 14:28 UTC (permalink / raw)
To: list, netfilter
Am 18.05.20 um 16:13 schrieb Stephen Satchell:
> I'm building a CentOS 8.1 system on a Protectly four-port appliance, to
> be my new firewall. To avoid problems, I'm trying to remove IPTABLES
> completely from the system so there is no chance of interference between
> the two firewalls.
>
> Problem: systemd requires iptables-lib.
>
> 1. Why?
> 2. How to keep systemd from requiring iptables-lib?
you are trying to solve a non-existing problem
the linked userland libraries have nothing to to with active iptables /
nftables in the kernel and rebuilding systemd just to avoid loading a
userkand library is pointless
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Systemd, nftables, and iptables
2020-05-18 14:13 Systemd, nftables, and iptables Stephen Satchell
2020-05-18 14:24 ` kfm
2020-05-18 14:28 ` Reindl Harald
@ 2020-05-20 12:01 ` Alexander Dahl
2020-05-21 2:23 ` Trent W. Buck
3 siblings, 0 replies; 5+ messages in thread
From: Alexander Dahl @ 2020-05-20 12:01 UTC (permalink / raw)
To: netfilter, list
Hei hei,
Am Montag, 18. Mai 2020, 16:13:21 CEST schrieb Stephen Satchell:
> I'm building a CentOS 8.1 system on a Protectly four-port appliance, to
> be my new firewall. To avoid problems, I'm trying to remove IPTABLES
> completely from the system so there is no chance of interference between
> the two firewalls.
>
> Problem: systemd requires iptables-lib.
>
> 1. Why?
Don't know.
> 2. How to keep systemd from requiring iptables-lib?
Maybe patch it? I stumbled over a ticket lately, and for me it reads like
systemd does not support nftables, yet?
https://github.com/systemd/systemd/issues/13307
Greets
Alex
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Systemd, nftables, and iptables
2020-05-18 14:13 Systemd, nftables, and iptables Stephen Satchell
` (2 preceding siblings ...)
2020-05-20 12:01 ` Alexander Dahl
@ 2020-05-21 2:23 ` Trent W. Buck
3 siblings, 0 replies; 5+ messages in thread
From: Trent W. Buck @ 2020-05-21 2:23 UTC (permalink / raw)
To: netfilter
Stephen Satchell <list@satchell.net> writes:
> I'm building a CentOS 8.1 system on a Protectly four-port appliance,
> to be my new firewall. To avoid problems, I'm trying to remove
> IPTABLES completely from the system so there is no chance of
> interference between the two firewalls.
>
> Problem: systemd requires iptables-lib.
>
> 1. Why?
> 2. How to keep systemd from requiring iptables-lib?
I complained about this a while ago:
https://bugs.debian.org/934584
https://github.com/systemd/systemd/issues/13307
You CAN have both nftables and xtables rulesets active at the same time.
It works for me (for now), it's just EXTREMELY confusing because you
must know to check both "nft list ruleset" and "iptables-legacy-save".
systemd is built using meson, not autotools.
I don't speak meson, but meson_options.txt contains:
option('libiptc',
type : 'combo',
choices : ['auto', 'true', 'false'],
description : 'libiptc support')
So you can probably do something like "./configure --without-libiptc".
As at systemd v245-125-ga4f4a4e441,
the only thing using it seems to be systemd-nspawn --port.
So if you do not use systemd-based containers,
you will not miss this.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-05-21 2:23 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-18 14:13 Systemd, nftables, and iptables Stephen Satchell
2020-05-18 14:24 ` kfm
2020-05-18 14:28 ` Reindl Harald
2020-05-20 12:01 ` Alexander Dahl
2020-05-21 2:23 ` Trent W. Buck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox