@samitouri / QOSAMI-WSL / commits / a4bdb9c0

add iptables/nftables

Catalin-Emil Fetoiu committed Mar 22, 2024 at 15:26 UTC a4bdb9c08f77ba0971a6a658a8b45d29f0a04ce5
2 files changed +6 -2
diagnostics/collect-networking-logs.ps1
+2 -2
@@ -42,7 +42,7 @@ if (Test-Path $wslconfig)
42 }
43
44 # Collect Linux network state before the repro
45 -& wsl.exe -e $networkingBashScript 2>&1 > $folder/linux_network_configuration_before.log
45 +& wsl.exe -u root -e $networkingBashScript 2>&1 > $folder/linux_network_configuration_before.log
46
47 if ($RestartWslReproMode)
48 {
@@ -154,7 +154,7 @@ finally
154 }
155
156 # Collect Linux network state after the repro
157 -& wsl.exe -e $networkingBashScript 2>&1 > $folder/linux_network_configuration_after.log
157 +& wsl.exe -u root -e $networkingBashScript 2>&1 > $folder/linux_network_configuration_after.log
158
159 # Collect host networking state relevant for WSL
160 # Using a try/catch for commands below, as some of them do not exist on all OS versions
diagnostics/networking.sh
+4
@@ -22,3 +22,7 @@ if [ -z ${WSL_PAC_URL+x} ]; then echo "WSL_PAC_URL is unset"; else echo "WSL_PAC
22
23 echo "Printing DNS configuration"
24 cat /etc/resolv.conf
25 +
26 +echo "Printing iptables and nftables rules"
27 +iptables -S
28 +nft list ruleset