* No PREROUTING for OUTPUT?
@ 2004-10-17 19:54 Kenneth Porter
2004-10-18 14:51 ` Aleksandar Milivojevic
0 siblings, 1 reply; 5+ messages in thread
From: Kenneth Porter @ 2004-10-17 19:54 UTC (permalink / raw)
To: Netfilter Users
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?)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: No PREROUTING for OUTPUT?
[not found] <5FCB4E67C52322BD4ABBF882@10.0.0.4>
@ 2004-10-17 20:31 ` George Alexandru Dragoi
2004-10-17 21:10 ` Kenneth Porter
[not found] ` <06B6B683FC4088203BA6B8D7@10.0.0.4>
0 siblings, 2 replies; 5+ messages in thread
From: George Alexandru Dragoi @ 2004-10-17 20:31 UTC (permalink / raw)
To: Netfilter Users
The routing decision is done after OUTPUT chains in both nat and
mangle tables, and before POSTROUTING of course. Is this what you
meant?
On Sun, 17 Oct 2004 12:54:11 -0700, Kenneth Porter
<shiva@sewingwitch.com> wrote:
> 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?)
>
>
--
Bla bla
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: No PREROUTING for OUTPUT?
2004-10-17 20:31 ` George Alexandru Dragoi
@ 2004-10-17 21:10 ` Kenneth Porter
[not found] ` <06B6B683FC4088203BA6B8D7@10.0.0.4>
1 sibling, 0 replies; 5+ messages in thread
From: Kenneth Porter @ 2004-10-17 21:10 UTC (permalink / raw)
To: Netfilter Users
--On Sunday, October 17, 2004 11:31 PM +0300 George Alexandru Dragoi
<waruiinu@gmail.com> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: No PREROUTING for OUTPUT?
[not found] ` <06B6B683FC4088203BA6B8D7@10.0.0.4>
@ 2004-10-18 11:11 ` George Alexandru Dragoi
0 siblings, 0 replies; 5+ messages in thread
From: George Alexandru Dragoi @ 2004-10-18 11:11 UTC (permalink / raw)
To: Netfilter Users
-t mangle -A OUTPUT
or
-t nat OUTPUT
or
-A OUTPUT (same with -t filter -A OUTPUT)
Depends on what you need to do.
On Sun, 17 Oct 2004 14:10:24 -0700, Kenneth Porter
<shiva@sewingwitch.com> wrote:
> --On Sunday, October 17, 2004 11:31 PM +0300 George Alexandru Dragoi
> <waruiinu@gmail.com> 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.
>
>
--
Bla bla
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: No PREROUTING for OUTPUT?
2004-10-17 19:54 No PREROUTING for OUTPUT? Kenneth Porter
@ 2004-10-18 14:51 ` Aleksandar Milivojevic
0 siblings, 0 replies; 5+ messages in thread
From: Aleksandar Milivojevic @ 2004-10-18 14:51 UTC (permalink / raw)
To: Netfilter Users
Kenneth Porter wrote:
> 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?)
The equivalent of PREROUTING chain for locally generated packets would
be OUTPUT chain. It exists in filter, nat, and mangle tables. I'd
guess what you need is something like:
iptables -t mangle -A OUTPUT -p udp -j TOS --set-tos Minimize-Delay
iptables -t mangle -A PREROUTING -p udp -j TOS --set-tos Minimize-Delay
First line would handle locally generated packets, second would handle
forwarded packets (it would catch incoming too, but I guess it can be
safely ignored in this case).
--
Aleksandar Milivojevic <amilivojevic@pbl.ca> Pollard Banknote Limited
Systems Administrator 1499 Buffalo Place
Tel: (204) 474-2323 ext 276 Winnipeg, MB R3T 1L7
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-10-18 14:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-17 19:54 No PREROUTING for OUTPUT? Kenneth Porter
2004-10-18 14:51 ` Aleksandar Milivojevic
[not found] <5FCB4E67C52322BD4ABBF882@10.0.0.4>
2004-10-17 20:31 ` George Alexandru Dragoi
2004-10-17 21:10 ` Kenneth Porter
[not found] ` <06B6B683FC4088203BA6B8D7@10.0.0.4>
2004-10-18 11:11 ` George Alexandru Dragoi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.