[GH-ISSUE #5352] How to know which device a request came from? #11326

Closed
opened 2026-08-05 01:29:19 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @Cyberbeni on GitHub (Feb 16, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5352

I have NetBird set up in a container:

services:
  netbird:
    image: netbirdio/netbird:rootless-latest
    container_name: netbird
    mem_limit: '512m'
    cpus: 1
    restart: unless-stopped
    user: 1000:1000
    network_mode: host
    volumes:
      - ./config-netbird:/var/lib/netbird
      - /etc/localtime:/etc/localtime:ro

And AdGuard Home set up in another container:

services:
  adguard:
    image: adguard/adguardhome
    container_name: adguard
    mem_limit: '512m'
    cpus: 1
    restart: unless-stopped
    user: 1000:1000
    ports:
      - 53:53/tcp
      - 53:53/udp
      - 3000:3000/tcp
    volumes:
      - ./data-adguard:/opt/adguardhome/work
      - ./config-adguard:/opt/adguardhome/conf
      - /etc/localtime:/etc/localtime:ro

My NetBird is set up, so that other devices use this device as a DNS server.
My AdGuard has the following trusted proxies set up:

  trusted_proxies:
    - 172.16.0.0/12
    - 127.0.0.0/8
    - ::1/128

But requests coming through NetBird show up with the client IP 172.18.0.1. Or if I use AdGuard Home with network_mode: host then localhost (127.0.0.1). Shouldn't I see 100.x.y.z in AdGuard for these requests?

Originally created by @Cyberbeni on GitHub (Feb 16, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5352 I have NetBird set up in a container: ```yaml services: netbird: image: netbirdio/netbird:rootless-latest container_name: netbird mem_limit: '512m' cpus: 1 restart: unless-stopped user: 1000:1000 network_mode: host volumes: - ./config-netbird:/var/lib/netbird - /etc/localtime:/etc/localtime:ro ``` And AdGuard Home set up in another container: ```yaml services: adguard: image: adguard/adguardhome container_name: adguard mem_limit: '512m' cpus: 1 restart: unless-stopped user: 1000:1000 ports: - 53:53/tcp - 53:53/udp - 3000:3000/tcp volumes: - ./data-adguard:/opt/adguardhome/work - ./config-adguard:/opt/adguardhome/conf - /etc/localtime:/etc/localtime:ro ``` My NetBird is set up, so that other devices use this device as a DNS server. My AdGuard has the following trusted proxies set up: ```yaml trusted_proxies: - 172.16.0.0/12 - 127.0.0.0/8 - ::1/128 ``` But requests coming through NetBird show up with the client IP `172.18.0.1`. Or if I use AdGuard Home with `network_mode: host` then `localhost (127.0.0.1)`. Shouldn't I see `100.x.y.z` in AdGuard for these requests?
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#11326