Go Back   Dedicated Server Hosting | VPS Hosting | Virtual Private Servers Forum > Support > Linux Server Hosting
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-09, 11:45
BOD Member
 
Join Date: Mar 2009
Posts: 24
Smile A simple nmap tutorial for you..

I thought that I would write a small nmap tutorial for you so that you know how to do a thorough port scan on your own Linux dedicated server to check if there are any services running that you don't want.

So, there are two basic scan types

Code:
nmap -sS
Code:
nmap -sT
The -sS option will perform a syn scan
The -sT will perform a TCP (connect) scan

There are more advanced scans to try but they are out-with the scope of this tutorial =)

So, to get a port scan running on your own machine, simply issue one of the above commands with 127.0.0.1 as the host, eg

Code:
nmap -sS 127.0.0.1
nmap will output something like this

Code:
Starting Nmap 4.01 at 2006-07-06 17:23 BST
Interesting ports on chaos (127.0.0.1):
(The 1668 ports scanned but not shown below are in state: closed)
PORT     STATE SERVICE
21/tcp   open  ftp
22/tcp   open  ssh

Nmap finished: 1 IP address (1 host up) scanned in 0.207 seconds
This will show you the services that nmap found. It's up to you to figure out if you want to keep the services running, or to close them down.

Good luck.
Reply With Quote
  #2 (permalink)  
Old 03-08-09, 07:05
BOD Member
 
Join Date: Jan 2009
Posts: 73
Default

nmap is a fantastic tool, but it doesn't always give you the name of the service that's running, in cases where you find a random port number that's open you might want to check wikipedia's list of port numbers to find out the service that's running on that port.

Last edited by php_rules : 03-08-09 at 10:39.
Reply With Quote
  #3 (permalink)  
Old 03-08-09, 07:13
Moderator
 
Join Date: Mar 2009
Posts: 363
Default

Helpful link.. Thanks!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 10:43.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2008, BODHost.com. All rights reserved.