LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 09-02-2004, 05:00 PM   #1
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
Question Nmapfe, open ports, and running services


Hello to all.

As I stated in a previous post, my knowledge of security-related topics is rather limited, so please excuse the ignorance. Back when I put Slackware on this box, I believe I turned on things like sshd and sendmail assuming I needed those to use mail and ssh (although the way I understand it now those are only if I'm hosting a mail server or allowing remote ssh logins to my machine). First I'd like to know how to turn those two off. Second, and what prompted my desire to do that... I found the utility nmapfe and ran it with the default options with root. It lists several open ports, and I just wanted to post that output here and see if anyone can give me any advice about what is normal and I shouldn't worry about and if there is anything there that might be a security issue that needs to be taken care of. Thanks in advance. Here's the output:

Code:
Interesting ports on localhost (127.0.0.1):
(The 1651 ports scanned but not shown below are in state: closed)
PORT     STATE SERVICE
22/tcp   open  ssh
25/tcp   open  smtp
139/tcp  open  netbios-ssn
587/tcp  open  submission
631/tcp  open  ipp
6000/tcp open  X11
 
Old 09-02-2004, 07:22 PM   #2
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
Im not familiar with slackware so im not sure how to close these ports but im sure a search on google will help but as for the ports


22/tcp- ssh This an ssh server it lets you connect to the machine remotely via a terminal. Its pretty safe to leave open, but if your not using it shut it down

25/tcp open smtp Mail server this is for sending email again if not using shut it down
139/tcp open netbios-ssn shut it down
587/tcp open submission its for email shut it down
631/tcp open ipp internet printing protocal shut it down
6000/tcp open X11 it allows others to connect to your x server disable it.
 
Old 09-02-2004, 09:04 PM   #3
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Original Poster
Rep: Reputation: 30
Thanks for the info. I can probably figure out how to turn off sendmail and ssh since they start at bootup, but the others I'll need some help on. Does anyone have any specifics as to how to disable any/all of these?
 
Old 09-02-2004, 09:14 PM   #4
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
ssh at boot up disable ssh
smtp disable sendmail or postfix whichever you have
netbios-ssn disable samba or any filesharing
submission disable email like sendmail postfix qmail exim etc
ipp disable cups or lpd

X11 you have to edit the configuration file for this i believe
Its either /usr/X11R6/bin/startx or where ever you X11R6 folder is it might be called XFree86Config instead of startx in there change the line that looks like
serverargs and change it to this
serverargs="-nolisten tcp"
but then again you might want to search google for exactly where this file is or man xfree86
 
Old 09-02-2004, 09:21 PM   #5
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
edit
"/usr/bin/X11/startx" and changing two lines to:

defaultserverargs="-nolisten tcp"
serverargs="-nolisten tcp"

And then editing /etc/X11/wdm/Xservers and change the line to:
local /usr/bin/X11/X -nolisten tcp

but maybe there is a newer way, like newXgroup or so .

aehm wdm being your window manager. But don't complain if you aint have no gdm kinda thingy any more.

Last edited by DrNeil; 09-02-2004 at 09:24 PM.
 
Old 09-02-2004, 09:22 PM   #6
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
init 3 control alt backspace

go console man.
 
Old 09-02-2004, 09:27 PM   #7
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
On a serious note in the old times xhost - did a lot in access control
 
Old 09-02-2004, 09:29 PM   #8
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
on a serious note i think init 5 should not even be an option like the good old dos days.
 
Old 09-02-2004, 09:48 PM   #9
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
It all went downhill when they tried to improve on my 300 Baud acoustic coupler. Internet pah BBS is king

Just portscanned an illegal login attempter.

ssh ONE on port 199 and one on 22 v2 Oracle enterprise Edition Business cracked system.

All that for porn to load faster

Last edited by DrNeil; 09-02-2004 at 09:54 PM.
 
Old 09-02-2004, 09:54 PM   #10
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
Thats right and if we had stayed there , 256K of ram would have been all we ever needed.
Rather than the now 768Megs i have and its still not enough
 
Old 09-02-2004, 09:56 PM   #11
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
LOL my ex boss thought a numeric keyboard was modern bull shit
 
Old 09-02-2004, 09:58 PM   #12
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
And my first slackware on a 386 SX. 16 minutes boot time. Oh I really miss it. Now I am outdated outclassed outnumbered.
 
Old 09-02-2004, 10:00 PM   #13
zatriz
Member
 
Registered: Aug 2003
Location: Seattle, Wa
Distribution: Fedora,Trustix,Debian
Posts: 290

Rep: Reputation: 30
I still remember the first time i installed redhat 5.2 on my 486 and got rooted in about 30 minutes with password being redhat of course.
 
Old 09-02-2004, 10:04 PM   #14
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Watching Levy-Shoemaker crashing into Jupiter on Mosaic and the ominous coffe maschine
 
Old 09-02-2004, 10:06 PM   #15
DrNeil
Member
 
Registered: Aug 2004
Location: Scotland
Distribution: Debian, Suse, Knoppix, Dyna:bolic, Mandrake [couple of years ago], Slackware [1993 or so]
Posts: 150

Rep: Reputation: 15
Yet my father was feeding wee stencil cards and casette tapes into horrible big machines.
 
  


Reply



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
Cannot Open Mail Server Ports 25, 110, and 220. Other Ports will open. Binxter Linux - Newbie 9 11-29-2007 02:03 AM
Running Nmapfe as non-root user XaViaR Linux - General 3 06-10-2005 05:04 AM
Closing ports/stopping services New2MDK Linux - General 5 02-15-2005 12:24 PM
how 2 get ports having services currently running 00it45 Linux - General 5 03-11-2004 07:59 AM
Slackware n()()b and closing open ports/services osx Slackware 8 03-10-2003 12:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:52 PM.

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
Open Source Consulting | Domain Registration