How to set DSCP in stunnel? For some reasons I can't set DSCP via iptables(server side is on ovz VPS). Is there such feature? If no - please add it(it will be very usefull for me ;) )
Stunnel does not operate at that layer.
On Saturday, December 29, 2012, Death Master wrote:
How to set DSCP in stunnel? For some reasons I can't set DSCP via iptables(server side is on ovz VPS). Is there such feature? If no - please add it(it will be very usefull for me ;) )
On 2012-12-29 18:53, Death Master wrote:
How to set DSCP in stunnel? For some reasons I can't set DSCP via iptables(server side is on ovz VPS). Is there such feature? If no - please add it(it will be very usefull for me ;) )
Do you mean something like: tos = < lowdelay | throughput | reliability | lowcost > option?
It is not currently implemented, but definitely a good idea.
Mike
I wrote:
It is not currently implemented, but definitely a good idea.
After re-thinking this I guess you need a more generic interface to setup TOS, including higher bits needed for DSCP. The good news is that it is already implemented in a more generic way:
For local/accepted socket: socket = l:IP_TOS=<value> For remote/connected socket: socket = r:IP_TOS=<value>
This page may be useful to compute the <value> above: http://bogpeople.com/networking/dscp.shtml
Mike