LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-27-2004, 10:07 PM   #1
nectron101
Member
 
Registered: Nov 2004
Distribution: SuSE 9.1 Personal
Posts: 41

Rep: Reputation: 15
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
 
Old 11-27-2004, 10:55 PM   #2
pingswept
Member
 
Registered: May 2003
Location: Cambridge, MA
Distribution: SuSE, RedHat, and OpenBSD
Posts: 116

Rep: Reputation: 15
Start YaST.

System > RunLevel Editor

Select the services you want to stop.

Click disable.

Click finish.
 
Old 11-27-2004, 11:21 PM   #3
nectron101
Member
 
Registered: Nov 2004
Distribution: SuSE 9.1 Personal
Posts: 41

Original Poster
Rep: Reputation: 15
thanks.. that was helpful

But I can't find SMTP

it's not in the list

is there a way to turn that off?
 
Old 11-28-2004, 12:22 AM   #4
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 18, 19, RHL 5.2
Posts: 546

Rep: Reputation: 43
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Close Ports janderson622 Linux - Security 21 01-04-2007 06:59 PM
Which of these ports can I close? buddhahat Linux - Security 6 06-13-2005 08:40 AM
how to close ports hudy Linux - Security 4 06-23-2004 01:07 PM
How do I close ports ksgill Linux - Newbie 9 10-09-2003 10:06 PM
how do i close ports. KidTonz Linux - Security 3 12-18-2001 03:43 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration