November 1Nov 1 I recently purchased a switch which supports VLAN tagging so I decided to try to isolate my internet-facing containers to secure it up even further. But I am struggling with some unexpected issues and looking for help.I have tried looking for the answer on the OpenWRT community without success. I have tried sending my logs to Claude but without success there as well. I'm now asking here if I have misconfigurated something on Unraid.I have tried to summarize as much as possible.SetupUnraid (v. 7.3.0), one NIC (eth0). Bonding is enabled but bond0 has only eth0 in it (active-backup). Bridging is on (br0).VLAN 30 is added in Network Settings with IPv4 set to None, so the host has no address on it (br0.30 and bond0.30 are UP with no IP).Docker custom network type: ipvlan. Network br0.30 created with subnet 192.168.30.0/24, gateway 192.168.30.1, range 192.168.30.128/25. “Preserve user defined networks” is on.Containers get fixed IPs (Example = 192.168.30.11).Switch (Zyxel GS1200-8HPv3): Unraid port is VLAN 1 untagged, VLAN 30 tagged, PVID 1. Uplink to OpenWrt (lan2) carries VLAN 1 untagged and VLANs 11 and 30 tagged.OpenWrt: lan2.30 device, interface 192.168.30.1/24 (no DHCP), zone dmz with input/forward reject, forwarding dmz → wan and lan → dmz.First problem: bridge containers can’t reach the VLAN containersMy PC and the Unraid host both get 200 from http://192.168.30.11. Containers on any Docker bridge network (docker0, authentik_default) time out. A container with --network host gets 200.OpenWrt tcpdump on lan2.30: SYN goes out from 192.168.0.190:57068, but the SYN-ACK from container comes back to 192.168.0.190:29489, a different port, and Unraid then sends a RST. Conntrack on Unraid shows two [UNREPLIED] entries per attempt.So the source port is rewritten somewhere on Unraid, after OpenWrt, on the path Unraid → router → back into Unraid via VLAN 30.Already ruled out: rp_filter is 0 everywhere, DOCKER-USER is empty, and raw/DOCKER-FORWARD have no rules for 192.168.30.0/24.Problem two: lag and Pi-hole restartsWith container on br0.30, Unraid and Docker become slow, and Upsnap reports my Pi-hole (a separate Raspberry Pi, 192.168.0.165) going offline and coming back. docker compose down on container makes everything normal at once.After moving container back to its old bridge network, the lag and the Pi-hole restarts stopped.QuestionsWhy does traffic from bridge containers to an ipvlan container on the same host get its source port rewritten, and how do I make it work (or is this unsupported)?Could a container on an ipvlan child of br0.30 cause a MAC/FDB flap or loop that disrupts other devices on the LAN (like the Pi-hole)? What should I check on the switch and router?Is it better to use macvlan, a second NIC with an untagged DMZ port, or a different design for this?Thanks!
November 2Nov 2 Port rewrite: this is a side effect of how the traffic loops back into the same server. On Unraid, VLAN 30 is its own Linux bridge (br0.30), and Docker loads br_netfilter, so packets that enter that bridge also go through the host's connection tracking. When a bridge container connects to 192.168.30.11, the host masquerades the SYN to 192.168.0.190 with port A, and OpenWrt routes it back into the same server on br0.30. There the host sees the packet a second time. That new connection would clash with the masquerade entry it already has for the same connection, so NAT changes the source port to avoid the clash. The container replies to the new port, nothing on the host uses that port, and the host sends the RST. That is why you see two UNREPLIED entries. The PC, the host itself and a host-network container work because there is no masquerade entry to clash with.Another user had the same problem in the opposite direction (an ipvlan container on a VLAN reaching a published port on the host), and this rule fixed it. Please try it:iptables -t raw -I PREROUTING -i br0.30 -j NOTRACKThen repeat the test from a bridge container. The host has no IP on VLAN 30, so it does not need to track packets on that bridge. Your OpenWrt DMZ rules still do the filtering. To remove the rule, run:iptables -t raw -D PREROUTING -i br0.30 -j NOTRACKA reboot also removes it. If it works, add the same line to the end of /boot/config/go to make it permanent, with one line for each VLAN bridge you use this way.Lag and Pi-hole: an ipvlan container uses the same MAC address as the server, so it cannot make that MAC appear on a second switch port by itself. To find out what is happening:1. Tell us which container this is and what it does. For example, is it a reverse proxy or anything that connects back to containers on the bridge networks?2. Check whether the Pi-hole really restarts (look at its uptime), or whether it only stops responding. Is Upsnap running on the Unraid server? If it is, it may just be reporting the outages because Unraid is slow. Run a continuous ping to 192.168.0.165 from your PC while the problem happens.3. With the NOTRACK rule applied, start the container on br0.30 again and see if the lag still happens.4. If it does, run top while it is slow and note what is using the CPU. Then attach the diagnostics (Tools > Diagnostics), taken while the problem is happening and before you stop the container.macvlan or a second NIC: I would not change the design yet. macvlan on br0.30 uses the same bridge, so it would probably have the same port rewrite problem. Your current ipvlan setup is fine if the rule above fixes the first issue.
November 2Nov 2 Author 11 hours ago, JorgeB said:Port rewrite: this is a side effect of how the traffic loops back into the same server. On Unraid, VLAN 30 is its own Linux bridge (br0.30), and Docker loads br_netfilter, so packets that enter that bridge also go through the host's connection tracking. When a bridge container connects to 192.168.30.11, the host masquerades the SYN to 192.168.0.190 with port A, and OpenWrt routes it back into the same server on br0.30. There the host sees the packet a second time. That new connection would clash with the masquerade entry it already has for the same connection, so NAT changes the source port to avoid the clash. The container replies to the new port, nothing on the host uses that port, and the host sends the RST. That is why you see two UNREPLIED entries. The PC, the host itself and a host-network container work because there is no masquerade entry to clash with.Another user had the same problem in the opposite direction (an ipvlan container on a VLAN reaching a published port on the host), and this rule fixed it. Please try it:iptables -t raw -I PREROUTING -i br0.30 -j NOTRACKThen repeat the test from a bridge container. The host has no IP on VLAN 30, so it does not need to track packets on that bridge. Your OpenWrt DMZ rules still do the filtering. To remove the rule, run:iptables -t raw -D PREROUTING -i br0.30 -j NOTRACKA reboot also removes it. If it works, add the same line to the end of /boot/config/go to make it permanent, with one line for each VLAN bridge you use this way.Lag and Pi-hole: an ipvlan container uses the same MAC address as the server, so it cannot make that MAC appear on a second switch port by itself. To find out what is happening:1. Tell us which container this is and what it does. For example, is it a reverse proxy or anything that connects back to containers on the bridge networks?2. Check whether the Pi-hole really restarts (look at its uptime), or whether it only stops responding. Is Upsnap running on the Unraid server? If it is, it may just be reporting the outages because Unraid is slow. Run a continuous ping to 192.168.0.165 from your PC while the problem happens.3. With the NOTRACK rule applied, start the container on br0.30 again and see if the lag still happens.4. If it does, run top while it is slow and note what is using the CPU. Then attach the diagnostics (Tools > Diagnostics), taken while the problem is happening and before you stop the container.macvlan or a second NIC: I would not change the design yet. macvlan on br0.30 uses the same bridge, so it would probably have the same port rewrite problem. Your current ipvlan setup is fine if the rule above fixes the first issue.Thanks, this helped a lot.The NOTRACK rule fixed it. A bridge container now gets 200 from the container on br0.30, where it was 000 before. I’m adding the rule to /boot/config/go.1. Which container, and does it connect back to bridge containers?It’s Audiobookshelf, a media server, not a reverse proxy. This is the compose file:yamlservices: audiobookshelf: container_name: audiobookshelf image: ghcr.io/advplyr/audiobookshelf:latest user: "99:100" restart: unless-stopped volumes: - /mnt/user/data/media/audiobooks:/audiobooks - /mnt/user/data/media/books:/books - /mnt/user/appdata/audiobookshelf/config:/config - /mnt/user/appdata/audiobookshelf/metadata:/metadata environment: - TZ=Europe/Stockholm dns: - 9.9.9.9 - 1.1.1.1 networks: dmz: ipv4_address: 192.168.30.11 networks: dmz: external: true name: br0.302. Does the Pi-hole restart, and where do the alerts come from?The alerts come from Uptime Kuma (I said Upsnap earlier, that was wrong, sorry), which runs on the Unraid server. The Pi-hole monitor is a DNS check (A query for google.com against 192.168.0.165, port 53), and the error is queryA ETIMEOUT. A continuous ping from my PC to the Pi-hole shows no gaps. The Kuma monitors for the Unraid WebUI and OpenWrt never go down. I ran dig +time=2 +tries=1 @192.168.0.165 google.com in a loop (every 5 seconds) on both machines. My Fedora PC printed no failures. Unraid failed on every attempt (6 in a row, 21:15:51 to 21:16:26), and these failures happened while Unraid was lagging. So the Pi-hole’s DNS answers my PC while Unraid’s queries to it time out, which matches the Kuma alerts.3. With NOTRACK applied and ABS on br0.30, does the lag still happen?Yes, the lag still happens with the NOTRACK rule active, so that rule doesn’t affect it. The lag stops when I remove ABS from br0.30 (either compose down, or moving it back to its old bridge network), and Unraid and Docker are normal and fast again at once. A top snapshot shows nothing out of the ordinary.
November 3Nov 3 Good to hear the NOTRACK rule fixed the first problem.For the lag, the dig results are the important part. Your PC gets answers from the Pi-hole at the same time as Unraid gets none, so the Pi-hole itself is working and the problem is with queries that come from the Unraid IP. If Unraid uses the Pi-hole as its DNS server, this would also explain the lag with nothing unusual in top: the GUI, Docker and other services wait for name lookups that time out.Note that the DNS queries from all containers on Docker bridge networks also reach the Pi-hole from the Unraid IP. One possible cause: after ABS moved to br0.30, something on the server that still refers to it by its container name (for example a reverse proxy, Authentik, or an Uptime Kuma monitor) can no longer resolve it on the Docker network. It then keeps asking the Pi-hole for that name, and the Pi-hole rate-limits the Unraid IP (its default limit is 1000 queries per minute per client). This is not confirmed yet, so please check:In the Pi-hole Query Log, filter by the Unraid IP for a period when the problem happens. How many queries per minute are there, and for which names? Also look for "Rate-limiting" lines in /var/log/pihole/FTL.log.While the problem happens, run these on Unraid and post the output: dig @192.168.0.165 google.com dig @9.9.9.9 google.com ping -c 10 192.168.0.165 cat /etc/resolv.conf For the first one, post the full output, so we can see if it times out or returns status: REFUSED.Does any container or config refer to ABS by name (audiobookshelf), or by its old bridge IP or port?If none of this shows anything: put ABS back on its old bridge network, and start a simple test container (for example nginx) on br0.30 instead. This shows whether the lag comes from the br0.30 network or from ABS. If it is still unclear after that, please post the diagnostics (Tools > Diagnostics), taken while the problem is happening.
November 3Nov 3 Author 12 hours ago, JorgeB said:Good to hear the NOTRACK rule fixed the first problem.For the lag, the dig results are the important part. Your PC gets answers from the Pi-hole at the same time as Unraid gets none, so the Pi-hole itself is working and the problem is with queries that come from the Unraid IP. If Unraid uses the Pi-hole as its DNS server, this would also explain the lag with nothing unusual in top: the GUI, Docker and other services wait for name lookups that time out.Note that the DNS queries from all containers on Docker bridge networks also reach the Pi-hole from the Unraid IP. One possible cause: after ABS moved to br0.30, something on the server that still refers to it by its container name (for example a reverse proxy, Authentik, or an Uptime Kuma monitor) can no longer resolve it on the Docker network. It then keeps asking the Pi-hole for that name, and the Pi-hole rate-limits the Unraid IP (its default limit is 1000 queries per minute per client). This is not confirmed yet, so please check:In the Pi-hole Query Log, filter by the Unraid IP for a period when the problem happens. How many queries per minute are there, and for which names? Also look for "Rate-limiting" lines in /var/log/pihole/FTL.log.While the problem happens, run these on Unraid and post the output:dig @192.168.0.165 google.comdig @9.9.9.9 google.comping -c 10 192.168.0.165cat /etc/resolv.confFor the first one, post the full output, so we can see if it times out or returns status: REFUSED.Does any container or config refer to ABS by name (audiobookshelf), or by its old bridge IP or port?If none of this shows anything: put ABS back on its old bridge network, and start a simple test container (for example nginx) on br0.30 instead. This shows whether the lag comes from the br0.30 network or from ABS.If it is still unclear after that, please post the diagnostics (Tools > Diagnostics), taken while the problem is happening.1. Pi-hole Query Log / FTL.logsudo grep -i "rate-limit" /var/log/pihole/FTL.log returns nothing.I ran tcpdump -ni eth0 host <192.168.0.190> and port 53 on the Pi at the start of a failure. About 19 queries in 5.6 s (roughly 200 per minute). Each query gets an answer within 1-2 ms, and none is REFUSED. Example:20:22:09.602997 IP <Unraid>.46051 > <Pi-hole>.53: 13185+ A? ljud.<my site>. 20:22:09.603589 IP <Pi-hole>.53 > <Unraid>.46051: 13185 1/0/0 A <VPS IP> 20:22:10.241427 IP <Unraid>.33327 > <Pi-hole>.53: 3931+ [1au] A? google.com. 20:22:10.242781 IP <Pi-hole>.53 > <Unraid>.33327: 3931 6/0/1 A 64.233.161.139, ...Some queries repeat with the same ID a few seconds apart (for example 13185 at :09.6, :13.6 and :14.6), which looks like retransmission. The Pi’s own ICMP echo requests to Unraid (20:22:12 and 20:22:15) show no echo reply in the capture.2. Commands on Unraid during the problemdig @192.168.0.165 google.com:;; communications error to 192.168.0.165#53: timed out ;; communications error to 192.168.0.165#53: timed out ;; communications error to 192.168.0.165#53: timed out ; <<>> DiG 9.20.22 <<>> @192.168.0.165 google.com ; (1 server found) ;; global options: +cmd ;; no servers could be reachedSo it times out, not REFUSED.dig @9.9.9.9 google.com: works, status: NOERROR, query time 7 msec.ping -c 10 192.168.0.165: 10 transmitted, 0 received, +3 errors, 100% loss. The errors are “Destination Host Unreachable” and come from the Unraid IP itself (icmp_seq 4-6)./etc/resolv.conf: three identical lines, nameserver 192.168.0.165.Taken at the same time: load 0.29, 88% idle, 5% wait, conntrack count 354 of 262144.My watch loop (ping + dig to the Pi-hole every 5 s) shows ip neigh staying REACHABLE when it starts: all ok at 20:21:57, ping and dig both FAIL at 20:22:02.3. Does anything refer to ABS by name or its old bridge IP/port?NPM forwards ljud.<my site> to 192.168.30.11:80. It was recreated without the old ABS network, and it is not on br0.30. With NPM stopped (compose down), ping and dig to the Pi-hole still failed. I did and got the following during the lag: tcpdump -ni eth0 'arp and host 192.168.0.190'Respone:20:07:53.051314 ARP, Request who-has 192.168.0.190 tell 192.168.0.16520:07:54.075315 ARP, Request who-has 192.168.0.190 tell 192.168.0.16520:07:55.099301 ARP, Request who-has 192.168.0.190 tell 192.168.0.165...20:08:06.011242 ARP, Reply 192.168.0.190 is-at a0:36:bc:a9:a1:a9I sent you my .zip file privately if thats OK.
November 4Nov 4 Thanks for the diagnostics. They confirm the setup and show no errors on the Unraid side (no link, bond or bridge problems), so they cannot show where the frames are lost. A few things I noticed:- The NOTRACK rule is not in your go file yet. It only has modprobe i915 and the emhttp line. Add iptables -t raw -I PREROUTING -i br0.30 -j NOTRACK at the end, or the bridge-to-VLAN problem will come back after a reboot.- All three DNS servers in Network Settings are the Pi-hole. Set DNS server 2 to your router (or a public DNS server), so the GUI and Docker do not stall when the Pi-hole cannot be reached.- Your docker.cfg has been rewritten to use wlan0.30 and wlan0 instead of br0.30 and br0. This is a known bug when an unused Wi-Fi adapter is present. It does not cause the lag, and your compose network still works because it uses the existing br0.30 network. If you do not use the onboard Wi-Fi, you can stop the rewrite by disabling the driver: create /boot/config/modprobe.d/iwlwifi.conf with the line blacklist iwlwifi, then reboot.For the lag itself, your last results show it is not DNS. The Pi-hole receives every query from Unraid and answers within 1-2 ms, but the answers never reach Unraid. Its pings and ARP requests to Unraid get no reply either, while Unraid can still reach OpenWrt and 9.9.9.9. So frames from the Pi-hole to the Unraid server are lost at Layer 2. To find where, please check these while the problem is happening:1. Where are the Pi-hole and your PC connected: to a Zyxel port, to an OpenWrt LAN port, or to another switch? Which machine did you run the ARP capture on?2. Ping the Unraid IP from your PC and from OpenWrt. Does it work?3. Run these two captures at the same time. The -e option shows the MAC addresses: - On Unraid: tcpdump -eni eth0 'arp or host 192.168.0.165' - On the Pi: tcpdump -eni eth0 'arp or host 192.168.0.190'4. On OpenWrt, during the problem and again when it is normal, run bridge fdb show | grep -i <Unraid MAC> and ip neigh | grep 192.168.0.190. Please also post the lan2 and lan2.30 device, bridge and bridge-vlan sections from /etc/config/network.5. Put ABS back on its old bridge network, and start a plain test container (for example nginx) on br0.30 with a fixed IP. Does the problem come back? This shows whether the problem comes from any container on VLAN 30 or only from ABS.6. If the Zyxel has loop prevention or a MAC table page, note what it shows during the problem.
November 4Nov 4 Author 1 hour ago, JorgeB said:Thanks for the diagnostics. They confirm the setup and show no errors on the Unraid side (no link, bond or bridge problems), so they cannot show where the frames are lost. A few things I noticed:- The NOTRACK rule is not in your go file yet. It only has modprobe i915 and the emhttp line. Add iptables -t raw -I PREROUTING -i br0.30 -j NOTRACK at the end, or the bridge-to-VLAN problem will come back after a reboot.- All three DNS servers in Network Settings are the Pi-hole. Set DNS server 2 to your router (or a public DNS server), so the GUI and Docker do not stall when the Pi-hole cannot be reached.- Your docker.cfg has been rewritten to use wlan0.30 and wlan0 instead of br0.30 and br0. This is a known bug when an unused Wi-Fi adapter is present. It does not cause the lag, and your compose network still works because it uses the existing br0.30 network. If you do not use the onboard Wi-Fi, you can stop the rewrite by disabling the driver: create /boot/config/modprobe.d/iwlwifi.conf with the line blacklist iwlwifi, then reboot.For the lag itself, your last results show it is not DNS. The Pi-hole receives every query from Unraid and answers within 1-2 ms, but the answers never reach Unraid. Its pings and ARP requests to Unraid get no reply either, while Unraid can still reach OpenWrt and 9.9.9.9. So frames from the Pi-hole to the Unraid server are lost at Layer 2. To find where, please check these while the problem is happening:1. Where are the Pi-hole and your PC connected: to a Zyxel port, to an OpenWrt LAN port, or to another switch? Which machine did you run the ARP capture on?2. Ping the Unraid IP from your PC and from OpenWrt. Does it work?3. Run these two captures at the same time. The -e option shows the MAC addresses:- On Unraid: tcpdump -eni eth0 'arp or host 192.168.0.165'- On the Pi: tcpdump -eni eth0 'arp or host 192.168.0.190'4. On OpenWrt, during the problem and again when it is normal, run bridge fdb show | grep -i <Unraid MAC> and ip neigh | grep 192.168.0.190. Please also post the lan2 and lan2.30 device, bridge and bridge-vlan sections from /etc/config/network.5. Put ABS back on its old bridge network, and start a plain test container (for example nginx) on br0.30 with a fixed IP. Does the problem come back? This shows whether the problem comes from any container on VLAN 30 or only from ABS.6. If the Zyxel has loop prevention or a MAC table page, note what it shows during the problem.Thank you for taking your time, and thanks for the detailed list. Answers below, then a separate section with a new finding.1. Where is everything connected?Pi-hole: OpenWrt LAN port 1 (lan1).Zyxel: OpenWrt LAN port 2 (lan2), via Zyxel port 8. Unraid is on Zyxel port 7.My PC: Wi-Fi (OpenWrt’s own radio).The ARP/ICMP capture with -e was run on the Pi (eth0).2. Ping Unraid from the PC and from OpenWrtFrom my PC during a failure: 368 sent, 368 received, 0% loss (avg 2.4 ms).From OpenWrt uring a failure: Same as above3. CapturesPi-side, during a failure (tcpdump -p -nn -e -i eth0 'host 192.168.0.190 and (arp or icmp)', 45 s):08:54:27: the Pi pings Unraid and gets a reply. From 08:54:30 on, its pings to Unraid get no reply.08:54:36-38: the Pi’s unicast ARP requests to Unraid’s MAC get no reply.08:54:41: the Pi’s broadcast ARP request is answered by Unraid at once.Unraid’s pings to the Pi arrive and the Pi replies every time. At 08:55:01-03, Unraid sends the same unicast ARP request three times and the Pi answers each time, so the Pi’s replies don’t reach Unraid.So unicast frames from the Pi to Unraid’s MAC are lost, while broadcasts and everything from Unraid to the Pi arrive.4. OpenWrt bridge fdb and configThe fdb result is in the section below. ip neigh on OpenWrt shows both machines as REACHABLE in both states. The relevant parts of /etc/config/network (there is no VLAN filtering):config device option name 'br-lan' option type 'bridge' list ports 'lan1' list ports 'lan2' list ports 'lan3' config device option type '8021q' option ifname 'lan2' option vid '30' option name 'lan2.30' option ipv6 '0' config interface 'dmz' option proto 'static' option device 'br_dmz' option ipaddr '192.168.30.1' option netmask '255.255.255.0' config device option type 'bridge' option name 'br_dmz' list ports 'lan2.30' option bridge_empty '1' option ipv6 '0'(lan2.11 is another VLAN, in its own bridge br_iot.) Router model and ubus call system board: "kernel": "6.12.112", "hostname": "OpenWrt", "system": "ARMv8 Processor rev 4", "model": "Acer Connect Vero W6m", "board_name": "acer,vero-w6m", "rootfs_type": "squashfs", "release": { "distribution": "OpenWrt", "version": "25.12.6", "firmware_url": "https://downloads.openwrt.org/", "revision": "r33311-981c978eff", "target": "mediatek/filogic", "description": "OpenWrt 25.12.6 r33311-981c978eff", "builddate": "1792273538"5. Test container on br0.30Not done yet. The finding below suggests any ipvlan container on br0.30 would do the same, since it shares the host’s MAC. 6. Zyxel MAC table / loop preventionNot checked yet.New finding: OpenWrt’s switch table moves Unraid’s MAC to VLAN 30 when ABS starts/someone interacts with.I compared bridge fdb show | grep -i a0:36:bc:a9:a1:a9 (Unraid’s MAC) on OpenWrt in the two states. The Pi’s MAC (d8:3a:dd:b1:df:8a) stays on lan1 in both.When the Pi-hole can reach Unraid:a0:36:bc:a9:a1:a9 dev lan2 master br-lan a0:36:bc:a9:a1:a9 dev lan2 selfWhen it can’t:a0:36:bc:a9:a1:a9 dev lan2 master br-lan a0:36:bc:a9:a1:a9 dev lan2.30 offload master br_dmzThen I ran a watcher that prints only when Unraid’s entries change, and started ABS on br0.30:== 10:29:25 a0:36:bc:a9:a1:a9 dev lan2 master br-lan a0:36:bc:a9:a1:a9 dev lan2 self == 10:29:38 <- ABS started a0:36:bc:a9:a1:a9 dev lan2 master br-lan a0:36:bc:a9:a1:a9 dev lan2.30 offload master br_dmzThe lan2 self entry disappears and the MAC moves to lan2.30 in br_dmz. The second state is identical to what I captured while the Pi-hole couldn’t reach Unraid. My reading, which I haven’t proven further: the ipvlan container shares Unraid’s MAC, so the router’s switch chip learns that MAC on VLAN 30 as well, and unicast frames from other devices to Unraid’s MAC no longer reach it, while broadcasts still do. That matches the captures above.Have I understood correctly that MACVLAN will sorts this out?If yes,would you recommend switch to MACVLAN or rather changing the OpenWrt side (a single br-lan with VLAN filtering instead of lan2.30 in a separate bridge)?
November 4Nov 4 Solution That finding explains everything, and your reading is correct.An ipvlan container sends its frames with the Unraid MAC address. That is normal and expected, and the same would happen if you gave the Unraid host its own IP on VLAN 30. A switch that keeps a separate MAC table for each VLAN has no problem with it. Your OpenWrt config is the problem: lan2 is a port of br-lan, which has no VLAN filtering, and lan2.30 is a separate device in its own bridge br_dmz. As your bridge fdb output shows, when ABS sends on VLAN 30, the lan2 self entry for the Unraid MAC disappears and the MAC is learned on lan2.30. After that, unicast frames from lan1 (the Pi-hole) to the Unraid MAC no longer go to lan2. Broadcasts still go to all ports, so the broadcast ARP is answered. Your PC is on Wi-Fi, and Wi-Fi traffic and the router itself use the software br-lan bridge, which still has the correct lan2 entry, so they keep working. The Unraid "lag" is only Unraid waiting for DNS replies from the Pi-hole.Both options would fix it, but I recommend changing OpenWrt to a single br-lan with VLAN filtering. That fixes the cause, and it also covers any other device that uses the same MAC on more than one VLAN, for example if you later give Unraid an IP on VLAN 30. With VLAN filtering, the MAC table is kept for each VLAN, so the Unraid MAC can be on VLAN 1 and VLAN 30 at the same time. In LuCI it is under Network > Interfaces > Devices > br-lan > Bridge VLAN filtering. The result should be similar to this:config bridge-vlan option device 'br-lan' option vlan '1' list ports 'lan1:u*' list ports 'lan2:u*' list ports 'lan3:u*'config bridge-vlan option device 'br-lan' option vlan '11' list ports 'lan2:t'config bridge-vlan option device 'br-lan' option vlan '30' list ports 'lan2:t'Then set the lan interface to br-lan.1, the dmz interface to br-lan.30 and the iot interface to br-lan.11. Remove the lan2.30/lan2.11 devices and the br_dmz/br_iot bridges. Your firewall zones stay the same because they use the interface names. Back up the config first, and make the change from a wired connection on lan1 or lan3, because a mistake can lock you out. Afterwards, bridge fdb show | grep -i <Unraid MAC> should show the MAC on lan2 for VLAN 1 and VLAN 30 at the same time, and the Pi-hole should stay reachable with ABS on VLAN 30.If you prefer to change the Unraid side instead: go to Settings > Docker, stop Docker, and change the Docker custom network type to macvlan. Each container then gets its own MAC address, so the Unraid MAC never appears on VLAN 30. Keep the NOTRACK rule in the go file in both cases, because VLAN 30 is still a bridge on the host. You do not need the nginx test or the Zyxel check any more.Also, I still recommend setting DNS server 2 in Network Settings to your router or a public DNS server, so that a Pi-hole outage does not slow down Unraid again.
November 4Nov 4 Author 7 hours ago, JorgeB said:That finding explains everything, and your reading is correct.An ipvlan container sends its frames with the Unraid MAC address. That is normal and expected, and the same would happen if you gave the Unraid host its own IP on VLAN 30. A switch that keeps a separate MAC table for each VLAN has no problem with it. Your OpenWrt config is the problem: lan2 is a port of br-lan, which has no VLAN filtering, and lan2.30 is a separate device in its own bridge br_dmz. As your bridge fdb output shows, when ABS sends on VLAN 30, the lan2 self entry for the Unraid MAC disappears and the MAC is learned on lan2.30. After that, unicast frames from lan1 (the Pi-hole) to the Unraid MAC no longer go to lan2. Broadcasts still go to all ports, so the broadcast ARP is answered. Your PC is on Wi-Fi, and Wi-Fi traffic and the router itself use the software br-lan bridge, which still has the correct lan2 entry, so they keep working. The Unraid "lag" is only Unraid waiting for DNS replies from the Pi-hole.Both options would fix it, but I recommend changing OpenWrt to a single br-lan with VLAN filtering. That fixes the cause, and it also covers any other device that uses the same MAC on more than one VLAN, for example if you later give Unraid an IP on VLAN 30. With VLAN filtering, the MAC table is kept for each VLAN, so the Unraid MAC can be on VLAN 1 and VLAN 30 at the same time. In LuCI it is under Network > Interfaces > Devices > br-lan > Bridge VLAN filtering. The result should be similar to this:config bridge-vlanoption device 'br-lan'option vlan '1'list ports 'lan1:u*'list ports 'lan2:u*'list ports 'lan3:u*'config bridge-vlanoption device 'br-lan'option vlan '11'list ports 'lan2:t'config bridge-vlanoption device 'br-lan'option vlan '30'list ports 'lan2:t'Then set the lan interface to br-lan.1, the dmz interface to br-lan.30 and the iot interface to br-lan.11. Remove the lan2.30/lan2.11 devices and the br_dmz/br_iot bridges. Your firewall zones stay the same because they use the interface names. Back up the config first, and make the change from a wired connection on lan1 or lan3, because a mistake can lock you out. Afterwards, bridge fdb show | grep -i <Unraid MAC> should show the MAC on lan2 for VLAN 1 and VLAN 30 at the same time, and the Pi-hole should stay reachable with ABS on VLAN 30.If you prefer to change the Unraid side instead: go to Settings > Docker, stop Docker, and change the Docker custom network type to macvlan. Each container then gets its own MAC address, so the Unraid MAC never appears on VLAN 30. Keep the NOTRACK rule in the go file in both cases, because VLAN 30 is still a bridge on the host. You do not need the nginx test or the Zyxel check any more.Also, I still recommend setting DNS server 2 in Network Settings to your router or a public DNS server, so that a Pi-hole outage does not slow down Unraid again.Thank you so much for all your help. I really appreciate you taking your time. I will give this a go when I have some time and mark it as solved if I get it all working.
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.