Docker 28.0 forwarding traffic
Docker version 28.0 implemented some security changes on Linux machines that strengthen the iptables forwarding rules.
If you notice that you have connectivity issues related to forwarding, you might need to re-enable permissive forwarding.
Here are 2 solutions :
Modify daemon.json
sudo vim /etc/docker/daemon.json
{
"ip-forward-no-drop": true
}
sudo systemctl restart docker
Create a network with nat-unprotected
docker network create --subnet=10.3.192.0/23 --opt com.docker.network.bridge.gateway_mode_ipv4=nat-unprotected mynet46
Sources :
Création de l'article : 13/04/2025, Auteur : Informaticien Guyane