Linux - Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-19-2014, 12:43 AM
|
#1
|
Member
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349
Rep:
|
is it OK to apply tc htb rate limiting to the tunX adapters?
to throttle openvpn's traffic over tun0? could this cause problems? or would this be a better question asked to the openvpn folks?
|
|
|
01-19-2014, 12:19 PM
|
#2
|
Member
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891
Rep:
|
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?
|
|
|
01-19-2014, 01:45 PM
|
#3
|
Member
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349
Original Poster
Rep:
|
around 10mbit
|
|
|
01-20-2014, 01:12 PM
|
#4
|
Member
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891
Rep:
|
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.
|
|
|
01-20-2014, 02:43 PM
|
#5
|
Member
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349
Original Poster
Rep:
|
trying it, seems to work fine. thanks.
one other separate thing, is there a difference between classifying traffic using "tc filter" and "iptables <filter rules> -j CLASSIFY --set-class x:y"?
|
|
|
01-23-2014, 01:31 PM
|
#6
|
Member
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|