-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement deletion script for WSL2 port forwarding rules (#20)
Signed-off-by: Sean O'Hair <sean.ohair@intel.com>
- Loading branch information
1 parent
4ca70cd
commit 7bffaa4
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
######################################################################## | ||
# Copyright (c) Intel Corporation 2023 | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
######################################################################## | ||
|
||
## NOTE: Run with Admin Powershell Terminal! | ||
|
||
# WSL Port Forwarding Removal of Port 22 and 2223 | ||
netsh interface portproxy delete v4tov4 listenport=22 listenaddress=0.0.0.0 | ||
netsh interface portproxy delete v4tov4 listenport=2223 listenaddress=0.0.0.0 | ||
|
||
# WSL Remove firewall rules | ||
netsh advfirewall firewall delete rule name="Open SSH port 22 for WSL2" | ||
netsh advfirewall firewall delete rule name="Open SSH Tunnel port 2223 for WSL2" |
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