I just portscanned my system with nmap and got the following result:
PORT STATE SERVICE
25/tcp open smtp
631/tcp open ipp
what are these services and how i do disable them? probably i don't need them.
|
feedback
|
|
Port 25 is, as your post already says, SMTP. This means there is a mailserver installed and listening to requests on your port 25. This is quite unusual on a desktop computer, propably happened accidentaly while installing another program that sends emails. Port 631 is the port for CUPS, the printer driver software. This is quite usual as it comes with the default installation. If you configure your computer for sharing printers, port 631 will always be open to the other computers, so they can use the printer. If you want to find out, which exact program is responsible for an open port, type:
replacing 25 in the example with your desired port. This should tell you which program is running. From then on, you have several possibilities. First, you can just uninstall the corresponding program, in this case the mailserver that's running. Second, if you want to keep the program, you could try just stopping the service, like so:
Please note that YMMV here, as different programs use different filenames for their services and could be started in a totally different way. Also, please note that scanning your computer from itself will reveal ports that are open only on localhost. Those are closed to the outside but need to be open to localhost, like Cups. This does not pose a security risk. | |||||||||||||
feedback
|
|
Your best bet generally is to run a firewall from day one -
Conversely, this will mean that you will install services, forget a firewall is running and wonder why nothing is working! Add smtp by simply typing You can also modify the firewall graphically :
then run the firewall manager from System/Administration/Firewall.
| |||
|
feedback
|
|
Those two services are your cups service for printer management and printing over the network. Did you enable network printing or did you find this was the case by default? | |||
feedback
|