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.

Wynnbuck

Members
  • Joined

  • Last visited

  1. So that was the confusing part right. Ultimately what happened was I shut down my server. I rebooted it. And my deco started picking up the wrong MAC address. I thought okay I’ll turn off the host option in docker (which honestly don’t remember enabling). My deco would find the physical Mac, but then the craziest thing happened. My Br0 got kicked. Well then I was like crap. I recovered Br0 by essentially turning shim back on. Which may be the reason shim prioritized over Br0. From there I was stuck. When I’d turn shim off, it would screw up my applications such as pi-hole. I’d get tcp errors resulting in network failure. I don’t know if the diagnostic folder would have any clue. The workaround I posted was the best case I could find. It’s like my system requires shim to connect, and I know it shouldn’t. It was working fine before the shutdown.
  2. Found a decent work around with the plugin script application. Appears to be working now on start up off array with findings of docker containers established Br0 and maintaining metric priority. Jorge if you still wanna dig into the .zip and see if you can find the underlying issue, id appreciate it. Note: Stability of connection All applications are working VPN recognized MAC address matching host machine; shim-br0 not broadcasting to router *All IP addresses noted in the script are for simple place holders and should not be copied and pasted into scripts. #!/bin/bash # ============================================================ # UNRAID BR0 / MACVLAN ROUTING WORKAROUND # # br0 = Normal LAN and internet traffic # shim-br0 = Host access to Docker macvlan containers # # IMPORTANT: # Modify the configuration below before running. # # No automatic rollback is included. # ============================================================ set -uo pipefail # ============================================================ # USER CONFIGURATION # ============================================================ HOST_IP="192.168.1.10" GATEWAY="192.168.1.1" LAN="192.168.1.0/24" BRIDGE="br0" SHIM="shim-br0" DOCKER_NETWORK="br0" # Critical container that must be discovered before proceeding. # Example: Pi-hole CRITICAL_CONTAINER_IP="192.168.1.20" # Optional storage server health check. STORAGE_IP="192.168.1.30" NFS_PATH="/mnt/remotes/example_nfs" # Startup timing MAX_WAIT=120 STABILIZATION_WAIT=20 PASS_COUNT=0 FAIL_COUNT=0 WARN_COUNT=0 declare -a RESULTS=() declare -a CONTAINER_IPS=() log() { echo "[br0-routing] $*" logger -t br0-routing "$*" } pass() { RESULTS+=("PASS | $1") PASS_COUNT=$((PASS_COUNT + 1)) log "PASS: $1" } fail() { RESULTS+=("FAIL | $1") FAIL_COUNT=$((FAIL_COUNT + 1)) log "FAIL: $1" } warn() { RESULTS+=("WARN | $1") WARN_COUNT=$((WARN_COUNT + 1)) log "WARN: $1" } # ============================================================ # 1. WAIT FOR DOCKER NETWORKING # ============================================================ log "Waiting for Docker networking..." NETWORK_READY=false for ((i=0; i<MAX_WAIT; i+=2)); do if ip link show "$BRIDGE" >/dev/null 2>&1 && ip link show "$SHIM" >/dev/null 2>&1 && docker network inspect "$DOCKER_NETWORK" \ >/dev/null 2>&1; then NETWORK_READY=true break fi sleep 2 done if [ "$NETWORK_READY" != "true" ]; then log "ERROR: Docker networking unavailable." exit 1 fi log "Docker networking detected." # ============================================================ # 2. DISCOVER CONTAINER IP ADDRESSES # ============================================================ discover_containers() { CONTAINER_IPS=() mapfile -t CONTAINER_IPS < <( docker network inspect "$DOCKER_NETWORK" \ --format '{{range .Containers}}{{.IPv4Address}}{{"\n"}}{{end}}' | cut -d/ -f1 | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$' | sort -u ) } log "Waiting for critical container..." CRITICAL_READY=false for ((i=0; i<MAX_WAIT; i+=2)); do discover_containers for IP in "${CONTAINER_IPS[@]}"; do if [ "$IP" = "$CRITICAL_CONTAINER_IP" ]; then CRITICAL_READY=true break fi done if [ "$CRITICAL_READY" = "true" ]; then break fi sleep 2 done if [ "$CRITICAL_READY" != "true" ]; then log "ERROR: Critical container not discovered." exit 1 fi log "Critical container detected." # ============================================================ # 3. ALLOW ADDITIONAL CONTAINERS TO START # ============================================================ log "Waiting ${STABILIZATION_WAIT}s for additional containers..." sleep "$STABILIZATION_WAIT" discover_containers log "Discovered ${#CONTAINER_IPS[@]} container IP addresses." for IP in "${CONTAINER_IPS[@]}"; do log "Discovered container: $IP" done # ============================================================ # 4. CONFIGURE DOCKER CONTAINER ROUTES # ============================================================ log "Configuring Docker routes..." for IP in "${CONTAINER_IPS[@]}"; do if ip -4 route replace "$IP/32" \ dev "$SHIM" src "$HOST_IP"; then log "Configured $IP -> $SHIM" else log "ERROR: Failed to configure $IP" fi done # ============================================================ # 5. CONFIGURE NORMAL LAN ROUTING # ============================================================ log "Configuring preferred bridge routes..." ip -4 route replace "$LAN" \ dev "$BRIDGE" src "$HOST_IP" metric 1 ip -4 route replace default \ via "$GATEWAY" dev "$BRIDGE" metric 1 # Remove competing shim routes. ip -4 route del "$LAN" dev "$SHIM" \ 2>/dev/null || true while ip -4 route show default dev "$SHIM" | grep -q '^default '; do if ! ip -4 route del default dev "$SHIM"; then log "ERROR: Unable to remove shim default route." break fi done # ============================================================ # 6. ROUTE VERIFICATION # ============================================================ check_route() { local NAME="$1" local DESTINATION="$2" local EXPECTED="$3" local ACTUAL ACTUAL=$( ip -4 route get "$DESTINATION" 2>/dev/null | awk '{ for (i=1; i<=NF; i++) if ($i=="dev") { print $(i+1) exit } }' ) if [ "$ACTUAL" = "$EXPECTED" ]; then pass "$NAME routes through $EXPECTED" else fail "$NAME expected $EXPECTED, got ${ACTUAL:-none}" fi } log "Starting network health checks..." check_route "Gateway" "$GATEWAY" "$BRIDGE" check_route "Internet" "1.1.1.1" "$BRIDGE" check_route "Critical container" \ "$CRITICAL_CONTAINER_IP" "$SHIM" check_route "Storage server" "$STORAGE_IP" "$BRIDGE" # ============================================================ # 7. VERIFY DOCKER ROUTES # ============================================================ discover_containers for IP in "${CONTAINER_IPS[@]}"; do if ! ip -4 route replace "$IP/32" \ dev "$SHIM" src "$HOST_IP"; then fail "Unable to configure Docker route for $IP" continue fi check_route "Docker $IP" "$IP" "$SHIM" done # ============================================================ # 8. CONNECTIVITY CHECKS # ============================================================ if ping -c 2 -W 2 "$GATEWAY" >/dev/null 2>&1; then pass "Gateway reachable" else fail "Gateway unreachable" fi if ping -c 2 -W 2 1.1.1.1 >/dev/null 2>&1; then pass "Internet connectivity" else fail "Internet connectivity" fi # ============================================================ # 9. DNS CHECK # ============================================================ if timeout 8 nslookup google.com \ "$CRITICAL_CONTAINER_IP" >/dev/null 2>&1; then pass "DNS resolution" else warn "DNS test failed or critical container is not a DNS server" fi # ============================================================ # 10. OPTIONAL NFS CHECK # ============================================================ if findmnt -rn -T "$NFS_PATH" -t nfs,nfs4 \ >/dev/null 2>&1; then pass "NFS mounted" else warn "NFS mount not detected" fi if timeout 5 ls -ld "$NFS_PATH" \ >/dev/null 2>&1; then pass "NFS path accessible" else warn "NFS path inaccessible" fi # ============================================================ # 11. FINAL HEALTH REPORT # ============================================================ echo echo "============================================================" echo " UNRAID NETWORK HEALTH REPORT" echo "============================================================" echo echo "Host IP: $HOST_IP" echo "Gateway: $GATEWAY" echo "Docker network: $DOCKER_NETWORK" echo "Containers: ${#CONTAINER_IPS[@]}" echo echo "------------------- TEST RESULTS ---------------------------" for RESULT in "${RESULTS[@]}"; do echo "$RESULT" done echo echo "------------------- SUMMARY --------------------------------" echo "PASSED: $PASS_COUNT" echo "FAILED: $FAIL_COUNT" echo "WARNINGS: $WARN_COUNT" echo echo "------------------- ROUTING TABLE --------------------------" ip -4 route show echo echo "============================================================" if [ "$FAIL_COUNT" -eq 0 ]; then echo "OVERALL STATUS: PASS" log "OVERALL STATUS: PASS ($PASS_COUNT checks passed)" else echo "OVERALL STATUS: FAIL" log "OVERALL STATUS: FAIL ($FAIL_COUNT checks failed)" fi echo "============================================================" if [ "$FAIL_COUNT" -gt 0 ]; then exit 1 fi exit 0
  3. Sorry Jorge, work nights in the ED. Here is that requested diagnostics attachment wilbarger-diagnostics-20261031-1350.zip
  4. Tried this and unfortunately didn't work, though wanted to post here as an appreciation to your guide!
  5. Hello all, I could really use your help. I recently restarted my unraid server with the lastest server stable release. It appears shim has been placed at the top of the networking chain meaning my router recieves that Mac and ip address. I attempted multiple different things including changing the network metrics, rebooting, docker configuration changes such as ipvlan and off/on. I need shim for my pihole and some other docker applications, but I also need br0 to be at the top so my router can push VPN. Any solutions?? Thank you! Further reference Default Shim-br0 Default Br0 - 1006 Also it auto populates shim back to default top when I delete

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.