add iptables/nftables

This commit is contained in:
Catalin-Emil Fetoiu 2024-03-22 15:26:08 -07:00
parent 1ebe3e325f
commit a4bdb9c08f
2 changed files with 6 additions and 2 deletions

View File

@ -42,7 +42,7 @@ if (Test-Path $wslconfig)
} }
# Collect Linux network state before the repro # 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) if ($RestartWslReproMode)
{ {
@ -154,7 +154,7 @@ finally
} }
# Collect Linux network state after the repro # 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 # 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 # Using a try/catch for commands below, as some of them do not exist on all OS versions

View File

@ -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" echo "Printing DNS configuration"
cat /etc/resolv.conf cat /etc/resolv.conf
echo "Printing iptables and nftables rules"
iptables -S
nft list ruleset