* [LARTC] tc filter expression
@ 2003-10-09 5:53 Niels Vorgaard Christensen
2003-10-09 5:58 ` Catalin BOIE
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Niels Vorgaard Christensen @ 2003-10-09 5:53 UTC (permalink / raw)
To: lartc
Hi.
I am working on a router with three interfaces. eth2 and eth0 are
connected to two different Internet providers. The interface eth1 are
connected to an internal network. Now I need a tc filter expression
that will determine which interface the packet was routed in through
to be able classify packets going out eth1 based on provider. I know I
could mark packets with netfilter, but if it is possible to construct
a tc filter expression to do the job I would much prefere that.
Regards,
Niels V. Christensen
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] tc filter expression
2003-10-09 5:53 [LARTC] tc filter expression Niels Vorgaard Christensen
@ 2003-10-09 5:58 ` Catalin BOIE
2003-10-16 11:22 ` Niels Vorgaard Christensen
2003-10-16 12:28 ` Catalin BOIE
2 siblings, 0 replies; 4+ messages in thread
From: Catalin BOIE @ 2003-10-09 5:58 UTC (permalink / raw)
To: lartc
On Thu, 9 Oct 2003, Niels Vorgaard Christensen wrote:
> Hi.
>
> I am working on a router with three interfaces. eth2 and eth0 are
> connected to two different Internet providers. The interface eth1 are
> connected to an internal network. Now I need a tc filter expression
> that will determine which interface the packet was routed in through
> to be able classify packets going out eth1 based on provider. I know I
> could mark packets with netfilter, but if it is possible to construct
> a tc filter expression to do the job I would much prefere that.
I think you can use ingress + policy + ds to mark packets (DSCP IP field)
on eth0 and eth2. Then on eth1 you can classify base on this field.
>
>
> Regards,
> Niels V. Christensen
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
---
Catalin(ux) BOIE
catab@deuroconsult.ro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] tc filter expression
2003-10-09 5:53 [LARTC] tc filter expression Niels Vorgaard Christensen
2003-10-09 5:58 ` Catalin BOIE
@ 2003-10-16 11:22 ` Niels Vorgaard Christensen
2003-10-16 12:28 ` Catalin BOIE
2 siblings, 0 replies; 4+ messages in thread
From: Niels Vorgaard Christensen @ 2003-10-16 11:22 UTC (permalink / raw)
To: lartc
Catalin BOIE <util@deuroconsult.ro> writes:
> On Thu, 9 Oct 2003, Niels Vorgaard Christensen wrote:
>
>> Hi.
>>
>> I am working on a router with three interfaces. eth2 and eth0 are
>> connected to two different Internet providers. The interface eth1 are
>> connected to an internal network. Now I need a tc filter expression
>> that will determine which interface the packet was routed in through
>> to be able classify packets going out eth1 based on provider. I know I
>> could mark packets with netfilter, but if it is possible to construct
>> a tc filter expression to do the job I would much prefere that.
>
> I think you can use ingress + policy + ds to mark packets (DSCP IP field)
> on eth0 and eth2. Then on eth1 you can classify base on this field.
Could you give me an example of how this could be done? The DSMARK
documentation that I have found is a bit difficult. I can't find any
examples of marking in ingress, and if I understand you right, you
think that it is possible to mark all packets in ingress on let's say
eth0 (provider 1), and then classify based on that mark in egress of
eth1 (internal iface).
Regards,
Niels V. Christensen
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] tc filter expression
2003-10-09 5:53 [LARTC] tc filter expression Niels Vorgaard Christensen
2003-10-09 5:58 ` Catalin BOIE
2003-10-16 11:22 ` Niels Vorgaard Christensen
@ 2003-10-16 12:28 ` Catalin BOIE
2 siblings, 0 replies; 4+ messages in thread
From: Catalin BOIE @ 2003-10-16 12:28 UTC (permalink / raw)
To: lartc
> > I think you can use ingress + policy + ds to mark packets (DSCP IP field)
> > on eth0 and eth2. Then on eth1 you can classify base on this field.
>
> Could you give me an example of how this could be done? The DSMARK
> documentation that I have found is a bit difficult. I can't find any
> examples of marking in ingress, and if I understand you right, you
> think that it is possible to mark all packets in ingress on let's say
> eth0 (provider 1), and then classify based on that mark in egress of
> eth1 (internal iface).
Hi, Niels!
I have no working example.
I said that in theory. I didn't tried myself.
[10 minutes passed]
I check a little more and seems it's not possible to set the mark using
ingress.
Stef, am I wrong?
>
>
> Regards,
> Niels V. Christensen
>
---
Catalin(ux) BOIE
catab@deuroconsult.ro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-10-16 12:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-09 5:53 [LARTC] tc filter expression Niels Vorgaard Christensen
2003-10-09 5:58 ` Catalin BOIE
2003-10-16 11:22 ` Niels Vorgaard Christensen
2003-10-16 12:28 ` Catalin BOIE
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.