LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How can I close ports? (https://www.linuxquestions.org/questions/linux-networking-3/how-can-i-close-ports-259992/)

nectron101 11-27-2004 10:07 PM

How can I close ports?
 
Hello!

I have the following ports open..

Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-11-27 20:59 PST
Interesting ports on localhost (127.0.0.1):
(The 1655 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
111/tcp open rpcbind
631/tcp open ipp


and since I don't need ssh nor smtp.. I'd like to turn them off

how can I do that?

I'm using SuSE 9.1 personal

pingswept 11-27-2004 10:55 PM

Start YaST.

System > RunLevel Editor

Select the services you want to stop.

Click disable.

Click finish.

nectron101 11-27-2004 11:21 PM

thanks.. that was helpful

But I can't find SMTP

it's not in the list

is there a way to turn that off?

wmakowski 11-28-2004 12:22 AM

Technically that will stop the service, but not close the port. To close the port you would comment out the corresponding entry in the /etc/services file. Shutting down the service or daemon will keep incoming data from being processed by the intended application. Another option would be to set up a firewall to prevent access to the port.

SMTP - Simple Mail Transfer Protocol is used by the sendmail service. You may not want to stop this service since log messages are sometimes sent to the root user using email.

Bill


All times are GMT -5. The time now is 07:01 AM.