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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ