windows:wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
windows:wsl [2021/12/12 14:39] – [wsl vhdx compact, method] adminwindows:wsl [2022/12/27 17:56] (current) – [WSL2 port forwarding high cpu] admin
Line 9: Line 9:
 </code> </code>
 ++++ ++++
 +
 +====== WSL2 high cpu ======
 +<code>
 +taskkill -IM "wslservice.exe" /F
 +wsl --shutdown
 +</code>
  
 ====== WSL2 port forwarding ====== ====== WSL2 port forwarding ======
Line 17: Line 23:
 <code BASH> netsh interface portproxy add v4tov4 listenport=$PORT listenaddress=0.0.0.0 connectport=$PORT connectaddress=127.0.0.1 </code> <code BASH> netsh interface portproxy add v4tov4 listenport=$PORT listenaddress=0.0.0.0 connectport=$PORT connectaddress=127.0.0.1 </code>
 :!: :!:
-++++  PowerShell Script for port forward|+++++  PowerShell Script for tcp port forward|
 <code bash> <code bash>
  
Line 65: Line 71:
 # Show rules # Show rules
 netsh interface portproxy show all netsh interface portproxy show all
 +
 +# Reset all
 +netsh interface portproxy reset
  
 </code> </code>
 ++++ ++++
 +++++  PowerShell Script for udp port forward socat|
 +<code bash>
 +# https://serverfault.com/questions/1051667/forward-incoming-udp-packets-on-windows-server-to-client-on-different-interface
 +# udp forward https://mattryall.net/blog/udp-port-forwarding-with-socat
 +# distr https://sourceforge.net/projects/unix-utils/files/socat/1.7.3.2/
 +socat UDP4-RECVFROM:161,fork UDP4-SENDTO:localhost:10161
 +</code>
 +++++
 +
  
 ====== Windows system linux ====== ====== Windows system linux ======
  • windows/wsl.1639319989.txt.gz
  • Last modified: 2021/12/12 14:39
  • by admin