@samitouri / QOSAMI-WSL / commits / fc9266ff

updates

Catalin-Emil Fetoiu committed Aug 30, 2024 at 10:58 UTC fc9266ffe74134a1793d95df39c606ca26cc14bf
2 files changed +9 -5
diagnostics/collect-networking-logs.ps1
+1 -1
@@ -2,7 +2,7 @@
2
3 [CmdletBinding()]
4 Param (
5 - [switch]$RestartWslReproMode = $false
5 + $RestartWslReproMode = $false
6 )
7
8 function Collect-WindowsNetworkState {
diagnostics/networking.sh
+8 -4
@@ -5,6 +5,9 @@ set -xu
5 lsb_release -a || cat /etc/issue /etc/os-release
6 uname -a
7
8 +echo "Printing per-distro configuration"
9 +cat /etc/wsl.conf
10 +
11 echo "Printing adapter & routing configuration"
12 ip a
13 ip route show table all
@@ -23,10 +26,7 @@ if [ -z ${WSL_PAC_URL+x} ]; then echo "WSL_PAC_URL is unset"; else echo "WSL_PAC
26
27 echo "Printing DNS configuration"
28 cat /etc/resolv.conf
26 -
27 -# This is only configured in mirrored mode. WSL configures only the v4 port range - Linux will use the same range for v6
28 -echo "Printing ephemeral port range"
29 -cat /proc/sys/net/ipv4/ip_local_port_range
29 +cat /etc/nsswitch.conf
30
31 echo "Printing iptables and nftables rules"
32 # iptables can be configured using both "iptables" and the legacy version "iptables-legacy". It's possible they can be used together
@@ -57,3 +57,7 @@ ip6tables-legacy -vL -t raw
57 ip6tables-legacy -vL -t security
58
59 nft list ruleset
60 +
61 +# This will print configurations such as net.ipv4.conf.all.route_localnet or net.ipv4.ip_local_port_range
62 +echo "Printing networking configurations"
63 +sysctl -a | grep net