what could be blocking port 5060 on my ubuntu 14.04?
The output you provided actually means that port 5060
is open and nothing is blocking it, because you got Connected to 192.168.0.5
. But the connection got terminated by the destination host as soon as it was created, that's why it directly goes to Connection closed by foreign host
. This is probably because the program that is listening on that port is expecting some data as soon as a connection was created, or maybe the program needs to be configured in a different way.
If a port is being blocked (or is not open), you will never see Conneted to <IPaddress>
, but you'd see something like this:
Trying <IPaddress>...
telnet: Unable to connect to remote host: Connection refused
You did the right thing by checking iptables
, but since there are no rules blocking the traffic, you can further verify that the server in fact has port 5060
open by executing the following command:
netstat -ntlup | grep 5060
You should see an output like this:
tcp 0 0 0.0.0.0:5060 0.0.0.0:* LISTEN
Related videos on Youtube
sineverba
Updated on September 18, 2022Comments
-
sineverba over 1 year
I created a default nginx webserver in this location:
/var/www/domapi/html
root
indefault
isroot /var/www/domapi/html;
I want to store certificates and other private files in a location accessible from my
$USER:www-data
that can upload, delete and create files (right permission).Is it secure to use
/var/www/domapi/private
?Of course I will assign right permission for that folder
/private
.Because I did not get any answer, I re-ask different... With a root folder in file default as
root /var/www/domapi/html;
, is accessible from internet the folder/var/www/domapi/private
or no? I think no but I'm looking for an expert answer.Thank you
-
D.Zou over 9 yearsThanks Alaa, we found out that our sip application that is suppose to listen on 5060 is not listening on it for some reason. thanks for your help.