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

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则