From cc63e1dfb17011bf09e4a6e9cc66fb9cdaeca13a Mon Sep 17 00:00:00 2001 From: Chris Long Date: Sun, 20 Sep 2020 21:11:14 -0700 Subject: [PATCH 1/2] Update bootstrap.sh --- Vagrant/bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrant/bootstrap.sh b/Vagrant/bootstrap.sh index 1d1cf86..59d7018 100644 --- a/Vagrant/bootstrap.sh +++ b/Vagrant/bootstrap.sh @@ -517,7 +517,7 @@ postinstall_tasks() { echo export PATH="$PATH:/opt/splunk/bin:/opt/zeek/bin" >>~/.bashrc echo "export SPLUNK_HOME=/opt/splunk" >>~/.bashrc # Ping DetectionLab server for usage statistics - curl -s -A "DetectionLab-logger" "https:/ping.detectionlab.network/logger" + curl -s -A "DetectionLab-logger" "https:/ping.detectionlab.network/logger" || echo "Unable to connect to ping.detectionlab.network" } main() { From 7c539edcc70d176362dd73452261d2726fb5db42 Mon Sep 17 00:00:00 2001 From: Chris Long Date: Sun, 20 Sep 2020 21:13:50 -0700 Subject: [PATCH 2/2] Update provision.ps1 --- Vagrant/scripts/provision.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Vagrant/scripts/provision.ps1 b/Vagrant/scripts/provision.ps1 index 9154eb7..61eb30b 100644 --- a/Vagrant/scripts/provision.ps1 +++ b/Vagrant/scripts/provision.ps1 @@ -21,7 +21,11 @@ If (!(Test-Path $ProfilePath)) { } # Ping DetectionLab server for usage statistics -curl -userAgent "DetectionLab-$box" "https://ping.detectionlab.network/$box" -UseBasicParsing | out-null +Try { + curl -userAgent "DetectionLab-$box" "https://ping.detectionlab.network/$box" -UseBasicParsing | out-null +} Catch { + Write-Host "Unable to connect to ping.detectionlab.network" +} Write-Host "$('[{0:HH:mm}]' -f (Get-Date)) Disabling IPv6 on all network adatpers..." Get-NetAdapterBinding -ComponentID ms_tcpip6 | ForEach-Object {Disable-NetAdapterBinding -Name $_.Name -ComponentID ms_tcpip6}