5

I have created an ubuntu image in windows azure vm. I am trying to open port 7171 to the outside world. how can I do it?

I have tried issue the iptables command but it did not work, not sure if I did not use it correctly or there is azure level setting to set?

EDIT: maybe it is opened only on localhost and not to the world? how can I verify that?

2
  • can you give us the output of iptables-save?
    – Zypher
    Jul 11, 2012 at 18:32
  • the output is empty. tried to redirect output with > but still empty Jul 11, 2012 at 18:39

3 Answers 3

4

You'll need to add it as an endpoint instead. From the Windows Azure preview portal, select Virtual Machines -> Your virtual machine. Then click the endpoints tab and finally New. You can see there that only SSH port is open by default.

1
  • 2
    How can do this in New Portal,
    – mesut
    Jan 23, 2016 at 13:12
16

Using Azure's new portal:

  1. Open your VM.
  2. Go to Network interfaces in the Settings window
  3. Click on your network interface
  4. In the network interface window, there is a "Network security group" section
  5. In the network security group's settings click on "Inbound security rules"
  6. Add a new rule

I'm not sure if there is a shorter way of getting there.. Next time I'll make sure to set up my ports when creating a VM.

1

In the newer version of the Azure portal (v3) the steps are slightly different now. If you select virtual machines from the left menu and then select a specific VM and then select Networking you can add inbound/outbound rules for specific ports for each VM.

screenshot #1

    ss #1

screenshot #2

    ss #2

References

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .