michaelajansen wroteI have a VPN where typical clients are workstations that need DHCP options (DNS, DOMAIN) pushed. One and only one client is a server who should NOT have any DHCP options pushed. Is there a way via client-config-dir files, some type of conditional directive, or other means to exclude some push directives that are in the main server.conf?
The situation I am currently in is that I have to create a ccd file for each new workstation and add the same exact push directives. Only the one server does not have these directives.
Man Page:
--push-remove opt
selectively remove all --push options matching "opt" from the
option list for a client. "opt" is matched as a substring
against the whole option string to-be-pushed to the client, so
--push-remove route would remove all --push route ... and
--push route-ipv6 ... statements, while --push-remove 'route-
ipv6 2001:' would only remove IPv6 routes for 2001:... networks.
--push-remove can only be used in a client-specific context,
like in a --client-config-dir file, or --client-connect script
or plugin -- similar to --push-reset, just more selective.
NOTE: to change an option, --push-remove can be used to first
remove the old value, and then add a new --push option with the
new value.
It sounds like this is what you are looking for in a CCD for a specific client.
It might be new to 2.4.x , I do not remember it in 2.3.x, but maybe I was not paying attention.