LinuxQuestions.org
Review your favorite Linux distribution.
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-17-2007, 01:30 PM   #1
drudge
Member
 
Registered: Dec 2006
Posts: 36

Rep: Reputation: 17
Newb: Protocols - blocked or rejected


Hi I've always used Guarddog on my single home desktop.
It's only just occured to me that I don't know the difference
between a blocked and rejected protocol.
I've always set un-needed protocols as blocked.
Just wondering if someone could give a 'simple' explanation
of the difference.
Thanks
 
Old 09-17-2007, 01:57 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
With iptables you can filter packets with either the DROP or REJECT targets. Since Guarddog is an iptables front-end, I assume by "blocked" they mean "sent to DROP". Anyhow, here's the differences between the two, straight from Oskar Andreasson's famous iptables tutorial:

Quote:
The DROP target does just what it says, it drops packets dead and will not carry out any further processing. A packet that matches a rule perfectly and is then Dropped will be blocked. Note that this action might in certain cases have an unwanted effect, since it could leave dead sockets around on either host. A better solution in cases where this is likely would be to use the REJECT target, especially when you want to block port scanners from getting too much information, such as on filtered ports and so on. Also note that if a packet has the DROP action taken on it in a subchain, the packet will not be processed in any of the main chains either in the present or in any other table. The packet is in other words totally dead. As we've seen previously, the target will not send any kind of information in either direction, nor to intermediaries such as routers.

Quote:
The REJECT target works basically the same as the DROP target, but it also sends back an error message to the host sending the packet that was blocked. The REJECT target is as of today only valid in the INPUT, FORWARD and OUTPUT chains or their sub chains. After all, these would be the only chains in which it would make any sense to put this target. Note that all chains that use the REJECT target may only be called by the INPUT, FORWARD, and OUTPUT chains, else they won't work. There is currently only one option which controls the nature of how this target works, though this may in turn take a huge set of variables. Most of them are fairly easy to understand, if you have a basic knowledge of TCP/IP.

Last edited by win32sux; 09-17-2007 at 02:00 PM.
 
Old 09-17-2007, 03:16 PM   #3
drudge
Member
 
Registered: Dec 2006
Posts: 36

Original Poster
Rep: Reputation: 17
Quote:
Originally Posted by win32sux View Post
With iptables you can filter packets with either the DROP or REJECT targets. Since Guarddog is an iptables front-end, I assume by "blocked" they mean "sent to DROP". Anyhow, here's the differences between the two, straight from Oskar Andreasson's famous iptables tutorial:
Thanks, that's got me started.
I'll have a look through that BIG tutorial.
It certainly looks as though it covers just about everything.
Thanks again.
 
  


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
Why is multicast protocols designed in Layer 3 when routing protocols in L5 vineeth_thampi Linux - Networking 2 07-04-2006 05:23 PM
Regarding routing protocols nedian123 Linux - Networking 2 04-04-2005 02:16 PM
multicasting protocols 98steve600 Linux - General 1 03-28-2005 03:38 AM
Suse Newb: Not Linux Newb rodericj SUSE / openSUSE 9 03-25-2005 10:03 AM
The first step to ascending newb status, acknowledging you're a newb :P LordRaven LinuxQuestions.org Member Intro 1 08-24-2004 05:05 PM

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

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