安装GOAD(Game Of Active Directory)靶场遇到的端口转发错误

主机环境:windows 11
provider:VirtualBox(最新版7.1.4 r165100)
vagrant版本:2.4.3
根据官方帮助https://orange-cyberdefense.github.io/GOAD/installation/windows/ ,安装应该比较顺利,但我尝试了一晚上,都会出现端口转发错误。查看本机的55985端口,并没有被占用。后来又尝试了在管理员权限的终端里进行安装,还是没有解决。搜遍源代码,也没有找到设置55985端口的地方。

GOAD/virtualbox/vm/192.168.56.X (0faf51-goad-virtualbox) > install
[*] Launch providing
[*] CWD: \workspace\0faf51-goad-virtualbox\provider
[*] Running command : vagrant.exe up
Bringing machine 'GOAD-DC01' up with 'virtualbox' provider...
Bringing machine 'GOAD-DC02' up with 'virtualbox' provider...
Bringing machine 'GOAD-DC03' up with 'virtualbox' provider...
Bringing machine 'GOAD-SRV02' up with 'virtualbox' provider...
Bringing machine 'GOAD-SRV03' up with 'virtualbox' provider...
Bringing machine 'PROVISIONING' up with 'virtualbox' provider...
==> GOAD-DC01: Checking if box 'StefanScherer/windows_2019' version '2021.05.15' is up to date...
==> GOAD-DC01: Clearing any previously set forwarded ports...
==> GOAD-DC01: Clearing any previously set network interfaces...
==> GOAD-DC01: Preparing network interfaces based on configuration...
    GOAD-DC01: Adapter 1: nat
    GOAD-DC01: Adapter 2: hostonly
==> GOAD-DC01: Forwarding ports...
    GOAD-DC01: 5985 (guest) => 55985 (host) (adapter 1)
    GOAD-DC01: 5986 (guest) => 55986 (host) (adapter 1)
    GOAD-DC01: 22 (guest) => 2222 (host) (adapter 1)
==> GOAD-DC01: Running 'pre-boot' VM customizations...
==> GOAD-DC01: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "dc925fae-843b-4389-af88-378c5a1b6842", "--type", "headless"]

Stderr: VBoxManage.exe: error: NAT#0: configuration error: failed to set up redirection of 55985 to 5985. Probably a conflict with existing services or other rules (VERR_NAT_REDIR_SETUP).
VBoxManage.exe: error: Failed to attach the network LUN (VERR_NAT_REDIR_SETUP)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
[-] Providing error stop

最后的解决方法,我也没有搞清原理。
由于之前我安装过其它靶场,VirtualBox中设置了4个HostOnly网卡,将剩余3个删除,只保留HostOnly #1 一个网卡后,问题自己解决了!
留档,并供遇到同样问题的同学们参考。

最后是成功运行的截屏。

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注