[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Forcing dhclient to not ignore tun0 interface when it's available



On 03/03/2023 13:29, Tim Woodall wrote:
On Fri, 3 Mar 2023, Max Nikulin wrote:

dhclient running for enp2s0f0 should detect that VPN is active and to avoid overwriting DNS settings that direct requests to tun0.

The hook can create and delete a file like rhis:
tim@dirac:/etc/dhcp (none)$ cat dhclient-enter-hooks.d/nodnsupdate
make_resolv_conf() {
         :
}

I agree that VPN script may add and remove dhclient hook or may write some file in /run that is read by dhclient hook. They should cooperate in some way. In more versatile configuration domain resolution may be per-interface. E.g. hosts from the corporate domain are resolved through tun0, other sites through enp2s0f0.



Reply to: