question

AttilaGulyas-4782 avatar image
0 Votes"
AttilaGulyas-4782 asked GitaraniSharmaMSFT-4262 edited

Azure inbound TCP port rules don't work (with minor exceptions)

This issue has been mentioned so many times (or variants of it; e.g. port resets itself over time), but none if this works with new Ubuntu Server 20.04 VM for me.

Trying to open TCP ports 80 and 443, but the only one that gets opened is TCP 22 that was specified during creation. None of the following workarounds work:

  • delete and re-create rule with same values

  • dissociate/associate NSG

  • create new NSG with exact same value, dissociate original NSG, and associate the new one

Waited at least 30 mins after each workaround, no joy. I also don't think that rule propagation is the issue, because if I enable ICMP, then pinging works immediately.



azure-virtual-network
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AttilaGulyas-4782 avatar image
0 Votes"
AttilaGulyas-4782 answered

Alright, I am/was an idiot. Kept getting

$ nc -zv 1.2.3.4 80
nc: connect to 1.2.3.4 port 80 (tcp) failed: Connection refused

$ nc -zv 1.2.3.4 443
nc: connect to 1.2.3.4 port 443 (tcp) failed: Connection refused


but that just means that nothing is listening on the server side; if the rules would block, there would be no output, and netcat would seemingly just hang.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.