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-06-2004, 04:36 PM   #1
name_in_use450
Member
 
Registered: Jun 2004
Location: United States
Distribution: slackware 10.0 mostly; used many
Posts: 109

Rep: Reputation: 15
port closed/filtered?


Can someone explain the diff between a closed port and a filtered one (i know what open is )?
 
Old 09-06-2004, 04:47 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
here is a quote from unSpawn :
Quote:
1. Ask yourself what "connecting to a box" means. What do you need server-side to be able to connect to a port? An open port. What is an open port? A port that allows receiving traffic. Why does it allow receiving traffic? Because server-side there is an application which is listening on that port. What if I have a daemon running and the port registers as closed? Then there's no daemon listening, or it's firewalled. What if I have a daemon running and the port registers as filtered? Then it's firewalled. If a port is open, but is marked as filtered in nmap, can I connect to it? No. Are there any other ways to still be able to connect to a filtered port? Try reading something that includes the phrase "trusted hosts".
i'd probably consider him the "security specialist" on LQ.org

and here is more information that'll probably give you the answer your looking for :
Quote:
Open means that the target machine will accept connections on that port. Filtered means that a firewall, filter, or other network obstacle is covering the port and preventing nmap from determining whether the port is open. Unfiltered means that the port is known by nmap to be closed and no firewall/filter seems to be interfering with nmap's attempts to determine this. Unfiltered ports are the common case and are only shown when most of the scanned ports are in the filtered state.
 
Old 09-06-2004, 05:32 PM   #3
name_in_use450
Member
 
Registered: Jun 2004
Location: United States
Distribution: slackware 10.0 mostly; used many
Posts: 109

Original Poster
Rep: Reputation: 15
cool. I know you can't connect to closed or filtered I just wondering the diff. Closed is sort of like inactive? As in its open but nothing listening so its closed. Filtered just firewall dropping.
 
Old 09-06-2004, 05:52 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
if you try to connect to a filtered port... the port will reply with a message saying "go away... this machine does not accept connections on this port"

but if you try to connect to a closed port, you get no reply.... asif the machine is not turned on..

closed is generally more secure... because you apear to be offline... and the responce a filtered port gives can sue to determine info about the machine....

however, closed ports can be annoying, because with a fitered port, you will instantly know that the connection has failed... but wiith closed, you have to wait for a tcp timeout.. which can take a while.
 
  


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
closed vs. filtered ports servnov Linux - Security 3 10-01-2005 09:03 PM
port 80 filtered but y bladrag Linux - Networking 1 02-19-2004 10:28 AM
Help getting my ports filtered/closed.... BmxFace Linux - Security 3 02-04-2004 11:07 AM
filtered port juanb Linux - Security 1 01-29-2004 08:39 PM
Filtered FTP Port chrisk5527 Linux - General 1 01-05-2004 05:59 PM

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

All times are GMT -5. The time now is 08:11 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