[OpenSIPS-Users] can mediaproxy relay set IP ToS

Jeff Pyle jpyle at fidelityvoice.com
Thu Nov 5 14:13:14 CET 2009


At this point I'd accept quantity over quality.  All packets is better than
no packets.  I had tried on egress without success.  I'll have to rework it
to try on ingress instead.


- Jeff



On 11/5/09 4:44 AM, "Dan Pascu" <dan at ag-projects.com> wrote:

> On 3 Nov 2009, at 17:37, Jeff Pyle wrote:
>>>> Is it possible to configure mediaproxy, or iptables or that matter,
>>>> to mark
>>>> the relay's outgoing packets with a specific ToS value?
>>>> Unfortunately some
>>>> up of my upstream providers strip the DSCP tags coming in and I'd
>>>> like to
>>>> take the opportunity at the relay to remark them with EF (0x2E).
>>> 
>>> Not ATM. The support for marking the packets that pass through the
>>> conntrack rules is there, it's just not used yet.
>> 
>> 
>> Is there any conceivable way with a mangle rule to mark any udp
>> packets
>> within the relay's port range leaving the interface to have a
>> certain DSCP
>> value?  For example, in my case, everything leaving eth1 within
>> 16384-32768
>> I'd like to mark EF.  I looked at some iptables documentation and
>> did some
>> tests but I wasn't able to come up with anything that did the job.
> 
> I guess you can use iptables to mark all the packets that arrive on
> the mediaproxy ports with a flag and then use iptables to set the TOS
> value when they leave. Or it could be probably done in a single step:
> set the TOS value on all the packets arriving on the mediaproxy port
> range. I just don't remember how exactly this is done. You'll have to
> consult the iptables man page.
> 
> What I mentioned in mediaproxy would have done just this (when
> implemented), only it would be more precise: i.e. it would only mark
> the mediaproxy related packets, while the static iptables rule method
> may set the TOS value on non-mediaproxy packets if they happen to be
> in range.
> 
> --
> Dan
> 
> 
> 
> 
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users




More information about the Users mailing list