1

NextDNS on OpenWrt 19.07.5 r11257-5090152ae3 - WiFi Clients no Internet

[Also posted on NextDNS reddit]

Hi,

I have a D-Link DWR-921 C3 LTE Router fully working with supported build of Openwrt.

Followed the forum post for my model on Openwrt (https://openwrt.org/toh/d-link/d-link_dwr-921) for install - other than name my WiFi I have made no changes from stock. Everything works perfectly (LTE modem via QMI, WiFi, LAN etc) with full access for LAN and WLAN clients to the Internet via the LTE WAN.

I install the “luci-app-nextdns” and enable it using my Configuration ID from NextDNS, and tick “Report Client Info” and nothing else.

I then wait 30 seconds, and reboot the router.

When it comes back up, the router retains internet connectivity (ie able to “Update Lists” under software) but WLAN clients do not. They connect to the router (shown in DHCP client list) and I can access the LuCI interface of the router fine, but no WAN traffic works. 

^ On iOS devices this shows as connected to the WiFi in settings, but no WiFi bars in the top bar of the iPhone or iPad (it just shows cellular). No WiFi internet works if you disable mobile data or remove the SIM.

I then disable NextDNS from Services/NextDNS. I don’t reboot but NextDNS logs reports below: 

    Tue Jan  5 16:50:49 2021 daemon.notice nextdns[2597]: Received signal: terminated
    Tue Jan  5 16:50:49 2021 daemon.notice nextdns[2597]: Stopping NextDNS 1.9.4/linux
    Tue Jan  5 16:50:49 2021 daemon.notice nextdns[2597]: Restore router settings
    Tue Jan  5 16:50:54 2021 daemon.notice nextdns[2597]: NextDNS 1.9.4/linux stopped

I disconnect my WAN-unable WiFi clients and connect again and Internet now works for all clients. If I reboot the router everything continues to work.

If I then enable NextDNS with WiFi clients still connected and don’t reboot, they continue to work. But if another client connects or I disconnect a working client and reconnect, they stop getting internet access. If I reboot router, clients still have no WAN connectivity as per ^ above.

Any thoughts?

Shane.

7 replies

null
    • Shane_Lord
    • 3 yrs ago
    • Reported - view

    So as I hit my head constantly against a brick wall trying to resolve this myself, I'm having a hard time getting my head around the fact that I am a paid user of this service and I get NO support from the company providing the service (only community help), even when there is a bug in the way it functions?

    Olivier Poitrey Can anyone assist please?

      • olivier
      • 3 yrs ago
      • Reported - view

      Shane Lord Please try to follow this installation procedure: https://github.com/nextdns/nextdns/wiki/OpenWRT

      • Shane_Lord
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey Hi.

      I did follow this. I did each of the steps under "All Versions", then followed the steps under "Version 19.07.01-rc2+" although that wiki isn't exactly clear if I do both or just one of them if I have 19.07.x or newer running, so I assumed do them all.

      • olivier
      • 3 yrs ago
      • Reported - view

      Shane Lord please try to uninstall both luci-app-nextdns and nextdns and only follow the CLI install. Once done, please show the output of "nextdns config".

      • solo
      • 3 yrs ago
      • Reported - view

      Olivier Poitrey  hello! 

      The problem is observed when the options are enabled: 

      nextdns config set -cache-size = 10MB
      nextdns config set -max-ttl = 5s 

      If you disable the cache and TTL everything works.

      Working config for OpenWrt SNAPSHOT r15595-29167cbca3 version:

      cache-size 0
      hardened-privacy false
      timeout 5s
      cache-max-age 0s
      detect-captive-portals false
      bogus-priv true
      use-hosts true
      auto-activate false
      listen localhost:53
      config ??????
      discovery-dns
      report-client-info true
      setup-router true
      control /var/run/nextdns.sock
      log-queries false
      max-ttl 0s
      • solo
      • 2 yrs ago
      • Reported - view

      Olivier Poitrey hi.

      I seem to understand the reason. When you enable the cache in nextdns, clients do not receive the router's dns server. If you register it manually on the device, then everything works. Disabling the cache "nextdns config set -cache-size = 0" and restarting the service restores the dns broadcaster.

    • solo
    • 2 yrs ago
    • Reported - view

    solved the problem by writing to 

    /etc/dnsmasq.conf
    #set DNS server
    dhcp-option=lan,6,192.168.1.1
    dhcp-option=wifi,6,192.168.1.1

    where 192.168.1.1 is the IP address of your openwrt router.

    don't forget to apply

    /etc/init.d/dnsmasq restart

Content aside

  • 1 Likes
  • 2 yrs agoLast active
  • 7Replies
  • 1091Views
  • 4 Following