Networking Forums

Networking Forums > Computer Networking > Linux Networking > Newbie Question -- iptables flow of control

Reply
Thread Tools Display Modes

Newbie Question -- iptables flow of control

 
 
Bob Simon
Guest
Posts: n/a

 
      01-28-2004, 05:22 PM
I don't understand what happens to packets after they match a rule in
a chain. According to the packet filtering howto, if a packet matches
a statement with -j DROP, the packet is killed right there. I presume
that means that the packet is not tested against any other rules;
right?

After a packet matches a rule with -j ACCEPT, does the packet then
continue down to the next rule in that chain, or are all the other
rules in that chain skipped and flow of control transfers back to the
calling chain?
 
Reply With Quote
 
 
 
 
Lew Pitcher
Guest
Posts: n/a

 
      01-28-2004, 05:30 PM
Bob Simon wrote:

> I don't understand what happens to packets after they match a rule in
> a chain. According to the packet filtering howto, if a packet matches
> a statement with -j DROP, the packet is killed right there. I presume
> that means that the packet is not tested against any other rules;
> right?


Correct. Processing of the packet stops there. The packet is discarded as if
it had never been received.

> After a packet matches a rule with -j ACCEPT, does the packet then
> continue down to the next rule in that chain, or are all the other
> rules in that chain skipped and flow of control transfers back to the
> calling chain?


Neither. -j ACCEPT says to pass the packet /unconditionally/ on to the
internal network. With "-j ACCEPT", you've stated that you do not need any
further tests to determine whether or not the packet is acceptable; the
packet is acceptable entirely because you "-j ACCEPT" it.

--
Lew Pitcher, IT Consultant, Application Architecture
Enterprise Technology Solutions, TD Bank Financial Group

(Opinions expressed here are my own, not my employer's)

 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Flow Control on Serial Device Paul Pridt Linux Networking 13 04-25-2007 03:08 AM
Gigabit Ethernet and Flow Control ChrisW Windows Networking 0 06-22-2006 03:02 PM
Question about flow control over ethernet with TCP C. J. Clegg Linux Networking 3 05-06-2006 10:30 PM
Simple Question? - Flow Control =?Utf-8?B?R2FyeQ==?= Windows Networking 1 11-16-2004 03:58 AM
flow control - untypical, and very urgent! OM Linux Networking 0 07-01-2003 12:17 AM



1 2 3 4 5 6 7 8 9 10 11