{"id":17470735,"url":"https://github.com/matsumotory/qos-control","last_synced_at":"2025-04-30T08:24:57.578Z","repository":{"id":3106241,"uuid":"4132299","full_name":"matsumotory/qos-control","owner":"matsumotory","description":"qos-control.pl","archived":false,"fork":false,"pushed_at":"2019-10-04T08:01:23.000Z","size":121,"stargazers_count":13,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-18T18:19:35.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matsumotory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-25T03:03:53.000Z","updated_at":"2019-10-04T08:01:25.000Z","dependencies_parsed_at":"2022-09-09T02:33:00.863Z","dependency_job_id":null,"html_url":"https://github.com/matsumotory/qos-control","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsumotory%2Fqos-control","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsumotory%2Fqos-control/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsumotory%2Fqos-control/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matsumotory%2Fqos-control/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matsumotory","download_url":"https://codeload.github.com/matsumotory/qos-control/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251667603,"owners_count":21624531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-18T16:05:02.846Z","updated_at":"2025-04-30T08:24:57.556Z","avatar_url":"https://github.com/matsumotory.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qos-control.pl\nTraffic control tool using cbq, tc and iproute for CentOS and Ubuntu. cbq don't support inbound traffic control, but qos-control.pl supported inbound traffic control using htb and ifb. You can control traffic easily and safely.\n\n[In Japanese] Plese see [more details](http://blog.matsumoto-r.jp/?p=2283)\n\n## TODO\nSupport other distri like Fedora, Debian and so on. Wellcome Pull-Request.\n\n## Quick Install\n#### Download\n```\n$ git clone https://github.com/matsumoto-r/qos-control.git\n```\n#### Install\n```\n$ cd qos-control\n$ ./setup.sh\n```\n\n## How to Use\n### Usage\n```\n$ ./qos-control.pl -h\n\n    usage: ./qos-control.pl --method|-m METHOD --ip|-i SERVER_IP --direction|-d DIRECTION --traffic|-t BANDWIDTH [--eth|-e INTREFACE] [--protocol|-p PROTOCOL] [--src|-s SRC_IP]\n\n        -m, --method        set method                  (view clear set)\n        -i, --ip            set server ip\n        -d, --direction     set direction               (out in)\n        -t, --traffic       set traffic bandwidth Mbps  (1 2 4 8 16)\n        -e, --eth           set interface               (eth0 eth1 eth2 eth3)\n        -p, --protocol      set protocol                (https smtp ssh imaps imap all ftp http pop3 pop3s)\n        -s, --src           set src ip\n        -c, --clsid         set clsid only clear method\n        -h, --help          display this help and exit\n        -v, --version       display version and exit\n\n```\n### View\n```\n$ ./qos-control.pl --method view --ip 172.16.71.46\nnothing\n```\n### Set\n##### IP Address: 172.16.71.46\n##### Direction: Out\n##### Traffic: 16Mbps\n##### Protocol: http\n```\n$ sudo ./qos-control.pl -i 172.16.71.46 -m set -p http -d out -t 16\n*** old [172.16.71.46] settings ***\n--------------------------\nnothing\n--------------------------\n\nSetting ... OK\n\n*** current [172.16.71.46] settings ***\n------------------------------\nCLSID-\u003e6067     interface-\u003eeth0       direction-\u003eout        bandwidth-\u003e16Mbps     server_ip_port\u003e172.16.71.46:80      src_ip-\u003enothing\n------------------------------\n```\n### Clear\n##### First, view and get CLSID\n```\n$ sudo ./qos-control.pl -i 172.16.71.46 -m view\nCLSID-\u003e6067     interface-\u003eeth0       direction-\u003eout        bandwidth-\u003e16Mbps     server_ip_port\u003e172.16.71.46:80      src_ip-\u003enothing\n```\n##### Clear config\n```\n$ sudo ./qos-control.pl -i 172.16.71.46 -m clear -c 6067\n*** old [172.16.71.46] settings ***\n--------------------------\nCLSID-\u003e6067     interface-\u003eeth0       direction-\u003eout        bandwidth-\u003e16Mbps     server_ip_port\u003e172.16.71.46:80      src_ip-\u003enothing\n--------------------------\n\nSetting Clear ... OK\n\n*** current [172.16.71.46] settings ***\n--------------------------\nnothing\n--------------------------\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsumotory%2Fqos-control","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatsumotory%2Fqos-control","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatsumotory%2Fqos-control/lists"}