Tunnelblick: "Warning: DNS server address 10.1.0.1 is not a public IP address and is not being routed through the VPN" (but everything works) #832
Replies: 10 comments 1 reply
-
This is a Tunnelblick warning.
Does Tunnelblick know that you are "manually routing via the tunnel" ? |
Beta Was this translation helpful? Give feedback.
-
See Tunnelblick forums first, it's not an issue with this script. Here is the discussion https://groups.google.com/d/msg/tunnelblick-discuss/lPrltf1UrTw/6ZIKXVM0BQAJ. Their answer to fix this warning is:
The interesting thing is that we are doing it... openvpn-install/openvpn-install.sh Lines 801 to 802 in eca5be8
You may want to post this issue there. |
Beta Was this translation helpful? Give feedback.
-
Ok, thank you! I posted it here because the issue does not happen with my other VPN setup (using pfSense as OpenVPN server). I am using the Cloudflare DNS so I'm not looking at setting up a DNS server in the VPN. Also, I'm still confused on how setting up a DNS server would help, given that its IP would be different than 10.1.0.1 anyways?
Yes that's a checkbox on Tunnelblick itself. |
Beta Was this translation helpful? Give feedback.
-
10.1.0.1 is in your client local LAN, which is why you see the warning. The link @randomshell pointed you to explains it clearly. |
Beta Was this translation helpful? Give feedback.
-
I pasted the wrong text. It works for public DNS too.
If you have time to remove the sensitive parts I might take a look, but I wouldn't know what's the problem based on the forum answer. |
Beta Was this translation helpful? Give feedback.
-
The answer is that the VPN is not pushing a DNS server and so Tunnelblick is warning the user that 10.1.0.1 is not a public DNS server and it is not being routed via the VPN. My initial interest was that this could have been a Tunnelblick bug but it is not. |
Beta Was this translation helpful? Give feedback.
-
@TinCanTech Why do you say that the VPN is not pushing a DNS server? He chose Cloudflare DNS. openvpn-install/openvpn-install.sh Lines 801 to 802 in eca5be8 @ItalyPaleAle can you confirm you have |
Beta Was this translation helpful? Give feedback.
-
Either the VPN is not pushing DNS or Tunnelblick is not configured correctly. Your script is not at fault and the warning in the log is correct. |
Beta Was this translation helpful? Give feedback.
-
Here's the full server.conf:
So yes, those two lines are there. However, looking at this file I do see something interesting... The script created a virtual network that is 10.8.0.0/24, which conflicts with my LAN's address range 10.0.0.0/8. Do you think that might be why I'm getting this warning? |
Beta Was this translation helpful? Give feedback.
-
Other ideas I found from their FAQ:
Try to enable this option in Tunnelblick.
Try to change
I don't think so, it talks specifically about DNS. As a last try, you could change the subnet (remove If none of this works, comment on their forum linking to this issue and the solutions you tried. |
Beta Was this translation helpful? Give feedback.
-
Checklist
Describe the issue
I set up an OpenVPN server using this script. The server runs on Debian 10. The client is macOS.
When I connect with Tunnelblick, I always get this warning: "Warning: DNS server address 10.1.0.1 is not a public IP address and is not being routed through the VPN."
In this case, 10.1.0.1 is the IP of my DNS server within the LAN that I would normally connect to (this is set through DHCP so it's not static). In Tunnelblick I've manually enabled "Route all IPv4 traffic through the VPN".
Everything works, and there's no DNS leak (I can confirm that). However, this warning persists.
I'm using the latest version of Tunnelblick: "Tunnelblick: macOS 10.15.5 (19F101); Tunnelblick 3.8.2a (build 5481)"
Server if applicable):
Client (if applicable):
Additional context
Note that this is not the first OpenVPN solution I set up. In fact, I've been connecting from this same laptop to an OpenVPN server running in my firewall (pfSense) for years, and I've never seen this warning before. Only when connecting to an OpenVPN server created with openvpn-install I see this warning (but again, it's just a warning and everything works as expected)
Beta Was this translation helpful? Give feedback.
All reactions