[docker-in-docker] v4 with iptablesSwitchAtRuntime:true default on Ubuntu 26.04 host/devcontainer image activates iptables-legacy instead of iptables-nft
I maintainer di solito rispondono entro 8 giorni
@v-Kaniska244 ci sta già lavorando.
Dal 20/8/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
After upgrading the devcontainer configuration of siemens/ghostwire to use an Ubuntu 26.04 base image and the docker-in-docker:4 feature on a Ubuntu 26.04 host a test related to nft packet forwarding rules failed. Diving deeper revealed that the docker-in-docker:4 feature with the default setting iptablesSwitchAtRuntime:true activates iptables-legacy instead of iptables-nft.
It seems that the feature sees that ip_tables is listed in /proc/modules and thus unfortunately falls on the wrong side of the slice of bread, activating iptables-legacy.
Forcing iptablesSwitchAtRuntime:false correctly activates iptables-nft instead when building on this host.
The problem now is that when other users/projects use the default iptablesSwitchAtRuntime:true setting they end up with the legacy when the nft would have been the better choice: as there is no Go native iptables (legacy) interface module available, but there is a Go native nftables module from Google, not least Edgeshark/Ghostwire as well as some other tools cannot correctly figure out the port forwarding inside dev containers when using these diagnosis tools.
Would it be possible to fix this in the way that iptables-nft gets activated when nf_tables is available, as well as iptables-nft? This would hopefully make the slice of bread fall on the better side for many unsuspecting devcontainer feature users.
- Lingua principale
- Shell
- Stelle
- 1.5k
- Fork
- 621
- Merge medio
- 7g 8h
- PR unite (30g)
- 10
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di devcontainers/features
-
Go feature installs unpinned editor tools with fixable HIGH vulnerabilitiesForse già presa @V-Subhankar-infy l’ha presa 9 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
devcontainers/features#1742 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 8 giorni
-
`docker-outside-of-docker`: Add support for containerd image storeForse già presa @v-Kaniska244 l’ha presa 8 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
devcontainers/features#1740 · 4 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 8 giorni
-
use mise for java feature installation or make sdkman configuable to download JDK from mirrosAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
devcontainers/features#1730 ·
I maintainer di solito rispondono entro 8 giorni
-
Version resolution over unauthenticated git makes feature installs fail hard, with no fallbackForse già presa @v-Kaniska244 l’ha presa 26 giorni fa. Aperta
devcontainers/features#1726 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 8 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
devcontainers/features#1707 ·
I maintainer di solito rispondono entro 8 giorni
Tutte le issue di devcontainers/features
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
linuxserver/docker-baseimage-selkies#195 · 3 commenti ·
-
Update: openpgpjsAperta📦 Update Request
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
area:release bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
registrystack/registry-stack#1874 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno