Skip to contentSkip to conversation

linux NETWORKING diagram ?

LARTC [email protected] 4 participants 9 messages Jul 22, 2002 – Jul 25, 2002

lore
Share & tools
lore
#0 lore raw

Hi,

is there a full diagram of the whole path of the PACKET trought the linux-kernel i.e something like this :
http://netfilter.samba.org/unreliable-guides/packet-filtering-HOWTO/packet-filtering-HOWTO.linuxdoc-6.html

but including the all the stuff that got touched from "ip(route)", "iptables", "tc" and the desicion making for choosing the correct path .... If there is someone to explain it I will draw it if nececary :")

[email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 10 lines · On Monday 22 July 2002 21:41, [email protected] wrote:

Hi,

is there a full diagram of the whole path of the PACKET trought the linux-kernel i.e something like this :
http://netfilter.samba.org/unreliable-guides/packet-filtering-HOWTO/packet-
filtering-HOWTO.linuxdoc-6.html

but including the all the stuff that got touched from "ip(route)", "iptables", "tc" and the desicion making for choosing the correct path .... If there is someone to explain it I will draw it if nececary :")

I have a drawing that was posted once on this list. You can find it on www.docum.org under KPTD. Plz feel free to send me updates.

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#2 lore raw
In reply to [email protected]

Hello!

I have made one diagram for the IPv6 stack if that interests anybody, for download at:

www.sics.se/~gabriel/funccalls.pdf

The Netfilter hooks are marked out as well, on this diagram.

Cheers!

/gabriel

Quoted 8 lines · On Mon, 22 Jul 2002 [email protected] wrote:

Hi,

is there a full diagram of the whole path of the PACKET trought the linux-kernel i.e something like this :
http://netfilter.samba.org/unreliable-guides/packet-filtering-HOWTO/packet-filtering-HOWTO.linuxdoc-6.html

Quoted 7 lines

but including the all the stuff that got touched from "ip(route)", "iptables", "tc" and the desicion making for choosing the correct path .... If there is someone to explain it I will draw it if nececary :")

[email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to [email protected]


|
|I have a drawing that was posted once on this list.  You can find it on 
|www.docum.org under KPTD.  Plz feel free to send me updates.

OK. I've made the diagram in Dia (attached). U can easly export it in any format (any linux distro have Dia, i think)...

I made some changes may be they are wrong, pls correct me... I thought that all "mangle" and "nat" stuff should be "IPTABLES", and all "ipchains" suff should go away !! ?

- What is "mark-rewrite" ?!
- there is something which have to be added somewhere around "forwarding", can't figure out what/where ?! Pls do it, or tell me i wil do it?
- in my opinion (6a.3) output-routing should go at the place of (7) !!! 'm I right ?

[email protected]

#4 lore raw
In reply to [email protected]
Quoted 9 lines · On Tuesday 23 July 2002 20:27, [email protected] wrote:

|I have a drawing that was posted once on this list. You can find it on |www.docum.org under KPTD. Plz feel free to send me updates.

OK. I've made the diagram in Dia (attached). U can easly export it in any format (any linux distro have Dia, i think)...

I made some changes may be they are wrong, pls correct me... I thought that all "mangle" and "nat" stuff should be "IPTABLES", and all "ipchains" suff should go away !! ?

Ipchains is still available in the 2.4 kernel.

Quoted 1 line

- What is "mark-rewrite" ?!

Don't know.

Quoted 4 lines

- there is something which have to be added somewhere around "forwarding", can't figure out what/where ?! Pls do it, or tell me i wil do it? - in my opinion (6a.3) output-routing should go at the place of (7) !!! 'm I right ?

Stef

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#5 lore raw
In reply to [email protected]


|> I made some changes may be they are wrong, pls correct me... I thought that
|> all "mangle" and "nat" stuff should be "IPTABLES", and all "ipchains" suff
|> should go away !!  ?
|Ipchains is still available in the 2.4 kernel.

]- Yes but it is just module that runs on top of iptables, afaik ? i.e. it uses iptables infrastructure

[email protected]
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#6 lore raw
In reply to [email protected]
Quoted 8 lines · On Tuesday 23 July 2002 21:29, [email protected] wrote:
|> I made some changes may be they are wrong, pls correct me... I thought
|> that all "mangle" and "nat" stuff should be "IPTABLES", and all
|> "ipchains" suff should go away !!  ?
|
|Ipchains is still available in the 2.4 kernel.

]- Yes but it is just module that runs on top of iptables, afaik ? i.e. it uses iptables infrastructure

Mhh. I'm not a kernel specialist, but I thought there was still some ipchains code in the 2.4 kernel.

Staf

Signature · 7 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#7 lore raw
In reply to [email protected]

Hi.

Quoted 1 line · You

OK. I've made the diagram in Dia (attached). U can easly export it in

any format > (any linux distro have Dia, i think)...

Could you post your diagram in ascii?

Quoted 1 line

I made some changes may be they are wrong, pls correct me... I thought

that all > "mangle" and "nat" stuff should be "IPTABLES", and all "ipchains" suff should go > away !! ?

As I understand there is some ipchains original code running on iptables; but not iptables code to emulate ipchains behavior, just ipchains filter code. Have a look to LARTC digest, Vol 1 #641, #642, #651, #652 and #655.

Quoted 1 line

- What is "mark-rewrite" ?!

It would be better "mark-write".

It's mark packet writing in mangle table (fwmark). This mark survive just inside host or router that makes the mark (the packet is not really marked when it leaves the router).

Quoted 1 line

- there is something which have to be added somewhere around

"forwarding", can't > figure out what/where ?! Pls do it, or tell me i wil do it?

Quoted 2 lines

- in my opinion (6a.3) output-routing should go at the place of (7) !!! 'm I right ?

I haven't your diagram. BTW, diagram misses some hooks (must be added):

conntrack PREROUTING just before mangle PREROUTING. conntrack INPUT after filter INPUT but before LOCAL PROCESS. mangle INPUT after conntrack INPUT also before LOCAL PROCESS. mangle FORWARD before filter FORWARD.
conntrack OUTPUT before mangle OUTPUT but after OUTPUT ROUTING. mangle POSTROUTING before nat POSTROUTING.
conntrack POSTROUTING after nat POSTROUTING but before QOS EGRESS.

when discussion matures I will post this changes to Stef.

Best regards,

Leonardo Balliache

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#8 lore raw
In reply to [email protected]

Dia has no ASCII export so I'm posting compressed .png

|Hi.
|
|You wrote:
|
| > OK. I've made the diagram in Dia (attached). U can easly export it in 
|any format > (any linux distro have Dia, i think)...
|
|Could you post your diagram in ascii?
|