Docker container on br0 with own IP can't reach network nor internet


Recommended Posts

Hello.

 

I'm starting this thread after some research on the board, but I can't find a thread which is exactly my UNRAID behaviour.

I thought I found the solution with this thread but no luck 

My problem is that I want to run my docker containers which have to use not modifiable port (like by example AdGuard Home : DNS resolution) in my network with its own IP to avoid port conflicts.

 

I only have one network. I don't have VLAN isolation.

It was working fine until last october, after an update, my br0 dockers lost their connection with the network. They can be reached (they answer to ping, and GUI is reachable) but they cannot ping other machines nor internet.

 

I would like to know what's wrong, what I miss, and how I can restore this config.

 

Many thanks

 

Ping tests :
OUTBOUND
-  Container to google.com : No ping 
-  Container to VM : No ping
-  Container to Unraid : No ping
-  Container to Router : No ping
- ✔️Container to 127.0.0.1 : Ping! 
INBOUND
- ✔️VM to Container : Ping
- ✔️Unraid to Container : Ping
- ✔️Router to Container : Ping

 

Container ip route list gives : 

Quote

default via [router ip] dev eth0 
192.168.5.0/24 dev eth0 scope link  src [container IP]

[unraid IP] via [router IP]

 

Unraid routes are :

Quote

IPv4    default    [router IP] via shim-br0    1    
IPv4    default    [router IP] via br0            1009
...
IPv4    192.168.5.0/25    shim-br0    1    
IPv4    192.168.5.0/24    br0            1009    
IPv4    [container IP]    [router IP]    1    

 

Docker settings are :

Quote

Docker custom network type: ipvlan
Host access to custom networks: Enabled
Preserve user defined networks: Yes
IPv4 custom network on interface br0: Subnet: 192.168.5.0/24 Gateway: 192.168.5.1 DHCP pool: not set

 

Docker network br0 inspect gives :

[
    {
        "Name": "br0",        
        "Scope": "local",
        "Driver": "ipvlan",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": {},
            "Config": [
                {
                    "Subnet": "192.168.5.0/24",
                    "Gateway": "[router IP]",
                    "AuxiliaryAddresses": {
                        "server": "[unraid IP]"
                    }
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "uid": {
                "Name": "smokeping",
                "MacAddress": "",
                "IPv4Address": "[container IP]/24",
                "IPv6Address": ""
            }
        },
        "Options": {
            "parent": "br0"
        },
        "Labels": {}
    }
]


 

 

 

 

Edited by LittleLama
Link to comment
  • LittleLama changed the title to Docker container on br0 with own IP can't reach network nor internet
  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.