Skip to content

Basic daemon like script to manage traffic with tc hierarchical token bucket filter.

Notifications You must be signed in to change notification settings

LaboratoryB/tc-htbd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

GPLv2 THIS IS A TC (TRAFFIC CONTROL) MANAGMENT SCRIPT. IT CAN BE USED AS A DAEMON LIKE SCRIPT, WHILE FUNCTIONAL, IT IS NOT A FINISHED PACKAGE.

CURRENTLY SCRIPT IS SET TO READ CONFIGURATION DETAILS FROM HERE: /etc/sysconfig/tc-htb

THE FORMAT OF "/etc/sysconfig/tc-htb" IS:

SOMETHING LIKE THIS SHOULD HACK IT INTO BOOTABLE ON CENTOS: $ cp tc-htbd /etc/init.d/ $ ln -s /etc/init.d/tc-htbd /etc/rc.d/rc3.d/S90tc-htbd $ ln -s /etc/init.d/tc-htbd /etc/rc.d/rc5.d/S90tc-htbd

(Or you could throw it in rc.local, call the script with "start", I won't tell anyone; need to package this up to make it right; I'll proably at least put a spec file together if I go much farther with this-not sure with .debs, but tc is kernel level, so should work fine with a few ".conf" tweaks)

DEVEL NOTES: NEEDS WORK TO SPLIT OUT INTO A PROPER PACAKGE AND CREATE A PROPER DAEMON. IF I CONTINUE WORK ON THIS, I'LL WANT TO ADD A MORE PROGRAMATIC APPROACH, PARTICULARLIY WITH CONFIGURABLE VARIABLES FOR THE CLASSES SETUP. I THINK THIS SHOULD ALLOW DYNAMIC CONFIGURATION UP TO $CEIL WITH A SIMPLE ".conf" FILE

About

Basic daemon like script to manage traffic with tc hierarchical token bucket filter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages