Packet chain traversals

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Joel,

On Sun, 27 Oct 2002, Joel Newkirk wrote:

> I've been working on a chain traversal diagram (primarily for my own reasons, 
> but if anybody likes it they are welcome to use it non-commercially) and have 
> a few questions.
> 
> First, the current form of the diagram is (temporarily) at 
> http://newkirk.no-ip.org:83/Traversal-sm.png

Mmmmm, reminds me of that trip on LSD I took the other day.... =) just 
kidding. It does look good really, except you made it rather confusing in 
one aspect... I don't know if it's just me, but why do you have two "out" 
and two "in"?

> and the basic rule is that a packet cannot cross a black line.  The choices of 
> colors are meaningless, except to differentiate chains.
> 
> I know that the 'latest' form of netfilter has mangle AND filter chains for 
> forward and input, and mangle, nat, and filter chains for output.  (Yeah, the 
> diagram would be even more confusingly complicated with that detailed :^)
> 
> Can someone offer some examples of uses for mangle-forward, mangle-input, 
> mangle-output, and nat-output?  I can't see much use for them, but my use of 
> iptables has been fairly simple so far, and most of my comprehension is based 
> on the previous version of the tutorial. (and absorbing the gobs of 
> information embedded in messages here :^)
> 
> Also, I wanted to ask for clarification on a point in the latest 
> iptables-tutorial "Traversing of tables and chains" section:  At one point it 
> seems that packets pass through mangle-forward THEN filter-forward, (diagram) 
> yet elsewhere it seems to be the reverse. (table 1)  Which is correct?

I just fixed this today actually. If you want to make absolutely certain, 
run the script attached to the tutorial (I added an updated version to 
this mail since the one in the released tutorial doesn't contain the 
mangle5hooks.patch fixes), tail -f the proper logfile 
and then send ping's from different locations and directions (e.g., ping 
across the firewall, ping to the firewall and ping from the firewall). 
That way you will be able to make sure how it works.

> 
> Thanks for any input, examples, diagram criticism (artistic or logical) etc.  
> If your response seems to you to be useless to the list in general then 
> please just send it to me directly.

no problem. Don't take me too seriously though, I am a lousy "artist" 
so... :)

> 
> j
> 
> 

-- 
----
Oskar Andreasson
http://www.frozentux.net
http://iptables-tutorial.frozentux.net
http://ipsysctl-tutorial.frozentux.net
mailto:blueflux@koffein.net




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux