Unable to open port on ubuntu 18.04

sKy 1 Reputation point
2020-07-28T10:20:34.053+00:00

Hey
I am unable to open ports on ubuntu 18.04. i have disabled ufw on vm and opened all ports on azure networking panel. but still all ports all closed except 22.13946-screenshot-1.png14027-screenshot-2.png14054-screenshot-3.png

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,196 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,178 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 97,566 Reputation points MVP
    2020-07-28T16:14:39.457+00:00

    The screenshots are from the VM associated NSG (In- and Outbound)?
    Is there any other NSG associated with the subnet?

    You should check the effective Security Rules -> VM -> Networking

    13979-nsg.png

    Maybe this is helpful.

    Regards

    Andreas Baumgarten

    (Please don't forget to Accept as answer if the reply is helpful)


  2. Manu Philip 16,986 Reputation points MVP
    2020-07-28T16:47:15.173+00:00

    Hi,
    Could you please try the following way of allowing ports through ufw

    1. Enable: sudo ufw enable
    2. Check status: sudo ufw status verbose
    3. Check the status of incoming and outgoing connections status and make necessary changes
      sudo ufw default allow incoming
      sudo ufw default allow outgoing