can I prevent Client VPN from setting the hostname on the client machine?

0

We're using the AWS Client VPN service and the AWS-provided desktop client for macOS to connect work-from-home users to a VPC.

When users connect to the client VPN endpoint, we see the client is assigned a private DNS name like "ip-private-ipv4-address.region.compute.internal". This seems consistent with the VPC documentation https://docs.aws.amazon.com/vpc/latest/userguide/vpc-dns.html.

However, we find "hostname" on the client is also reset to that private DNS name when the VPN client is connected.

It's fine if the AWS service wants to assign another DNS name that resolves to a private IP address. However, we want the client machine to retain the hostname we've configured for it even when connected to the VPN. How do I prevent the desktop client from doing this?

preguntada hace 3 años560 visualizaciones
1 Respuesta
0
Respuesta aceptada

Hello,

While the AWS ClientVPN server(s) pushes a hostname along with an IP as part of its DHCP, should not take precedence over the hostname you set in OSX. It likely means that end-users local DHCP server is either not pushing a hostname or a local hostname is not set permanently. Try setting the hostname on the MAC permanently using "sudo scutil --set "HostName" before connecting to the ClientVPN.

Cheers,
Vignesh

respondido hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas