* incoming interface + ifb0
@ 2008-07-29 10:22 Denys Fedoryshchenko
2008-07-29 12:48 ` Jarek Poplawski
0 siblings, 1 reply; 4+ messages in thread
From: Denys Fedoryshchenko @ 2008-07-29 10:22 UTC (permalink / raw)
To: netdev
Sorry that i am asking in kernel maillist, probably it is wrong. Maybe right place is lartc only, but probably kernel lacking something too :-)
Question is:
I have plenty pppX interfaces. I want to shape traffic coming over this interfaces.
Before i was doing over m_ipt and MARK, then redirect to ifb0 and there was doing filter by fwmark.
But m_ipt seems needs serious rewrite, and plus it is not very clean way to do (performance wise).
Alternative way is to shape on outgoing interface, but it is not clean, in case if there is multiple outgoing interfaces.
I tried to filter on ifb by ematch - rt_iif, dev - no luck. by route fromif - no luck. Is there some way i miss?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: incoming interface + ifb0
2008-07-29 10:22 incoming interface + ifb0 Denys Fedoryshchenko
@ 2008-07-29 12:48 ` Jarek Poplawski
2008-07-29 13:26 ` Denys Fedoryshchenko
0 siblings, 1 reply; 4+ messages in thread
From: Jarek Poplawski @ 2008-07-29 12:48 UTC (permalink / raw)
To: Denys Fedoryshchenko; +Cc: netdev
On 29-07-2008 12:22, Denys Fedoryshchenko wrote:
> Sorry that i am asking in kernel maillist, probably it is wrong. Maybe right place is lartc only, but probably kernel lacking something too :-)
>
> Question is:
> I have plenty pppX interfaces. I want to shape traffic coming over this interfaces.
> Before i was doing over m_ipt and MARK, then redirect to ifb0 and there was doing filter by fwmark.
> But m_ipt seems needs serious rewrite, and plus it is not very clean way to do (performance wise).
>
> Alternative way is to shape on outgoing interface, but it is not clean, in case if there is multiple outgoing interfaces.
> I tried to filter on ifb by ematch - rt_iif, dev - no luck. by route fromif - no luck. Is there some way i miss?
I didn't use this nor checked enough, so I can be wrong, but
since ingress with ifb0 is in prerouting, you probably can't use
rt_iif. You shouldn't filter at ifb on "dev" neither - it's "ifb"
at the moment. You need to match skb->iif with something (flow?).
Jarek P.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: incoming interface + ifb0
2008-07-29 12:48 ` Jarek Poplawski
@ 2008-07-29 13:26 ` Denys Fedoryshchenko
2008-07-29 18:31 ` Jarek Poplawski
0 siblings, 1 reply; 4+ messages in thread
From: Denys Fedoryshchenko @ 2008-07-29 13:26 UTC (permalink / raw)
To: Jarek Poplawski; +Cc: netdev
On Tuesday 29 July 2008, Jarek Poplawski wrote:
> I didn't use this nor checked enough, so I can be wrong, but
> since ingress with ifb0 is in prerouting, you probably can't use
> rt_iif. You shouldn't filter at ifb on "dev" neither - it's "ifb"
> at the moment. You need to match skb->iif with something (flow?).
Yes
I want to create on outgoing device or ifb(preffered) - tree of flows.
Cause each interface = customer - i need to classify customers by flows.
Since customer can have multiple/spoofed ip's - i cannot filter by ip for now.
So iif only my choice seems.
Maybe if i do redirect on outgoing to ifb on outgoing device it will work?
>
> Jarek P.
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: incoming interface + ifb0
2008-07-29 13:26 ` Denys Fedoryshchenko
@ 2008-07-29 18:31 ` Jarek Poplawski
0 siblings, 0 replies; 4+ messages in thread
From: Jarek Poplawski @ 2008-07-29 18:31 UTC (permalink / raw)
To: Denys Fedoryshchenko; +Cc: netdev
On Tue, Jul 29, 2008 at 04:26:36PM +0300, Denys Fedoryshchenko wrote:
> On Tuesday 29 July 2008, Jarek Poplawski wrote:
>
> > I didn't use this nor checked enough, so I can be wrong, but
> > since ingress with ifb0 is in prerouting, you probably can't use
> > rt_iif. You shouldn't filter at ifb on "dev" neither - it's "ifb"
> > at the moment. You need to match skb->iif with something (flow?).
> Yes
> I want to create on outgoing device or ifb(preffered) - tree of flows.
> Cause each interface = customer - i need to classify customers by flows.
>
> Since customer can have multiple/spoofed ip's - i cannot filter by ip for now.
> So iif only my choice seems.
>
> Maybe if i do redirect on outgoing to ifb on outgoing device it will work?
I doubt you can do something like this - or I miss something. IMHO,
you could try with this flow filter on ifb as a replacement for ipt
+ fw. Otherwise, if you can schedule on outgoing devs, you can use
e.g. cls_route. On the other hand ppp usually enables controlling
of clients, so maybe you should better try to use this more.
Jarek P.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-07-29 18:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29 10:22 incoming interface + ifb0 Denys Fedoryshchenko
2008-07-29 12:48 ` Jarek Poplawski
2008-07-29 13:26 ` Denys Fedoryshchenko
2008-07-29 18:31 ` Jarek Poplawski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).