Traffic Shaping On OpenVPN

Posted on 2011-05-01
Last Modified: 2012-06-21
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?
Question by:schnibitz
    LVL 61

    Expert Comment

    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.
    LVL 67

    Expert Comment

    Not necessarily. The recommended protocol is UDP, not TCP.

    Accepted Solution


    Author Closing Comment

    Question is solved in another question I opened up.

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Some of you may have heard that SonicWALL has finally released an app for iOS devices giving us long awaited connectivity for our iPhone's, iPod's, and iPad's. This guide is just a quick rundown on how to get up and running quickly using the app. …
    If you use NetMotion Mobility on your PC and plan to upgrade to Windows 10, it may not work unless you take these steps.
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    731 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now