Forum Discussion
Port Mapping on new Azure Portal
We needed to access to one of our VM via RDP protocol from a customer location where RDP ports are restricted on Firewall. I searched internet for a way to map default 3389 RDP port to 443 so I can access the VM.
Everything is showing the way on the Classical Portal where there was a functionality called End Points. Endpoints were allowing you to map internal and external ports differently.
Other resources shows that doing it with Network Security Groups (NSG) not possible.
So, if you're new in Azure and started to use Azure Portal only way to map ports is to use a Load Balancer.
1. Add a new Load Balancer. And then add a new inbound NAT rule
2. Configure the nat to ponit to the VM you wish to connect. And give the port 443 as Port number.
Thats it!
- Kent GaardmandSteel Contributorwhy would you want to map 443 (the SSL Default) to 3389, what are you trying to achieve ? I'm just curious, have you considered a Remote desktop Gateway ?
- Huseyin BilgenCopper Contributor
Hi Kent,
In general, information can be used for any port. So 3389 is an example and can be adapted to any port mapping.
Answer to your question is: Think that you needed to connect to the system where firewall prevents you to connect default RDP port. So it is not possible to setup Remote desktop Gateway.
Regards
- Kent GaardmandSteel Contributor
Hi huseyin
The RDP gateway provides en encrypted tunnel via 443 from the end user to RDP GW and once in your internal network port 3389 is used to connect to any machine you allowed on your internal network.
therefor you dont acutally need to do port mapping.
Any just wanted to suggest an alternate solution to your specific problem, the RDP gw can also use MFA and provide you with a more secure solution.
but nice contribution on showing port mapping in general.
kind regards
- Rasmus Gude GadegaardCopper ContributorHi,
I know it is now a year ago since this post was created. But I have had the exact same issue and I wrote two blog posts about it. Maybe it can be useful for you as well and maybe you can give some feedback and whether I forgot something important :-) you can find the post here: https://rasmusg.net/2017/11/20/part-1-of-2-port-forwarding-in-azure/
Have a nice day!
/rasmus - Ankit DalalCopper Contributor
Can you not just set the DNAT rule on firewall ??
Configure a DNAT rule
- Open the RG-DNAT-Test, and click the FW-DNAT-test firewall. //example
- On the FW-DNAT-test page, under Settings, click Rules. //example
- Click Add DNAT rule collection.
- For Name, type RC-DNAT-01. //example
- For Priority, type 200. //example
- Under Rules, for Name, type RL-01. //example
- For Source Addresses, type *.
- For Destination Addresses type the firewall's public IP address.
- For Destination ports, type 443
- For Translated Address type the private IP address for the virtual machine.
- For Translated port, type 3389.
- Click Add.