AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

Mikrotik ROS7.20 Container support

Open DeadlySin2 opened this issue 2 months ago • 1 comments

Prerequisites

  • [x] I have checked the Wiki and Discussions and found no answer

  • [x] I have searched other issues and found no duplicates

  • [x] I want to request a feature or enhancement and not ask a question

The problem

After Mikrotik ROs 7.20 update the new feature was introduced: *container - allow to use multiple veths in a container, change the in container interface name to same as in RouterOS So the container stops working becouse can't find interface eth0. Is it possible to emplement some ENV or any other way to change the name of the interface so Adguard home can be used in ROS 7.20 and later

Proposed solution

I have no idea

Alternatives considered and additional information

No response

DeadlySin2 avatar Oct 23 '25 05:10 DeadlySin2

I use it on mikrotik but I have a problem. Container cannot start after mikrotik reboot. I used adguardhome:latest tag with v0.107.69 Log is attached. 2025-11-21 11:00:01 adguardhome:latest internal/poll.(*FD).Accept(0x40000ea280) 2025-11-21 11:00:01 adguardhome:latest tinternal/poll/fd_unix.go:613 +0x21c fp=0x40000a6ce0 sp=0x40 000a6c30 pc=0x110bac 2025-11-21 11:00:01 adguardhome:latest net.(*netFD).accept(0x40000ea280) 2025-11-21 11:00:01 adguardhome:latest tnet/fd_unix.go:161 +0x28 fp=0x40000a6da0 sp=0x40000a6ce0 pc =0x1d9708 2025-11-21 11:00:01 adguardhome:latest net.(*TCPListener).accept(0x4000034100) 2025-11-21 11:00:01 adguardhome:latest tnet/tcpsock_posix.go:159 +0x24 fp=0x40000a6df0 sp=0x40000a6 da0 pc=0x1f1ba4 2025-11-21 11:00:01 adguardhome:latest net.(*TCPListener).Accept(0x4000034100) 2025-11-21 11:00:01 adguardhome:latest tnet/tcpsock.go:380 +0x2c fp=0x40000a6e30 sp=0x40000a6df0 pc =0x1f0bfc 2025-11-21 11:00:01 adguardhome:latest github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).tcpPacketLoop (0x40003c5b08, {0x16bd210, 0x4000034100}, {0xb35ecc, 0x3}, {0x16bb758, 0x40000a5630}) 2025-11-21 11:00:01 adguardhome:latest tgithub.com/AdguardTeam/[email protected]/proxy/servertcp.go: 98 +0x128 fp=0x40000a6f80 sp=0x40000a6e30 pc=0x704518 2025-11-21 11:00:01 adguardhome:latest github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).serveListener s.gowrap2() 2025-11-21 11:00:01 adguardhome:latest tgithub.com/AdguardTeam/[email protected]/proxy/server.go:63 +0x3c fp=0x40000a6fd0 sp=0x40000a6f80 pc=0x6fe5ec 2025-11-21 11:00:01 adguardhome:latest runtime.goexit({}) 2025-11-21 11:00:01 adguardhome:latest truntime/asm_arm64.s:1268 +0x4 fp=0x40000a6fd0 sp=0x40000a6f d0 pc=0x95344 2025-11-21 11:00:01 adguardhome:latest created by github.com/AdguardTeam/dnsproxy/proxy.(*Proxy).se rveListeners in goroutine 35 2025-11-21 11:00:01 adguardhome:latest tgithub.com/AdguardTeam/[email protected]/proxy/server.go:63 +0xe8 2025-11-21 11:00:01 adguardhome:latest 2025-11-21 11:00:01 adguardhome:latest goroutine 42 gp=0x40005f3180 m=nil [select, 30 minutes]: 2025-11-21 11:00:01 adguardhome:latest runtime.gopark(0x400016df10?, 0x3?, 0x0?, 0x0?, 0x400016deaa ?) 2025-11-21 11:00:01 adguardhome:latest truntime/proc.go:460 +0xc0 fp=0x400016dd10 sp=0x400016dcf0 p c=0x8d3e0 2025-11-21 11:00:01 adguardhome:latest runtime.selectgo(0x400016df10, 0x400016dea4, 0x0?, 0x0, 0x0? , 0x1) 2025-11-21 11:00:01 adguardhome:latest truntime/select.go:351 +0x6bc fp=0x400016de50 sp=0x400016dd1 0 pc=0x6b25c 2025-11-21 11:00:01 adguardhome:latest github.com/AdguardTeam/AdGuardHome/internal/filtering.(*DNSF ilter).updatesLoop(0x4000248b40, {0x16bf128, 0x2368ec0}) 2025-11-21 11:00:01 adguardhome:latest tgithub.com/AdguardTeam/AdGuardHome/internal/filtering/filte ring.go:1087 +0xe4 fp=0x400016dfa0 sp=0x400016de50 pc=0x5d0fb4 2025-11-21 11:00:01 adguardhome:latest github.com/AdguardTeam/AdGuardHome/internal/filtering.(*DNSF ilter).Start.gowrap1() 2025-11-21 11:00:01 adguardhome:latest tgithub.com/AdguardTeam/AdGuardHome/internal/filtering/filte ring.go:1076 +0x2c fp=0x400016dfd0 sp=0x400016dfa0 pc=0x5d0e9c 2025-11-21 11:00:01 adguardhome:latest runtime.goexit({}) 2025-11-21 11:00:01 adguardhome:latest truntime/asm_arm64.s:1268 +0x4 fp=0x400016dfd0 sp=0x400016df d0 pc=0x95344 2025-11-21 11:00:01 adguardhome:latest created by github.com/AdguardTeam/AdGuardHome/internal/filte ring.(*DNSFilter).Start in goroutine 35 2025-11-21 11:00:01 adguardhome:latest tgithub.com/AdguardTeam/AdGuardHome/internal/filtering/filte ring.go:1076 +0xe4 2025-11-21 11:00:01 adguardhome:latest 2025-11-21 11:00:01 adguardhome:latest goroutine 44 gp=0x40005f3500 m=nil [chan receive, 30 minutes ]: 2025-11-21 11:00:01 adguardhome:latest runtime.gopark(0x40005a8240?, 0x40005a80e0?, 0x40?, 0x82?, 0 x351567d366d?) 2025-11-21 11:00:01 adguardhome:latest truntime/proc.go:460 +0xc0 fp=0x4000168e60 sp=0x4000168e40 p c=0x8d3e0 2025-11-21 11:00:01 adguardhome:latest runtime.chanrecv(0x40005a80e0, 0x4000168f60, 0x1) 2025-11-21 11:00:01 adguardhome:latest truntime/chan.go:667 +0x428 fp=0x4000168ee0 sp=0x4000168e60 pc=0x22ba8 2025-11-21 11:00:01 adguardhome:latest runtime.chanrecv2(0x34630b8a000?, 0x16bf128?) 2025-11-21 11:00:01 adguardhome:latest truntime/chan.go:514 +0x14 fp=0x4000168f10 sp=0x4000168ee0 p c=0x22764 2025-11-21 11:00:01 adguardhome:latest github.com/AdguardTeam/AdGuardHome/internal/querylog.(*query Log).periodicRotate(0x400022dea0, {0x16bf128, 0x2368ec0}) 2025-11-21 11:00:01 adguardhome:latest tgithub.com/AdguardTeam/AdGuardHome/internal/querylog/queryl ogfile.go:165 +0xd0 fp=0x4000168fa0 sp=0x4000168f10 pc=0x79afb0 2025-11-21 11:00:01 adguardhome:latest github.com/AdguardTeam/AdGuardHome/internal/querylog.(*query Log).Start.gowrap1() 2025-11-21 11:00:01 adguardhome:latest tgithub.com/AdguardTeam/AdGuardHome/internal/querylog/qlog.g o:94 +0x2c fp=0x4000168fd0 sp=0x4000168fa0 pc=0x7968ec 2025-11-21 11:00:01 adguardhome:latest runtime.goexit({}) 2025-11-21 11:00:01 adguardhome:latest truntime/asm_arm64.s:1268 +0x4 fp=0x4000168fd0 sp=0x4000168f d0 pc=0x95344 2025-11-21 11:00:01 adguardhome:latest created by github.com/AdguardTeam/AdGuardHome/internal/query log.(*queryLog).Start in goroutine 35 2025-11-21 11:00:01 adguardhome:latest tgithub.com/AdguardTeam/AdGuardHome/internal/querylog/qlog.g o:94 +0x84 2025-11-21 11:00:01 adguardhome:latest 2025-11-21 11:00:01 adguardhome:latest goroutine 46 gp=0x40005f36c0 m=nil [select, 30 minutes]: 2025-11-21 11:00:01 adguardhome:latest runtime.gopark(0x4000057788?, 0x2?, 0x48?, 0x76?, 0x40000577 7c?) 2025-11-21 11:00:01 adguardhome:latest truntime/proc.go:460 +0xc0 fp=0x40000aae00 sp=0x40000aade0 p c=0x8d3e0 2025-11-21 11:00:01 adguardhome:latest runtime.selectgo(0x40000aaf88, 0x4000057778, 0x0?, 0x0, 0x0? , 0x1) 2025-11-21 11:00:01 adguardhome:latest truntime/select.go:351 +0x6bc fp=0x40000aaf40 sp=0x40000aae0 0 pc=0x6b25c 2025-11-21 11:00:01 adguardhome:latest github.com/patrickmn/go-cache.(*janitor).Run(0x4000580b50, 0 x4000034280) 2025-11-21 11:00:01 adguardhome:latest tgithub.com/patrickmn/[email protected]+incompatible/cache.go: 1079 +0x74 fp=0x40000aafb0 sp=0x40000aaf40 pc=0x6ef6b4 2025-11-21 11:00:01 adguardhome:latest github.com/patrickmn/go-cache.runJanitor.gowrap1() 2025-11-21 11:00:01 adguardhome:latest tgithub.com/patrickmn/[email protected]+incompatible/cache.go: 1099 +0x28 fp=0x40000aafd0 sp=0x40000aafb0 pc=0x6ef868 2025-11-21 11:00:01 adguardhome:latest runtime.goexit({}) 2025-11-21 11:00:01 adguardhome:latest truntime/asm_arm64.s:1268 +0x4 fp=0x40000aafd0 sp=0x40000aaf d0 pc=0x95344 2025-11-21 11:00:01 adguardhome:latest created by github.com/patrickmn/go-cache.runJanitor in gorou tine 45 2025-11-21 11:00:01 adguardhome:latest tgithub.com/patrickmn/[email protected]+incompatible/cache.go: 1099 +0xdc 2025-11-21 11:00:01 adguardhome:latest *** error: exited with status 2

q000p avatar Nov 21 '25 19:11 q000p

As a workaround i have changed the name of the interface in VETH to eth0 and it worked. But if there are several such containers it will not work

DeadlySin2 avatar Dec 12 '25 16:12 DeadlySin2