LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   Open a port but no service. (https://www.linuxquestions.org/questions/linux-security-4/open-a-port-but-no-service-4175645232/)

hack3rcon 12-30-2018 02:49 PM

Open a port but no service.
 
Hello.
Can open a port but no service run on it cause a security problem? Nmap can detect that port is open but no service run on it.

Thank you.

lazydog 12-30-2018 03:14 PM

Are you sure there are no service running? You can check it with the following code:

Code:

netstat -plnt | grep <port#>

TB0ne 12-30-2018 03:28 PM

Quote:

Originally Posted by hack3rcon (Post 5942939)
Hello.
Can open a port but no service run on it cause a security problem? Nmap can detect that port is open but no service run on it.

Thank you.

Sorry, no...ports don't 'open' unless a service is running to actually OPEN IT. Does this tie in with your (going on five) other threads now about some generic security issue???

berndbausch 12-30-2018 06:18 PM

Quote:

Originally Posted by TB0ne (Post 5942945)
Sorry, no...ports don't 'open' unless a service is running to actually OPEN IT.

Well the OP probably means “open in the firewall”.

Should not be a problem, until somebody runs a listener by mistake or malice. Normally there is no reason to leave unused ports open in the firewall, so the question is somewhat moot, I think.

scasey 12-30-2018 06:55 PM

Quote:

Originally Posted by berndbausch (Post 5943033)
Well the OP probably means “open in the firewall”.

Should not be a problem, until somebody runs a listener by mistake or malice. Normally there is no reason to leave unused ports open in the firewall, so the question is somewhat moot, I think.

While I don't disagree with your analysis, I'd suggest there's not much hope of guessing what this OP "probably" means about anything.

Note that if one isn't running a firewall at all, all ports are "open," but as you say, there's no harm if nothing is listening on the open port.


All times are GMT -5. The time now is 11:18 PM.