Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Matter x Docker doesn't work

Featured Replies

Hi,

 

i'm trying to use Matter server on docker with Home assistant but event after enable IPV6 it's doesn't work :/

 

For informations Ha with matter in a VM perfectly work, but i want a docker container not a VM.

 

This is my configuration :

 

- Unraid 6.12.14

- Unifi udm pro with IPV6 Enabled

 

I already execute this command :

 

sysctl -w net.ipv6.conf.br0.accept_ra=2
sysctl -w net.ipv6.conf.br0.accept_ra_rt_info_max_plen=64

ip6tables -A FORWARD -i br0 -o br0 -j ACCEPT

 

Interface :

 

CleanShot2024-12-13at20_07.14@2x.thumb.png.0c3908c9c3eedafa1b16f9419034d62d.png

 

Routing table :

 

CleanShot2024-12-13at20_08.38@2x.thumb.png.fc4956a42c4e8cabd0340b81e334d023.png

 

Docker :

 

CleanShot2024-12-13at20_09.32@2x.thumb.png.96a84bc05ccc1d45c452dde1ef4b6a1e.png

 

Unifi Network :

 

CleanShot2024-12-13at20_10.05@2x.thumb.png.b22e8bd1c5f1c11158a258fd049dd0cd.png

 

Matter server container :

 

CleanShot2024-12-13at20_11.20@2x.thumb.png.3d3c06868025cd05769621d76b57816e.png

 

Thanks for the help :)

Solved by JamesAdams

Matter server must in Network mode : host.

Your HA in VM or docker ?

  • Author

Nop the matter server need to be in br0 and in Host it’s doesn’t work.

 

and i dont use a vm, read my post…

Edited by JamesAdams

  • Community Expert

Need to know your setup and what your tryign to acomplish?

HA a VM or Docker

Matter a VM or Docker.

since Mater is a Dokcer did you folow there support adn infor in the overview?

image.png.b0802028be4736b01affe314942bae85.png

 

more info on the github page as well:
https://github.com/home-assistant-libs/python-matter-server

what is the ouput of systemctl -p

root@BMM-Unraid:~# sysctl -p
kernel.pid_max = 4194304
fs.inotify.max_user_watches = 524288
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216
net.ipv4.ip_forward = 1
net.netfilter.nf_conntrack_max = 131072
root@BMM-Unraid:~# 

^-Example.

as ipv6 forwariding is required to fix some things.
as it apears your figiting vlan bridgiin and ip routes on unraid where that vlan trunking needs to be done at a physical switch side.

ip6tables -A FORWARD -i br0 -o br0 -j ACCEPT

not supriosed thoese comands didn't work due to vlans.

sysctl -w net.ipv6.conf.br0.accept_ra=2
sysctl -w net.ipv6.conf.br0.accept_ra_rt_info_max_plen=64


https://github.com/home-assistant/core/issues/115361

Quote

Re networking being an issue, my router is slightly older at this point (it's a D-link DIR-882), could that be a potential issue?

HA is running in host mode. Is there particular configuration you're meant to do on unraid to prepare it for thread? I googled those two settings (haven't heard of them before), and ran sysctl -a on both the unraid machine and the raspberry pi. Unraid has net.ipv6.conf.wg0.accept_ra = 1
net.ipv6.conf.wg0.accept_ra_rt_info_max_plen = 0
(it doesn't have wlan0)

The raspberry pi has
net.ipv6.conf.wlan0.accept_ra = 0
net.ipv6.conf.wlan0.accept_ra_rt_info_max_plen = 0

And no, no vlans on my network anywhere.

 

I need to know what your docker setings are as we may too to run other command to allow ipv6 on unifi for matter docker
unraid settings?
image.png.49d8a6ffe50355b7e268279a0c37f696.png

Please post a unraid diag...

  • Community Expert

since this is a mdns issue, I've recently made a docker template for avahi that should be in CA later tonight/tomorrow.
Running avahi docker as host should fix most of the these issues.

since you have vlan if they need to cross net. you can add to the extra parameter

 

--opt parent=br0.2

for vlan support. This will mdns redirect and use mdns traffic over the network

 

image.thumb.png.8d2f407d3bff6a9f2655a99222c0c15e.png

 

this is more or less a work around, as unraid runs a premade avahi config. since we can't easily edit avahi conif on unraid. I thought it best to add a docker.

 

Quote

root@BMM-Unraid:~# cd /etc/avahi/
root@BMM-Unraid:/etc/avahi# ls
avahi-daemon.conf  avahi-dnsconfd.action*  hosts  services/
root@BMM-Unraid:/etc/avahi# cat avahi-daemon.conf 
# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

# See avahi-daemon.conf(5) for more information on this configuration
# file!

[server]
#host-name=foo
#domain-name=local
#browse-domains=0pointer.de, zeroconf.org
use-ipv4=yes
use-ipv6=no
allow-interfaces=eth0
#deny-interfaces=eth1
#check-response-ttl=no
#use-iff-running=no
#enable-dbus=yes
#disallow-other-stacks=no
#allow-point-to-point=no
#cache-entries-max=4096
#clients-max=4096
#objects-per-client-max=1024
#entries-per-entry-group-max=32
ratelimit-interval-usec=1000000
ratelimit-burst=1000

[wide-area]
enable-wide-area=yes

[publish]
#disable-publishing=no
#disable-user-service-publishing=no
#add-service-cookie=no
#publish-addresses=yes
publish-hinfo=no
publish-workstation=no
#publish-domain=yes
#publish-dns-servers=192.168.50.1, 192.168.50.2
#publish-resolv-conf-dns-servers=yes
#publish-aaaa-on-ipv4=yes
#publish-a-on-ipv6=no

[reflector]
#enable-reflector=no
#reflect-ipv=no
#reflect-filters=_airplay._tcp.local,_raop._tcp.local

[rlimits]
#rlimit-as=
#rlimit-core=0
#rlimit-data=8388608
#rlimit-fsize=0
#rlimit-nofile=768
#rlimit-stack=8388608
#rlimit-nproc=3
root@BMM-Unraid:/etc/avahi# 

^- Beta 7 RC1 options...

Its recomned to run it as a custom br to have a configurable instance. if you run as host your able to easliy add the br vlan interfaces...

*** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***

--You may need to add the ipv6 option per the overview...

as the mater server is more a unraid avahi issues that is fixed by other network like tweaks on the unraid host.

given your vlan segment and setup your most likely having a vlan trunking issue.

Edited by bmartino1
data - typo

  • Author
15 hours ago, bmartino1 said:

since this is a mdns issue, I've recently made a docker template for avahi that should be in CA later tonight/tomorrow.
Running avahi docker as host should fix most of the these issues.

since you have vlan if they need to cross net. you can add to the extra parameter

 

--opt parent=br0.2

for vlan support. This will mdns redirect and use mdns traffic over the network

 

image.thumb.png.8d2f407d3bff6a9f2655a99222c0c15e.png

 

this is more or less a work around, as unraid runs a premade avahi config. since we can't easily edit avahi conif on unraid. I thought it best to add a docker.

 

^- Beta 7 RC1 options...

Its recomned to run it as a custom br to have a configurable instance. if you run as host your able to easliy add the br vlan interfaces...

*** WARNING: Detected another IPv4 mDNS stack running on this host. This makes mDNS unreliable and is thus not recommended. ***

--You may need to add the ipv6 option per the overview...

as the mater server is more a unraid avahi issues that is fixed by other network like tweaks on the unraid host.

given your vlan segment and setup your most likely having a vlan trunking issue.

 

Completely useless comment

  • Community Expert

I take it you didn't try the docker. as again no diag. and per your pictures you have vlan segmenting. mater uses mdns...

  • Author
6 minutes ago, bmartino1 said:

I take it you didn't try the docker. as again no diag. and per your pictures you have vlan segmenting. mater uses mdns...

You send a comment without read mine, so please stop comment my thread

  • Author
  • Solution

Solution : sysctl -w net.ipv6.conf.all.forwarding=1

and set matter server in Host

Edited by JamesAdams

  • 7 months later...

Sorry for coming back to this old topic, but I'm in the same situation. With this post I realized that I even had no IPv6 DNS server in unRAID because my router (FritzBox) had IPv6 not correctly enabled. But I have the same problem. I don't get any errors if I run the matter-server container on br0 but on host it won't work. Where or how to set sysctl -w net.ipv6.conf.all.forwarding=1? Didn't work for the container.

My docker settings:

image.png

  • Community Expert
2 hours ago, sasbro97 said:

Sorry for coming back to this old topic, but I'm in the same situation. With this post I realized that I even had no IPv6 DNS server in unRAID because my router (FritzBox) had IPv6 not correctly enabled. But I have the same problem. I don't get any errors if I run the matter-server container on br0 but on host it won't work. Where or how to set sysctl -w net.ipv6.conf.all.forwarding=1? Didn't work for the container.

My docker settings:

image.png

you neeed more then just the forwarding you need the ipv6 ra stuff...

sysctl -w net.ipv6.conf.br0.accept_ra=2
sysctl -w net.ipv6.conf.br0.accept_ra_rt_info_max_plen=64

On 8/12/2025 at 11:28 PM, bmartino1 said:

you neeed more then just the forwarding you need the ipv6 ra stuff...

sysctl -w net.ipv6.conf.br0.accept_ra=2
sysctl -w net.ipv6.conf.br0.accept_ra_rt_info_max_plen=64

Sorry please for beginners. Where to add those then? I'm already annoyed because since I activated IPv6 my internal AdGuardHome redirections stopped working properly...

  • Community Expert

PLEASE MAKE YOUR OWN POST THEN FOR CONTINUED BACK AND FORTH!!!

you will need to terminal run the commands as seen above. or use a plugin like the user script plugin making a script to run at first array start.

here is a linux user batch script to allow ipv6 across docekrs...

#!/bin/bash

# Delay before starting
sleep 10

#Call Funcition script Apply sysctl settings
apply_sysctl_settings()
{

#Termianl Comands ran
echo "Applying sysctl settings..."
sysctl -w net.ipv6.conf.all.forwarding=1
sysctl -w net.ipv6.conf.br0.accept_ra=2
sysctl -w net.ipv6.conf.br0.accept_ra_rt_info_max_plen=64
#Redis Docker set over commit for memory
#sysctl -w vm.overcommit_memory=1

#Check user script log for info
echo "Verifying sysctl settings..."
sysctl net.ipv6.conf.all.forwarding
sysctl net.ipv6.conf.br0.accept_ra
sysctl net.ipv6.conf.br0.accept_ra_rt_info_max_plen
#Redis docker check
#sysctl vm.overcommit_memory

}

#Execute script after delay...
apply_sysctl_settings

Edited by bmartino1
data

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.