Skip to contentSkip to conversation

Routing decision after FORWARD

DISCUSSION Ivan Dubrov 2 participants 3 messages Jun 27, 2007 – Jun 30, 2007

lore
Share & tools
lore
#1 lore raw

Ivan:

There are three escenaries:

(1) Packets destined to our machine
(2) Packets originated inside our machine
(3) Packets forwarded

The table only have a reference to escenary (1) and the diagram after the tables hits all escenaries.

Not all packets traverse all chains, that depends on the escenary.

Hope this helps,

Jorge Dávila.

Quoted 11 lines · Ivan Dubrov

Hello,

Look here:
http://iptables-tutorial.frozentux.net/iptables-tutorial.html#TRAVERSINGGENERAL

According to the diagram, there is routing decision after filter/FORWARD. However, according to the tables before, there is no such routing (there is only one routing before mangle/FORWARD). The question is, which one is correct?

Signature · 4 lines
Jorge Isaac Davila Lopez
Nicaragua Open Source
+505 430 5462
[email protected]
#2 lore raw

There are three escenaries:

Quoted 10 lines

(1) Packets destined to our machine
(2) Packets originated inside our machine
(3) Packets forwarded

The table only have a reference to escenary (1) and the diagram after the tables hits all escenaries.

Not all packets traverse all chains, that depends on the escenary.

I'm was already told that both are correct. There are two routing decisions for forwarded packets (as it is drawn on the diagram) and the second routing decision is mentioned in the table 6-3, step 8. However, it is not clear, what kind of rules could be applied during the second routing decision. The same as in first decision? In that case, does that mean that I can set mark on the packet during the mangle/FORWARD and route that packet to self in the second routing decision? And it will traverse the table again, this time through INPUT chains?

Anyway, I've found easier solution for my needs, so these questions are just for curiosity. :)

Signature · 2 lines
WBR,
Ivan S. Dubrov