Skip to content

Commit 2d31b04

Browse files
Merge pull request #11907 from microsoft/user/cfetoiu/print_port_range
Print Linux ephemeral port range in the networking script
2 parents 7476722 + f8ff320 commit 2d31b04

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

diagnostics/networking.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ if [ -z ${WSL_PAC_URL+x} ]; then echo "WSL_PAC_URL is unset"; else echo "WSL_PAC
2424
echo "Printing DNS configuration"
2525
cat /etc/resolv.conf
2626

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
30+
2731
echo "Printing iptables and nftables rules"
2832
# iptables can be configured using both "iptables" and the legacy version "iptables-legacy". It's possible they can be used together
2933
# (although not recommended). Collect both to make sure no rules are missed.

0 commit comments

Comments
 (0)