Skip to contentSkip to conversation

DNS vs. Route preference

DISCUSSION Thomas Bartosik 2 participants 2 messages Jul 16, 2024

lore
Share & tools
lore
#0 lore raw

Hello list!

I am using Debian's connman 1.41 and openVPN.

I have to set a route preference ("move-before") for my local connection before the VPN, as otherwise packets don't get routed via the default gateway.

However, that also makes my local connection's DNS server the preferred one over the one that gets pushed via VPN.

I do get correct DNS responses for internal domains that only exist internally.

But there are services which have an internal and an external IP (for their publicly visible A record), and when connected via VPN, I want to get a response for (and connect to) the internal IP.

Is this achievable/which configuration options do I have to set?

Or is this already improved in 1.42 and/or current git versions and should I test the current master?

Thanks in advance for any pointers!
th

#1 lore raw
Quoted 11 lines · Thomas Bartosik

I am using Debian's connman 1.41 and openVPN.

I have to set a route preference ("move-before") for my local connection before the VPN, as otherwise packets don't get routed via the default gateway.

However, that also makes my local connection's DNS server the preferred one over the one that gets pushed via VPN.

I do get correct DNS responses for internal domains that only exist internally.

But there are services which have an internal and an external IP (for their publicly visible A record), and when connected via VPN, I want to get a response for (and connect to) the internal IP.

Is this achievable/which configuration options do I have to set?

I’ll defer to others that have far more experience with VPNs in ConnMan than I have.

Quoted 1 line

Or is this already improved in 1.42 and/or current git versions and should I test the current master?

There are a large number of fixes and improvements between 1.41 and top-of-tree. However, please note that per this thread, there are issues with VPNs and later versions:

    https://lore.kernel.org/connman/[email protected]/
    https://github.com/LibreELEC/LibreELEC.tv/commit/998f2bcfd5849e3eecda6f753ff5bab68a847aea

Best,

Grant

Signature · 5 lines
Principal
Nuovations

[email protected]
https://www.nuovations.com/