diff --git a/diagnostics/collect-networking-logs.ps1 b/diagnostics/collect-networking-logs.ps1 index e3a3e4f..ba52934 100644 --- a/diagnostics/collect-networking-logs.ps1 +++ b/diagnostics/collect-networking-logs.ps1 @@ -42,7 +42,7 @@ if (Test-Path $wslconfig) } # Collect Linux network state before the repro -& wsl.exe -e $networkingBashScript 2>&1 > $folder/linux_network_configuration_before.log +& wsl.exe -u root -e $networkingBashScript 2>&1 > $folder/linux_network_configuration_before.log if ($RestartWslReproMode) { @@ -154,7 +154,7 @@ finally } # Collect Linux network state after the repro -& wsl.exe -e $networkingBashScript 2>&1 > $folder/linux_network_configuration_after.log +& wsl.exe -u root -e $networkingBashScript 2>&1 > $folder/linux_network_configuration_after.log # Collect host networking state relevant for WSL # Using a try/catch for commands below, as some of them do not exist on all OS versions diff --git a/diagnostics/networking.sh b/diagnostics/networking.sh index de1688d..0f1344b 100644 --- a/diagnostics/networking.sh +++ b/diagnostics/networking.sh @@ -22,3 +22,7 @@ if [ -z ${WSL_PAC_URL+x} ]; then echo "WSL_PAC_URL is unset"; else echo "WSL_PAC echo "Printing DNS configuration" cat /etc/resolv.conf + +echo "Printing iptables and nftables rules" +iptables -S +nft list ruleset