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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file trafficshaper-0.1.0.tar.gz.

File metadata

  • Download URL: trafficshaper-0.1.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.7 Linux/5.19.9-zen1-1-zen

File hashes

Hashes for trafficshaper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f9d3572feee5b1a91784ea6f11fabcea34ce991139635c1bfc509045d0104f4a
MD5 332cf12bbb7e5196296e4c90a24e8ba7
BLAKE2b-256 262f269b77d38199b1384a1a0f20e13008bf7a7c05db716e1f682dc58c875339

See more details on using hashes here.

File details

Details for the file trafficshaper-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: trafficshaper-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.0 CPython/3.10.7 Linux/5.19.9-zen1-1-zen

File hashes

Hashes for trafficshaper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 24d6e3e09a40952c365c1d16ba8ed821feb439ec7c35a32e31bc7955547ae106
MD5 9c18f91f64b2d6e5f2192b0694090d28
BLAKE2b-256 f064c35d125b5d34302132c2b3a8beb7608492950606533ef1aa6da7f3cb9523

See more details on using hashes here.

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