PORT FORWARDING FOR VM AZURE

Kvmanh - bkas 0 Reputation points
2023-09-06T08:21:26.38+00:00

Dear Guys.

I'm a new bie.

I installed a VM on my Azure.

On My VM, I run Modbus slave service ( Port 502). I need to port forwarding for VM in order to modbus master fom internet can connect to it.

I tried add inbound for port 502, but it seem be not enough.

What do I need to do more?

Please help me?

Best

Azure VMware Solution
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
357 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sam Cogan 10,742 Reputation points MVP
    2023-09-06T08:43:32.62+00:00

    You would need to:

    1. Ensure your VM has a public IP
    2. Add an NSG rule to allow traffic on port 502 from the internet to your VM]
    3. Ensure any firewall on the VM its self allows port 502 inbound
    0 comments No comments

  2. Olga Os - MSFT 5,921 Reputation points Microsoft Employee
    2023-09-11T17:40:46.57+00:00

    Hello Kvmanh - bkas,

    If your end goal to connect to a specific VM by using the Load Balancer frontend IP address and port number, you could create the NAT rule to forward the Traffic to your VM.

    Reference: Manage port forwarding for backend pool with Azure Load Balancer.

    Sincerely,

    Olga Os.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.