Skip to contentSkip to conversation

No PREROUTING for OUTPUT?

DISCUSSION George Alexandru Dragoi 2 participants 3 messages Oct 17, 2004 – Oct 18, 2004 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

The routing decision is done after OUTPUT chains in both nat and mangle tables, and before POSTROUTING of course. Is this what you meant?

Quoted 8 lines · Kenneth Porter

Can anyone confirm that the PREROUTING chain is absent from the OUTPUT packet path? I wanted to tag my UDP packets with TOS Minimize-Delay so that they'd go in my high-priority traffic shaping queues, but if PREROUTING isn't used in the output path, the packets can't be tagged until after they've been through the shaper. (Isn't the shaper part of "routing decision" in the diagrams?)

Signature · 1 line
Bla bla
#2 lore raw
Quoted 3 lines · --On Sunday, October 17, 2004 11:31 PM +0300 George Alexandru Dragoi…

The routing decision is done after OUTPUT chains in both nat and mangle tables, and before POSTROUTING of course. Is this what you meant?

Ah, so for the output path, I need to use "-t mangle -A OUTPUT" instead of "-A PREROUTING"? I just need to add the extra rule, then.

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw

-t mangle -A OUTPUT
or
-t nat OUTPUT
or
-A OUTPUT (same with -t filter -A OUTPUT)
Depends on what you need to do.

Quoted 11 lines · Kenneth Porter

--On Sunday, October 17, 2004 11:31 PM +0300 George Alexandru Dragoi

Quoted 3 lines · <[email protected]> wrote:

The routing decision is done after OUTPUT chains in both nat and mangle tables, and before POSTROUTING of course. Is this what you meant?

Ah, so for the output path, I need to use "-t mangle -A OUTPUT" instead of "-A PREROUTING"? I just need to add the extra rule, then.

Signature · 1 line
Bla bla