LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-19-2014, 12:43 AM   #1
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Rep: Reputation: Disabled
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?
 
Old 01-19-2014, 12:19 PM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
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?
 
Old 01-19-2014, 01:45 PM   #3
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Original Poster
Rep: Reputation: Disabled
around 10mbit
 
Old 01-20-2014, 01:12 PM   #4
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
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.
 
Old 01-20-2014, 02:43 PM   #5
psycroptic
Member
 
Registered: Aug 2011
Location: USA
Distribution: ArchLinux - 3.0 kernel
Posts: 349

Original Poster
Rep: Reputation: Disabled
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"?
 
Old 01-23-2014, 01:31 PM   #6
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] tc htb - trying to rate limit traffic on 1 single port psycroptic Linux - Networking 2 09-11-2013 09:03 AM
limit bandwidth rate for scp using tc htb Linux abhelp Linux - Networking 9 08-20-2010 09:45 AM
LXer: WebHTB - Web interface for HTB-Tools, bandwidth limiting for your LAN LXer Syndicated Linux News 0 06-17-2008 05:30 AM
Connection rate limiting rodm13 Linux - Networking 1 11-16-2007 05:31 AM
Kernel Rate Limiting mikeyt_3333 Linux - Networking 1 10-25-2001 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration