moby: Docker 28 stops containers communicating with tailscale network.

Description

I use tail scale to allow containers/services to communicate with containers on different hosts. Prior to 28, no changes where needed as docker would use /etc/resolv.conf which tailscale updates to point to itself as a resolver,

Running docker run --rm alpine cat /etc/resolv.conf on 27.5.1 shows

# Generated by Docker Engine.
# This file can be edited; Docker Engine will not make further changes once it
# has been modified.

nameserver 100.100.100.100
search tail67b84.ts.net

# Based on host file: '/etc/resolv.conf' 

Reading the change logs for 28, my understanding this should still happen?

Reproduce

Update to docker engine 28 Containers talking to Tailscale computers will no longer work.

Expected behavior

They continue to talk

docker version

Client: Docker Engine - Community
 Version:           27.5.1
 API version:       1.47
 Go version:        go1.22.11
 Git commit:        9f9e405
 Built:             Wed Jan 22 13:41:17 2025
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.5.1
  API version:      1.47 (minimum version 1.24)
  Go version:       go1.22.11
  Git commit:       4c9b3b0
  Built:            Wed Jan 22 13:41:17 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.25
  GitCommit:        bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc:
  Version:          1.2.4
  GitCommit:        v1.2.4-0-g6c52b3f
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client: Docker Engine - Community
 Version:    27.5.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.21.0
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.33.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 11
  Running: 10
  Paused: 0
  Stopped: 1
 Images: 11
 Server Version: 27.5.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc version: v1.2.4-0-g6c52b3f
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.1.0-31-cloud-amd64
 Operating System: Debian GNU/Linux 12 (bookworm)
 OSType: linux
 Architecture: x86_64
 CPUs: 1
 Total Memory: 1.886GiB
 Name: SYD01
 ID: 5420cb38-1a11-4c16-a531-d77bc7577948
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Default Address Pools:
   Base: 172.16.0.0/12, Size: 24

Additional Info

I have rolled back to 27.5.1 which restores communication.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 5
  • Comments: 55 (24 by maintainers)

Most upvoted comments

Thanks again to everyone who’s reported issues and provided debug info here … we’re about to start packaging a 28.0.1 release.

I believe all the issues here will be addressed by some combination of:

The possible exception is the issue with swag (@digdilem), which we’ve not been able to repro - but it’s still likely to be covered. If not, we’ll take another look.

I’ll close this issue as completed, but will still see further comments/questions if any. Hopefully this isn’t going to be necessary but, if there are still problems with 28.0.1, it’d be best to raise new issues.

I’ve had this issue after upgrade too, have tried setting tailscale set --stateful-filtering=false but no dice, is there anything I can do to fix this?

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
15287 6643K ts-input   0    --  *      *       0.0.0.0/0            0.0.0.0/0           
 9832 5652K ACCEPT     0    --  *      *       0.0.0.0/0            0.0.0.0/0            state RELATED,ESTABLISHED
  108  8032 ACCEPT     1    --  *      *       0.0.0.0/0            0.0.0.0/0           
  547 40654 ACCEPT     0    --  lo     *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     17   --  *      *       0.0.0.0/0            0.0.0.0/0            udp spt:123
   22  1284 ACCEPT     6    --  *      *       0.0.0.0/0            0.0.0.0/0            state NEW tcp dpt:22
    0     0 ACCEPT     6    --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:45876
   52  6320 REJECT     0    --  *      *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibited

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
13580 5945K DOCKER-USER  0    --  *      *       0.0.0.0/0            0.0.0.0/0           
 4053  613K ACCEPT     0    --  *      *       0.0.0.0/0            0.0.0.0/0            match-set docker-ext-bridges-v4 dst ctstate RELATED,ESTABLISHED
 9527 5332K DOCKER-ISOLATION-STAGE-1  0    --  *      *       0.0.0.0/0            0.0.0.0/0           
 1051 52722 DOCKER     0    --  *      *       0.0.0.0/0            0.0.0.0/0            match-set docker-ext-bridges-v4 dst
 8477 5279K ts-forward  0    --  *      *       0.0.0.0/0            0.0.0.0/0           
 5198  274K REJECT     0    --  *      *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibited
    0     0 ACCEPT     0    --  br-6d6dc4c115fd *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-bb3a59d04805 *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-f83af4eb63ec *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-1cf887c61b81 *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-282514736f06 *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-5231899130b3 *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-a058876d7852 *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-aea98e25a21e *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-aecbfed19a97 *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-7c1a62a40639 *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  docker0 *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     0    --  br-4ae4c56a0f14 *       0.0.0.0/0            0.0.0.0/0           

Chain OUTPUT (policy ACCEPT 17684 packets, 5917K bytes)
 pkts bytes target     prot opt in     out     source               destination         
  269 20017 InstanceServices  0    --  *      *       0.0.0.0/0            169.254.0.0/16      

Chain DOCKER (1 references)
 pkts bytes target     prot opt in     out     source               destination         
   16   960 ACCEPT     6    --  !docker0 docker0  0.0.0.0/0            172.17.0.2           tcp dpt:9001
  778 41394 ACCEPT     6    --  !br-1cf887c61b81 br-1cf887c61b81  0.0.0.0/0            172.19.0.2           tcp dpt:443
  256 10304 ACCEPT     6    --  !br-1cf887c61b81 br-1cf887c61b81  0.0.0.0/0            172.19.0.2           tcp dpt:80
    0     0 DROP       0    --  !br-6d6dc4c115fd br-6d6dc4c115fd  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !br-bb3a59d04805 br-bb3a59d04805  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !br-f83af4eb63ec br-f83af4eb63ec  0.0.0.0/0            0.0.0.0/0           
    1    64 DROP       0    --  !br-1cf887c61b81 br-1cf887c61b81  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !br-282514736f06 br-282514736f06  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !br-5231899130b3 br-5231899130b3  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !br-a058876d7852 br-a058876d7852  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !br-aea98e25a21e br-aea98e25a21e  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !br-aecbfed19a97 br-aecbfed19a97  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !br-7c1a62a40639 br-7c1a62a40639  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !docker0 docker0  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  !br-4ae4c56a0f14 br-4ae4c56a0f14  0.0.0.0/0            0.0.0.0/0           

Chain DOCKER-ISOLATION-STAGE-1 (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DOCKER-ISOLATION-STAGE-2  0    --  br-6d6dc4c115fd !br-6d6dc4c115fd  0.0.0.0/0            0.0.0.0/0           
    0     0 DOCKER-ISOLATION-STAGE-2  0    --  br-bb3a59d04805 !br-bb3a59d04805  0.0.0.0/0            0.0.0.0/0           
    0     0 DOCKER-ISOLATION-STAGE-2  0    --  br-f83af4eb63ec !br-f83af4eb63ec  0.0.0.0/0            0.0.0.0/0           
 6180 2556K DOCKER-ISOLATION-STAGE-2  0    --  br-1cf887c61b81 !br-1cf887c61b81  0.0.0.0/0            0.0.0.0/0           
    0     0 DOCKER-ISOLATION-STAGE-2  0    --  br-282514736f06 !br-282514736f06  0.0.0.0/0            0.0.0.0/0           
    0     0 DOCKER-ISOLATION-STAGE-2  0    --  br-5231899130b3 !br-5231899130b3  0.0.0.0/0            0.0.0.0/0           
    0     0 DOCKER-ISOLATION-STAGE-2  0    --  br-a058876d7852 !br-a058876d7852  0.0.0.0/0            0.0.0.0/0           
    0     0 DOCKER-ISOLATION-STAGE-2  0    --  br-aea98e25a21e !br-aea98e25a21e  0.0.0.0/0            0.0.0.0/0           
 1107 73264 DOCKER-ISOLATION-STAGE-2  0    --  br-aecbfed19a97 !br-aecbfed19a97  0.0.0.0/0            0.0.0.0/0           
    0     0 DOCKER-ISOLATION-STAGE-2  0    --  br-7c1a62a40639 !br-7c1a62a40639  0.0.0.0/0            0.0.0.0/0           
 1189 2650K DOCKER-ISOLATION-STAGE-2  0    --  docker0 !docker0  0.0.0.0/0            0.0.0.0/0           
    0     0 DOCKER-ISOLATION-STAGE-2  0    --  br-4ae4c56a0f14 !br-4ae4c56a0f14  0.0.0.0/0            0.0.0.0/0           

Chain DOCKER-ISOLATION-STAGE-2 (12 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 DROP       0    --  *      br-4ae4c56a0f14  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      docker0  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-7c1a62a40639  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-aecbfed19a97  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-aea98e25a21e  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-a058876d7852  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-5231899130b3  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-282514736f06  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-1cf887c61b81  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-f83af4eb63ec  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-bb3a59d04805  0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       0    --  *      br-6d6dc4c115fd  0.0.0.0/0            0.0.0.0/0           

Chain DOCKER-USER (1 references)
 pkts bytes target     prot opt in     out     source               destination         
13611 5947K RETURN     0    --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain InstanceServices (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     6    --  *      *       0.0.0.0/0            169.254.0.2          owner UID match 0 tcp dpt:3260 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 ACCEPT     6    --  *      *       0.0.0.0/0            169.254.2.0/24       owner UID match 0 tcp dpt:3260 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 ACCEPT     6    --  *      *       0.0.0.0/0            169.254.4.0/24       owner UID match 0 tcp dpt:3260 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 ACCEPT     6    --  *      *       0.0.0.0/0            169.254.5.0/24       owner UID match 0 tcp dpt:3260 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 ACCEPT     6    --  *      *       0.0.0.0/0            169.254.0.2          tcp dpt:80 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
   11   903 ACCEPT     17   --  *      *       0.0.0.0/0            169.254.169.254      udp dpt:53 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 ACCEPT     6    --  *      *       0.0.0.0/0            169.254.169.254      tcp dpt:53 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 ACCEPT     6    --  *      *       0.0.0.0/0            169.254.0.3          owner UID match 0 tcp dpt:80 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 ACCEPT     6    --  *      *       0.0.0.0/0            169.254.0.4          tcp dpt:80 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
  253 18734 ACCEPT     6    --  *      *       0.0.0.0/0            169.254.169.254      tcp dpt:80 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 ACCEPT     17   --  *      *       0.0.0.0/0            169.254.169.254      udp dpt:67 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 ACCEPT     17   --  *      *       0.0.0.0/0            169.254.169.254      udp dpt:69 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    5   380 ACCEPT     17   --  *      *       0.0.0.0/0            169.254.169.254      udp dpt:123 /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */
    0     0 REJECT     6    --  *      *       0.0.0.0/0            169.254.0.0/16       tcp /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */ reject-with tcp-reset
    0     0 REJECT     17   --  *      *       0.0.0.0/0            169.254.0.0/16       udp /* See the Oracle-Provided Images section in the Oracle Cloud Infrastructure documentation for security impact of modifying or removing this rule */ reject-with icmp-port-unreachable

Chain ts-forward (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 MARK       0    --  tailscale0 *       0.0.0.0/0            0.0.0.0/0            MARK xset 0x40000/0xff0000
    0     0 ACCEPT     0    --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x40000/0xff0000
    0     0 DROP       0    --  *      tailscale0  100.64.0.0/10        0.0.0.0/0           
 3309 5008K ACCEPT     0    --  *      tailscale0  0.0.0.0/0            0.0.0.0/0           

Chain ts-input (1 references)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     0    --  lo     *       100.120.192.18       0.0.0.0/0           
    0     0 RETURN     0    --  !tailscale0 *       100.115.92.0/23      0.0.0.0/0           
    0     0 DROP       0    --  !tailscale0 *       100.64.0.0/10        0.0.0.0/0           
 1231  123K ACCEPT     0    --  tailscale0 *       0.0.0.0/0            0.0.0.0/0           
 3625  854K ACCEPT     17   --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:41641

EDIT:

Running these commands fixed it:

sudo iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited
sudo iptables -A FORWARD -j REJECT --reject-with icmp-host-prohibited

The issue was related to Oracle Cloud rules.

Edit: I’m sure this is added by Plesk. Poking around a bit I found they have “System policy for traffic forwarding” in their Firewall settings, and I expect that’s what created the rule - and that means it’ll probably get reapplied unless I disable it.

Thanks @pschneid - that sounds likely. If sysctl net.ipv4.ip_forward is enabled on the host (as it is by Docker and, quite likely, Plesk), the default policy for the FORWARD chain should be set to DROP to keep containers/VMs etc running on the host isolated.

If that rule is the only thing controlled by the Plesk setting, and you can set iptables -P FORWARD DROP on boot, it should be ok … but, no guarantees.

Current thinking is that we’ll split Docker’s rules out of the FORWARD chain into a new DOCKER-SOMETHING chain, where we can insert and append rules as we like.

The, as long as we make sure the jump to DOCKER-SOMETHING is at the top of the FORWARD chain, it shouldn’t matter if other applications append to the FORWARD chain before/after docker networks are added.

That should help with this, the Oracle Cloud issue, and probably the swag issue.

I also just ran into this with an unattended-upgrade on Ubuntu 24.04 which breaks external connectivity to published ports on swarm.

The packets are being dropped in DOCKER chain in the new set of iptables rules: https://github.com/moby/moby/blob/master/integration/network/bridge/iptablesdoc/generated/swarm-portmap.md?plain=1#L29

Chain DOCKER (1 references)
 pkts bytes target     prot opt in     out     source               destination
    9   540 DROP       0    --  !docker_gwbridge docker_gwbridge  0.0.0.0/0            0.0.0.0/0
    0     0 DROP       0    --  !docker0 docker0  0.0.0.0/0            0.0.0.0/0

In prior versions, this rule does not exist and no drops happen here. With the refactoring of rules, this rule seems unnecessary.

for anyone looking for a workaround, just removing that first DROP rule from DOCKER chain or flushing this chain should do the trick.

Same here with Docker v28. i dint think its related to DNS. I cant even Ping a Tailscaledevice from inside a Docker container. With V27.5.1 it works fine

This is our fix in the cloud-init that creates new Docker Swarm nodes (Ubuntu 22.04)

apt install -y --allow-downgrades docker-ce=5:27.5.1-1~ubuntu.22.04~jammy
apt install -y --allow-downgrades docker-ce-cli=5:27.5.1-1~ubuntu.22.04~jammy
apt install -y --allow-downgrades docker-ce-rootless-extras=5:27.5.1-1~ubuntu.22.04~jammy

Apologies in advance if this should be a separate issue as this isn’t related to tailscale but rather iptables.

After updating to Docker v28 all containers lost network access, I found that Oracle Cloud had generated persistent iptables rules (/etc/iptables/rules.v4), one of the rules -A FORWARD -j REJECT --reject-with icmp-host-prohibited was responsible for blocking Docker traffic.

It seems that on Docker v27 network forward rules are added before this REJECT but on Docker v28 they are now added after. Note: br-local is a custom bridge network.

Docker v27.5.1

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
  225 38449 DOCKER-USER  0    --  *      *       0.0.0.0/0            0.0.0.0/0
  225 38449 DOCKER-ISOLATION-STAGE-1  0    --  *      *       0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     0    --  *      docker0  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    0     0 DOCKER     0    --  *      docker0  0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     0    --  docker0 !docker0  0.0.0.0/0            0.0.0.0/0
  116 18900 ACCEPT     0    --  *      br-local  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    1   176 DOCKER     0    --  *      br-local  0.0.0.0/0            0.0.0.0/0
  108 19373 ACCEPT     0    --  br-local !br-local  0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     0    --  br-local br-local  0.0.0.0/0            0.0.0.0/0
    0     0 REJECT     0    --  *      *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibited
    0     0 DROP       0    --  docker0 docker0  0.0.0.0/0            0.0.0.0/0

Docker v28.0.0

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
   52  6950 DOCKER-USER  0    --  *      *       0.0.0.0/0            0.0.0.0/0
   22  2932 ACCEPT     0    --  *      *       0.0.0.0/0            0.0.0.0/0            match-set docker-ext-bridges-v4 dst ctstate RELATED,ESTABLISHED
   30  4018 DOCKER-ISOLATION-STAGE-1  0    --  *      *       0.0.0.0/0            0.0.0.0/0
   18  2436 DOCKER     0    --  *      *       0.0.0.0/0            0.0.0.0/0            match-set docker-ext-bridges-v4 dst
   12  1582 REJECT     0    --  *      *       0.0.0.0/0            0.0.0.0/0            reject-with icmp-host-prohibited
    0     0 ACCEPT     0    --  br-local *       0.0.0.0/0            0.0.0.0/0
    0     0 DROP       0    --  docker0 docker0  0.0.0.0/0            0.0.0.0/0
    0     0 ACCEPT     0    --  docker0 !docker0  0.0.0.0/0            0.0.0.0/0

Thanks again to everyone who’s reported issues and provided debug info here … we’re about to start packaging a 28.0.1 release. The possible exception is the issue with swag (@digdilem), which we’ve not been able to repro - but it’s still likely to be covered. If not, we’ll take another look.

(Postclose comment)

I’m pleased to report that we applied 28.0.1 to our problematic issue (Internal routing between Swag (https proxy) and bespoke http service on rocky9), and this version IS WORKING.

It seems that the issue affecting tailscale was the same as was also affecting us after all, so we’re happy to be fixed as collateral.

Cheers

We have some questions for a Docker Swarm setup, for the savvy here:

  • what is in this issue is it a bug, so we should just wait 28.0.1? or
  • should we start setting up a permanent solution touching iptables/firewall?

Hi @francescor - 28.0.1 is likely to fix the issues … I’d recommend waiting for it (later today or tomorrow).

Can confirm 28.0.1 fixed my issue on the Oracle Cloud Infrastructure VPS too.

Same here. I haven’t even downgraded or touched the iptables, and 28.0.1 fixed the problem. Now I can upgrade my other hosts.

As workaround for avoid the docker downgrade I found this solution: Set a special role on firewall configuration of our servers, allowing a forward for everything through the source 172.16.0.0/12.

Then restart docker service by:

service docker restart

And then restart your containers. And everything back to work properly.

Running these commands fixed it:

sudo iptables -D FORWARD -j REJECT --reject-with icmp-host-prohibited
sudo iptables -A FORWARD -j REJECT --reject-with icmp-host-prohibited

The issue was related to Oracle Cloud rules.

Hi @maxexcloo - thank you for the update … we’ll get this fixed by moving most of Docker’s rules out of the FORWARD chain.

  • I restored my iptables pre v28 luckily saved a copy and all good. But this is not the first time this happened and I would like to know why iptables being changed too many times with each major upgrade. For me especially FORWARD table is the issue and there should be never any changes in there as users may or may not modified it for many reasons, a default rule in forward which should never change and corresponding docker tables can be modified for whatever it needs to be for but not the FORWARD table. Adding rules in ipset and making rules in forward with those is just cosmetics, it can be done easily on docker tables without touching forward. Spent quite some time to troubleshoot this and wanted share my opinion. Now I am back to pre v28 iptables set up and many perhaps did the same so all the effort spent on it is lost.

For the Tailscale issue, some progress … I can repro the issue by running tailscale set --stateful-filtering at the client-container end.

It adds rule -A ts-forward -o tailscale0 -m conntrack ! --ctstate RELATED,ESTABLISHED -j DROP (which is the one dropping packets in your dump @Delta1977, so I think you must have that setting - but it’d be good to confirm).

Running tailscale down/up on 27.5.1 without a moby restart causes the same problem, because the jump to ts-forward ends up at the top of the FORWARD chain. I’m not sure a simple rearrangement of the moby 28.0 rules will fix this one (as it should for some of the other issues here), but at least I can experiment now.

(Quick comment after a skim, please disregard if not linked). Suspicion this is not tail-scale only, or there are two issues with 28.0.0 that affect internal routing.

We had an issue between swag and a http host losing internal routing this morning following an update of docker from 27.x to 28.x (We keep this patched daily as it’s internet exposed).

Flushing nftables, restarting the vm, restarting the containers, re-deploying the containers - none of it helped. The only thing that fixed for us was reverting the entire vm back to before the upgrade to 28.0.0

We verified it was the upgrade that was at fault by repeating it manually, and docker stopped routing internally as soon as it was restarted.

We checked nftables’ rules (host was rocky 9) and they looked correct, with the correct external ports.

what also helps me is just flushing all the rules before upgrading to 28, that fixes the ordering of the rules in FORWARD and INGRESS rules end up near the top. It might help in your case as well @lxgaming