PDA

View Full Version : nmap


rikuume
4th December 2004, 05:18 AM
Just wondering about something I got from nmap. It seems to be showing my port 80 as closed... how is this? Wouldnt I be unable to use any http?

[root@localhost nmap3.75]# nmap -p 80 127.0.0.1

Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2004-12-03 20:41 PST
Interesting ports on localhost.localdomain (127.0.0.1):
Warning: File ./nmap-services exists, but Nmap is using /usr/local/share/nmap/nmap-services for security and consistency reasons. set NMAPDIR=. to give priority to files in your local directory (may affect the other data files too).

PORT STATE SERVICE
80/tcp closed http

Nmap run completed -- 1 IP address (1 host up) scanned in 0.112 seconds

Thanks for the help :D

sideways
4th December 2004, 05:24 AM
try

'http://127.0.0.1' from your web browser, you'll probably see 'connection refused' or similar.

You aren't running a web server, if you start httpd then you'll open port 80

(and you'll probably get some default page in your web browser)

rikuume
4th December 2004, 06:48 AM

try

'http://127.0.0.1' from your web browser, you'll probably see 'connection refused' or similar.

You aren't running a web server, if you start httpd then you'll open port 80

(and you'll probably get some default page in your web browser)

Nope dont have httpd even installed, but I thought that port 80 would have to be open just to cruise the internet since it runs through port 80 *shrugs* does it work differently than Im thinking?

Daemon
4th December 2004, 03:52 PM
You dont open port 80 to view websites, the websites have port 80 open to accept incoming connections. You open a random port (ie: 33756) in order to connect to website. If you were to run a website you would have need to open 80 to allow outside people to see it.
Not the best explanation (english aint my main language) but i hope you understand :)

rikuume
4th December 2004, 10:32 PM
You dont open port 80 to view websites, the websites have port 80 open to accept incoming connections. You open a random port (ie: 33756) in order to connect to website. If you were to run a website you would have need to open 80 to allow outside people to see it.
Not the best explanation (english aint my main language) but i hope you understand :)

*nods* understand just fine. Thanks for the explanation, didnt know that it was a random port to view.

Thanks again!

:D

Jman
6th December 2004, 07:35 AM
Actually, a firewall in this sense is a one way mirror. It lets applicaions like web browsers access what they want. The replies come through because you requested them. But people trying to access a web server on your machine will get denied.