0

NextDNS on OpenWRT Router - Blocks Work & School VPNs

I set up NextDNS on my router using OpenWRT and was able to apply profiles by MAC address using the instructions for Conditional Configuration on the wiki - this was working great until I noticed that my work laptop wasn't able to connect to its VPN... (a custom setup) and my kids' school laptop was also unable to connect using a Cisco AnyConnect VPN. As much as I like the features that NextVPN provides it's not going to work for me unless there is a way to be able to access work & school networks. Any suggestions?

10replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Have you checked your NextDNS profile to see what's being blocked and/or if you selected a ruleset that is blocking VPNs?  You should be able to initiate a connection and then see the block on the NextDNS logs page and from there whitelist the domain that's being blocked and preventing your VPN from making the connection.  Also remember, that most Enterprise VPNs (like Cisco AnyConnect) force the computer to use the VPN DNS providers once connected so at that point NextDNS wouldn't be blocking anything.  

    Hope that helps.

    Like 1
      • Matt
      • Matt.5
      • 1 mth ago
      • 1
      • Reported - view

      CC I've checked... but the logs are very helpful. I've guessed at all of the domains that I expect the VPNs to be trying to reach, and put them in the allow list - now I don't see anything in the logs that looks relevant. Is there a way to get a better log file - perhaps from the router application itself?

      I've tried setting the "forwarder" in the router config to an alternative DNS (1.1.1.1) for the top-level domains that I think the VPNs are using... but the documentation on GitHub is very brief.

      Like 1
  • When I use the "forwarder" option in the config file in an effort to allow the VPN to bypass NextDNS entirely a "." is appearing between the address and the DNS server that I'm recommending. For instance, I try to indicate that foo.bar.com is to be pointed to 1.1.1.1 by saying "config set -forwarder foo.bar.com=1.1.1.1" however when I look at the config it says "forwarder foo.bar.com.=1.1.1.1" I'm not sure if this is significant.

    Like
  • I'm using the CLI on an OpnenWRT router - checking the logs using:

    nextdns log

    doesn't even show records that I can identify as coming from the laptop that's trying to run the VPN... (which is a Cisco umbrella) I've tried adding the IP's associated with Umbrella (as listed on the Cisco site as "Prerequisite" ) to the Allowlist... and / or to the rewrites. Doesn't seem to matter... until I run

    nextdns stop

    on the router the laptop just says "the VPN connection failed due to unsuccessful domain name resolution"

    Am I the only person who is trying to use NextDNS with one of these devices on my network??

     

    @nextdns

    Like
      • CC
      • charcoal_car
      • 3 wk ago
      • 1
      • Reported - view

      Matt 

      So I have seen exact same issue and it was related to an option having to do with DNS Rebind Protection enabled on the router and the Parental Control on the NextDNS profile to block bypass methods.

      I was never able to get the CLI version running on my Merlin Asus router, but if OpenWRT has similar settings you could check this Reddit post for guidance.

      Hope that helps.

      Like 1
      • Matt
      • Matt.5
      • 2 wk ago
      • Reported - view

      CC Thanks @charcoal_car - I'll read up on your solution on Reddit. In the meantime, I've found that if I take  NextDNS offline for a few minutes and let the VPN connect it will maintain its connection even if I bring NextDNS back online... so I've written an SSH script for OpenWRT that does just that.

      Like
  • Try this!

    Go
    Network > Interfaces > (GO YOUR INTERFACE VPN OR SCHOOL) click edit > DHCP Server > Advanced Settings > DHCP-Options > use 6-option (e.g. 6,192.168.1.1 or 6,10.10.10.1

    Like
  • Use the same ip address as your interface, because it will loopback to nextdns

    e.g.
    6,192,168.1.1
    6,10.10.10.1

    Like
      • Matt
      • Matt.5
      • 10 days ago
      • Reported - view

      Vinicius Ribeiro That didn't solve the problem.

      Like
  • Thanks - I'm trying and I'll let you know what happens.

    Like 1
Like Follow
  • 10 days agoLast active
  • 10Replies
  • 257Views
  • 3 Following