Skip to main content

Easily configure your network behavior on Linux (generates tc rules from a config)

Project description

Intro

Tired of dealing with major & minor numbers? You like the TOML format (kind of "ini" on steroids)? Always wanted to play with traffic shaping on linux but it turned too complex or confusing? This alpha tool aims at simplifying the learning curve for traffic control on ip route 2.

The format started quite close to the original command-line and progressively adds more support and shorter or easier notations.

Forget about classid, flowid. Consider parent sometimes handle for complex scenarios only!

Check the examples folder to dive into the syntax.

Supported features

  • hosts aliases
  • network interfaces aliases
  • speeds aliases
  • automatic generation of major & minor mumbers (all of them!) when possible
  • visual representation of the setup

Trafic control coverage

  • sfq : makes a more fair traffic
  • netem : simulate network problems
  • htb : control traffic rate using categories
  • tbf : very basic shaping

TODO:

  • relative speeds (percents)
  • templates (for repeated attributes)

QDiscs

  • sfq
  • netem
  • htb
  • tbf

Classes (categories uses by some QDiscs)

  • htb

Filters (assign traffic)

  • fw
  • u32
    • ip (src, dst, sport, dport)
  • action

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trafficshaper-0.1.0.tar.gz (5.2 kB view hashes)

Uploaded Source

Built Distribution

trafficshaper-0.1.0-py3-none-any.whl (5.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page