After activating the VPN activation for the secondary Routing, you can see in the primary Routing that the DNS for the secondary Routing is not tunneled through the VPN,I don't know how to fix it?
If the user performs a trace route to say for exampleYou're probably right about 8.8.8.8 and 8.8.4.4 NOT being routed over the VPN, but you wouldn't know that from the netstat information. All it's showing is the destination IP and ports being used, but NOT which network interface is being used to route those DNS queries out to the internet. For that you'd need to use my DNS monitor utility.
Tutorial - How to monitor DNS traffic in real-time
The following script allows for real-time monitoring of DNS on the router for the purposes of knowing what DNS servers are in use, and which network interfaces are being used. https://pastebin.com/AGNF8cC8 Overview One of the most difficult aspects of the router for users is managing DNS. DNS...www.snbforums.com
What you're likely to find is that 8.8.8.8 and 8.8.4.4 are in fact being routed out the WAN/ISP. And that's because starting w/ 386.4, ASUS now statically binds the WAN's DNS server's to the WAN (!) (presumably to ensure the integrity of the periodic WAN check). But given you're using DoT (aka Stubby @ 127.0.1.1), those custom servers aren't even necessary. Had you left them blank, there'd be nothing for the router to bind to the WAN. All the router could do is use Stubby for name resolution, which is a local process. And Stubby itself is bound to the VPN because of having "Route Internet traffic through tunnel" set to Yes (all).
In fact, perhaps an even better solution is what I explain in the following link regarding binding the router itself to DNSMasq (an idea that originated from @SomeWhereOverTheRainBow).
Tutorial - How to monitor DNS traffic in real-time
Been following this thread. I recall many questions about leaving DNS Server 1/DNS Server 2 blank was answered moons ago. @RMerlin 's guidance was: "do not leave'm blank or NTP and other time dependent services (VPNs, ...) cannot start properly." What did I miss? We are concerned that the...www.snbforums.com
One other point. Whether DoT needs to be routed over the VPN is an arguable point. Once DNS is encrypted, it doesn't really matter all that much which network interface is used. The only real (and limited) benefit of routing DoT over the VPN is so the ISP doesn't even know you're using DoT, and which servers, and perhaps in some extreme case, having the ISP block port 853. But for the most part, it just isn't necessary. In in your case, it just comes as a side-effect of having all your traffic routed over the VPN.
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!