networkd: IP masquerading with unclear error log message

Aperta
#44,594 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
40/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, linux
Ambito
networking

Direzione di ricerca

Start from the log lines in the issue and the IPMasquerade=ipv4 setting in 80-container-mycont1.network, then find where systemd-networkd emits "Could not enable IP masquerading" and which call returns ENOENT. Reproduce by starting an nspawn container with that network file on a kernel with the modules built in. Done means either the message is correctly reworded or made debug-only when masquerading is already active, or the root cause is identified and documented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug 🐛 network
systemd version the issue has been seen with

262.1

Used distribution

Gentoo

Linux kernel version used

6.18.60

CPU architectures issue was seen on

x86_64

Component

systemd-networkd

Expected behaviour you didn't see

To setup nspawn containers I configure IPMasquerade=ipv4 in 80-container-mycont1.network on the host. All kernel modules are compiled-in and nft can properly configure masquerading in POSTROUTING, too. So, when the machine is started by machinectl start mycont1 I expect a clean startup.

Unexpected behaviour you saw

During machine startup it logs multiple times: Could not enable IP masquerading: No such file or directory.

It is unclear what is triggering this output and what to fix. Masquerading seems to work. Should this message be ignored?

Note: I have all kernel modules compiled-in (no dynamic loading enabled), ipv6 entirely removed. There is no iptables, only nft.

Note: There is a similar issue but using dynamic module loading.

Steps to reproduce the problem

No response

Additional program output to the terminal or log subsystem illustrating the issue
systemd-networkd[2784]: ve-mycont1: Could not enable IP masquerading: No such file or directory
systemd-networkd[2784]: ve-mycont1: Failed
systemd-networkd[2784]: ve-mycont1: Trying to reconfigure the interface.
systemd-networkd[2784]: ve-mycont1: Reconfiguring with /etc/systemd/network/80-container-mycont1.network.
Lingua principale
C
Stelle
17k
Fork
4.8k
Merge medio
2g 10h
PR unite (30g)
342

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di systemd/systemd

Tutte le issue di systemd/systemd

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.