Reputation: 23
I am unable to access an azure Ubuntu VM's web app on port 8080. The VM is linked to a Virtual Network, where the network security group has inbount rules configured for 8080, and the ubuntu firewall has been disabled(ufw).
Here are the details:
The allowed rules for port 8080 in the network security group :
The firewall has been disabled on the vm :
Please advise what else is required to make it work.
The request however works if an inbound rule of allow-all (*) is added instead of a particular port (8080), which defeats the purpose of security.
Thanks, Cheers -Gary
Upvotes: 0
Views: 2469
Reputation: 23
It was my mistake of wrongly configuring the nsg ingress to match the port number (eg : 8080) instead of matching the source port to *.
The protocol - source and destination host:port combination where therefore wrongly setup.
It all works now after correcting it.
Upvotes: 0
Reputation: 23
Thanks Nancy,
It appears that the port 8080 is listening to all addresses (but maybe on IPv6?)
Not sure what else am i missing.
Upvotes: 0
Reputation: 28304
From your description, here are some possible reasons:
0.0.0.0:*
. You could try to run the command sudo netstat -alpn | grep LISTEN
on the Azure VM to validate it. If not, you could find what's real IP of the application consumed.virtual machine --- networking
.Let me know if you need further help.
Upvotes: 0