Enabling NAT to expose public services of WSL (Windows Subsystem for Linux) in Windows 2022 Server using Powershell as Administrator

Enabling NAT to expose public services of WSL (Windows Subsystem for Linux) in Windows 2022 Server using Powershell as Administrator

Step 1 : Check the existing NAT Table


netsh interface portproxy show all
    

Step 2 : Expose port 80 public services of WSL


netsh interface portproxy add v4tov4 listenaddress=LOCAL_SERVER_PUBLIC_IP_ADDRESS listenport=80 connectaddress=LOCAL_SERVER_PRIVATE_IP_ADDRESS_WSL connectport=80
    

Step 3 : Expose port 443 public services of WSL


netsh interface portproxy add v4tov4 listenaddress=LOCAL_SERVER_PUBLIC_IP_ADDRESS listenport=443 connectaddress=LOCAL_SERVER_PRIVATE_IP_ADDRESS_WSL connectport=443
    

Step 4 : Check the NAT Table again to confirm that the changes are applied


netsh interface portproxy show all
    

Enabling NAT to expose public services of WSL (Windows Subsystem for Linux) in Windows 2022 Server using Powershell as Administrator is complete !!!

Comments

Popular posts from this blog

MongoDB Installation Ubuntu 22.04 LTS