Access remote desktop via VPN running on docker container

Rajesh Badveti 6 Reputation points
2020-06-17T14:02:55.92+00:00

Hello All,

Docker for Desktop is running on my MAC PC

I have a docker container which has the VPN running with port 22 on container exposed to host PC as 40022, so I could SSH to the hosts on the VPN network using the container as jump host.

I also have the requirement to access the remote desktop running on the host over VPN network, for this I have also exposed both the ports 3389, 5901 on container as 40023 and 40024 respectively.

Now I tried to access a Windows PC using the Microsoft Remote Desktop application with Gateway set as localhost:40023 or 40024 but not possible.

However I can access the remote desktop when connected to VPN directly (without container as gateway) on my MAC PC

Please let us know if there is a way to achieve this ?

Thanks,
Rajesh Badveti

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,450 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. TravisCragg-MSFT 5,681 Reputation points Microsoft Employee
    2020-07-18T02:18:46.14+00:00

    As this is not with Azure VPN Gateway, but with Docker and Windows, your best bet is to follow up with those services.

    0 comments No comments