VPN autoconnect: connect on dns-domain request or ip subnet. is this feasible?
Posted: Mon Apr 21, 2025 8:17 am
I just did setup the VPN client Pro using a softether connection to my home-system. Works.
Now, I have the fantasy I could have a VPN which connects on demand only if an app requests a hostname from a predefined domain name, or as an alternative an IP Adress from a list of subnets.
But only if I am not connected already to one of these networks (internal wifi or lan)
I this doable, or maybe partially? Using a DNS name is not that easy, because the VPN client then needs to intercept the DNS resolver of the system, but I could add host entries for the hostnames in question, or since my internal domain is also registered externally I could publish A records of hosts in the official DNS with my internal IP Addresses.
VPN client pro has a lot of options for autoconnect but it seems the feature I hoped are not currently available - correct?
Furthermore, I noticed, the VPN connection is goes down if I close the UI of the program. I hoped there is a background service which is responsible for the VPN and the UI is only used for managment purposes. Is there something I could do to fix this?
Thank you.
Now, I have the fantasy I could have a VPN which connects on demand only if an app requests a hostname from a predefined domain name, or as an alternative an IP Adress from a list of subnets.
But only if I am not connected already to one of these networks (internal wifi or lan)
I this doable, or maybe partially? Using a DNS name is not that easy, because the VPN client then needs to intercept the DNS resolver of the system, but I could add host entries for the hostnames in question, or since my internal domain is also registered externally I could publish A records of hosts in the official DNS with my internal IP Addresses.
VPN client pro has a lot of options for autoconnect but it seems the feature I hoped are not currently available - correct?
Furthermore, I noticed, the VPN connection is goes down if I close the UI of the program. I hoped there is a background service which is responsible for the VPN and the UI is only used for managment purposes. Is there something I could do to fix this?
Thank you.