Traffic Shaping On OpenVPN

Hi there, I'm looking to set up traffic shaping on OpenVPN.  I'm aware that Openvpn has it's own shaper built-in, which is great, but I'd like to shape the traffic using tc (or any equivalent).

The idea is that I want to allow each connection to the service to get a set amount of bandwidth, lets say 1mbps or so upload and download.  This way user1 will have 1mbs, and user2 will have 1mbps roughly speaking.

I tried shaping based on the private IP address assigned by OpenVPN when the user connects but I haven't been able to get that working.

How is this accomplished?
schnibitzAsked:
Who is Participating?
 
gheistCommented:
OpenVPN uses TCP connections to connetc  to OpenVPN server. You can balance those. Otherwise it has so huge buffers that shaping is of almost no use.
0
 
QlemoBatchelor, Developer and EE Topic AdvisorCommented:
Not necessarily. The recommended protocol is UDP, not TCP.
0
 
schnibitzAuthor Commented:
Question is solved in another question I opened up.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.