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?

已提問 3 年前檢視次數 560 次
1 個回答
0
已接受的答案

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

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南