From 286966d1f5690ea525a391d2730cf5892ea7a9cb Mon Sep 17 00:00:00 2001 From: shokinn Date: Mon, 24 Jul 2023 12:13:29 +0200 Subject: [PATCH] add helper to show forwarding status --- config.yaml | 8 ++++++++ dotfiles/bin/wslshowhypervforwarding | 6 ++++++ 2 files changed, 14 insertions(+) create mode 100755 dotfiles/bin/wslshowhypervforwarding diff --git a/config.yaml b/config.yaml index 3fa0130..537ea52 100644 --- a/config.yaml +++ b/config.yaml @@ -116,6 +116,9 @@ dotfiles: f_wslenablehypervforwarding: dst: ~/.bin/wslenablehypervforwarding src: bin/wslenablehypervforwarding + f_wslshowhypervforwarding: + dst: ~/.bin/wslshowhypervforwarding + src: bin/wslshowhypervforwarding f_pu: dst: ~/.bin/pu src: bin/pu @@ -148,6 +151,7 @@ profiles: - f_dotdrop.sh - f_wsladdhypervroute - f_wslenablehypervforwarding + - f_wslshowhypervforwarding AINCRAD-wsl: dotfiles: - d_fonts @@ -170,6 +174,7 @@ profiles: - f_dotdrop.sh - f_wsladdhypervroute - f_wslenablehypervforwarding + - f_wslshowhypervforwarding yoetunheimr: dotfiles: - d_bspwm @@ -199,6 +204,7 @@ profiles: - f_dotdrop.sh - f_wsladdhypervroute - f_wslenablehypervforwarding + - f_wslshowhypervforwarding YOETUNHEIMR-wsl: dotfiles: - d_fonts @@ -221,6 +227,7 @@ profiles: - f_dotdrop.sh - f_wsladdhypervroute - f_wslenablehypervforwarding + - f_wslshowhypervforwarding ymir: dotfiles: - f_zshrc @@ -240,6 +247,7 @@ profiles: - f_dotdrop.sh - f_wsladdhypervroute - f_wslenablehypervforwarding + - f_wslshowhypervforwarding workspace: dotfiles: - d_fonts diff --git a/dotfiles/bin/wslshowhypervforwarding b/dotfiles/bin/wslshowhypervforwarding new file mode 100755 index 0000000..ed97bcf --- /dev/null +++ b/dotfiles/bin/wslshowhypervforwarding @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# +# This dotfile is managed using dotdrop +# +powershell.exe -ExecutionPolicy Bypass "Get-NetIPInterface | select ifIndex,InterfaceAlias,AddressFamily,ConnectionState,Forwarding | Sort-Object -Property IfIndex | Format-Table"