|
From: James Y. <ji...@yo...> - 2005-03-28 06:28:13
|
On Sun, 27 Mar 2005, Florin Andrei wrote: > On Sun, 2005-03-27 at 20:00 -0800, Ross MacGillivray wrote: > > Are there any plans to add Quality of Service (QoS) features, i.e. > > traffic prioritization. > > > > I've been pulling a little music over OpenVPN, and QoS would be a > > useful feature to prioritize streaming > > media over an OpenVPN tunnel. > > Prioritizing the VPN packets when compared to other traffic, or > prioritize traffic inside the tunnel? > > Anyway, i have a feeling that both can be achieved with other means. In > order to prioritize the tunnel itself versus other traffic, this is what > i do: > > # iptables -L -n -v -t mangle | grep 5000 > 0 0 TOS udp -- * * 0.0.0.0/0 > 0.0.0.0/0 udp spt:5000 TOS set 0x10 > > Or in other words: > > -A PREROUTING -t mangle -p udp -m udp --sport 5000 -j TOS --set-tos 0x10 > > Probably something similar can be applied inside the tunnel, but i never > tried that. If you do, please post the results. OpenVPN on Linux has the --passtos option which allows TOS bits in the tunnel packets to be applied to the VPN carrier socket.. James |