大网数据广告活动
服务器运维问答

Connection Failed on AWS Client VPN - netsh command failed: external program did not execute -- returned error code -1

· 52CE 我爱测

I have a AWS Client VPN set up and connecting to the endpoint on a Mac is fine, but some windows devices are not having it. The logs show the following: 2020-09-25 11:36:11.154 +01:00 [DBG] [TI=4] [9796] Fri Sep 25 11:36:11 2020 …

问题原文

原帖链接 · HarryT · CC BY-SA 4.0

I have a AWS Client VPN set up and connecting to the endpoint on a Mac is fine, but some windows devices are not having it. The logs show the following:

2020-09-25 11:36:11.154 +01:00 [DBG] [TI=4] [9796] Fri Sep 25 11:36:11 2020 NETSH: C:\Windows\system32\netsh.exe interface ip set address Local Area Connection 2 dhcp
2020-09-25 11:36:11.154 +01:00 [DBG] [TI=4] [9796] Fri Sep 25 11:36:11 2020 ERROR: netsh command failed: external program did not execute -- returned error code -1

There is also:

2020-09-25 11:35:56.154 +01:00 [DBG] [TI=4] [9796] Fri Sep 25 11:35:56 2020 WARNING: External program may not be called unless '--script-security 2' or higher is enabled. See --help text or man page for detailed info.

However 'script-security' isn't allowed in the AWS Client configuration, so not sure how I am supposed to do that.

The connection initially works, and SAML authentication goes through without a hitch, but finalising the connection is not happening.

This happens for certain builds of company laptops - a different image is no problem, but I wouldn't mind trying to find out what is causing the difference. Any thoughts would be very welcomed.

已采纳解答

原帖链接 · eldiablo · CC BY-SA 4.0

This problem occurs when TAP adapter is configured with static IP instead of DHCP. You should check the configuration of the TAP adapter.

  1. Go into Control Panel -> Network and Internet -> Network and Sharing Center
  2. Click "Change adapter settings"
  3. Select the TAP adapter
  4. Right click on it, and choose "Properties"
  5. Select IPv4 settings
  6. Click on "Properties"
  7. Select "Obtain an IP address automatically" and "Obtain DNS server address automatically"
  8. Click "OK" to apply
  9. If needed, repeat steps 5 to 8 for IPv6 settings

You may need to reboot the computer (or restart AWS client and service) before it works.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-09-25)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。