is it OK to apply tc htb rate limiting to the tunX adapters?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't see why not. tc should operate on a tunnel interface like any other. There may be a minimum bandwidth under which openvpn starts to get upset but how low are you talking about?
OK I was thinking about KB's! I can't imagine why that should cause a problem. Tc HTB is not like policing which simply discards excess traffic, HTB buffers throttled traffic in the same way that would occur of you set a physical interface to 10MBps. So while I've never done it, the only reason it might cause a problem is if your average offered VPN traffic rate is higher than this, then you'll hit congestion issue similar to running the physical at 10M.
one other separate thing, is there a difference between classifying traffic using "tc filter" and "iptables <filter rules> -j CLASSIFY --set-class x:y"?
Not that I'm aware of but I'm not that hot on iptables, I've spent much more time on tc. You can do a lot more manipulation with iptables so I assume you can classify it there so you can do some tinkering with the traffic before passing it onto tc.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.