LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-21-2003, 05:06 PM   #1
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
nmap simple questions


I just updated nmap and got the front end running. I am running it and it shows 3 open ports, I dont know if its safe to show them.
Can i post the ports and what they are so i can get some feedback if they should be open or not?

also..

Does my computer have to be connected to the internet for nmap to run properly if running on the save system?

thanks
 
Old 09-21-2003, 05:11 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Sure you can post the ports. To get an idea of what they are yourself you can loook at the netstat output:
netstat -nlp

Also look at iana:
http://www.iana.org/assignments/port-numbers

I can;t see why your computer would need to be connected but you will need to make sure you are scannling a local device with an ip address if you have some sort of modem that doesn't have an IP then you can't scan it at that point.
 
Old 09-21-2003, 05:18 PM   #3
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
After i run nmap I get this:

22/tcp open ssh
631/tcp open ipp
6000/tcp open X11

does this look normal, I am just trying to get my linux box secure so i can get it back on the internet as soon as possible.

Also, I ran a scan from http://scan.sygatetech.com
and one of the scans (tcp) showd that it can connect to port 88 and gave me a insecure message so i closed almost every service running and ran it again and the same thing happend.

Thanks
 
Old 09-21-2003, 05:41 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
It depends on what you use the box for - personnalyI leave ssh running sice I want to access the CLI remotely. If you don't need to then firewall it off. Leaving an X server open is a bit insecure an if you don;t need to run X applications from remote machines then you can firewall it too. ipp is used for network printing so if you don;t intend to be a printer server for other machines then again it is un needed. Port 88 is used byt he kerberos authentication system so you may/may not need it running depending on the use of the server. You may find that some ports that appear open from the net are actually on proxy servers in between.
 
Old 09-21-2003, 06:16 PM   #5
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
Its just a single user box, its not on a network other than a 4 port router but i dont connect the computers to each other, its just so they can share internet connection, no server printing or anything like that. I just use it for browsing the internet and basic stuff.

I dont know what SLI, Xserver, or kerboros auth. service are. I dont think i need any of those. I tried to block port 88 with firestarter but it did not block it. Is there a easy way to close ports? thanks
 
Old 09-21-2003, 06:23 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Fire starter is a frontend for iptables and I would assume it is doing its job. My guess is that port 88 is on some sort of ISPs proxy in the middle.

Not sure what SLI is either.

An Xserver is required to run graphical applications so you need it if you use kde/gnome etc. You can firewall it off ot external hosts though.
 
Old 09-21-2003, 06:35 PM   #7
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
OH.... I just stopped some more services from runnning and now the only port nmap says open is the X11. I guess i got lucky i was just reading the descriptions of the services and guessing whether i needed them or not then shutting them down. Then only one i dont know if i need is XINETD can i stop that from running? Thanks
 
Old 09-21-2003, 06:40 PM   #8
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Xinetd controls serveral services so I would leave it running.
 
Old 09-21-2003, 06:46 PM   #9
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Original Poster
Rep: Reputation: 46
Ok, thanks for the info
 
  


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
nmap ? how do i do nmap in linux ? command not found abbasakhtar Linux - Newbie 2 01-02-2011 01:08 AM
Simple Questions...Hopfully Simple Answers. caps_phisto Linux - General 3 12-21-2004 12:40 PM
Simple Questions muzicman82 Linux - General 4 01-15-2004 01:14 AM
2 Simple Questions The Bag Linux - Newbie 3 10-20-2002 06:36 PM
Two simple questions M.I. Linux - General 3 07-12-2001 10:27 AM

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

All times are GMT -5. The time now is 05:20 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
Open Source Consulting | Domain Registration