Last active
May 10, 2022 08:45
-
-
Save engalar/cfb8dbde4e84a34c60ca2a8ef31892d1 to your computer and use it in GitHub Desktop.
windows wsl proxy localhost
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export all_proxy=http://host.docker.internal:29759 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
New-NetFirewallRule -DisplayName "Allow Inbound Port 29759" -Direction Inbound -LocalPort 29759 -Protocol TCP -Action Allow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off&(cd/d "%~dp0")&(cacls "%SystemDrive%\System Volume Information" >nul 2>&1)||(start "" mshta vbscript:CreateObject^("Shell.Application"^).ShellExecute^("%~snx0"," %*","","runas",1^)^(window.close^)&exit /b) | |
netsh interface portproxy reset | |
netsh interface portproxy show all | |
netsh interface portproxy add v4tov4 listenport=29759 listenaddress=host.docker.internal connectport=29758 connectaddress=127.0.0.1 | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment