Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Wiki
    • Doc
  • BandwidthLimitChangeController

Last edited by Alexander Færøy Jun 15, 2020
Page history

BandwidthLimitChangeController

Bandwidth Controller Script for Tor by Bogdan Drozdowski

Some server operators wish to have a tool which would change their Tor server's bandwidth limit at given times. The simplest solution I could come with is the following Perl script: torbandwctl.pl.

Homepage: http://rudy.mif.pg.gda.pl/~bogdro/tor/tor.html

Syntax: perl torbandwctl.pl [-p|--port NNNN] hour1:min1 "bandwidth1" [hour2:min2 "bandwidth2" ...] &

  • NNNN is the Tor control port number (default: 9051)
  • hour1:min1 is the time at which the script should set the Tor bandwidth to bandwidth1
  • bandwidth1 is the bandwidth value, in any format Tor can understand. It should be put in quotes, because running the script as

torbandwctl.pl hh:mm 1 MB

will cause the "1 MB" part to be passed as two separate arguments.

  • The & causes the script to be put in background by the shell (works under Bash). This is required (unless you can afford losing a terminal), because the script never exits.

Example: ./torctl.pl --port 9051 11:37 "500" 11:38 "200"

Requires:

  • Perl
  • Perl's IO::Socket::INET

License: GPLv2


See also: TheOnionRouter/CronBandwidthLimit

Clone repository
  • AnonOnWikiFavs
  • AppArmorForTBB
  • AutomationInventory
  • BadContent
  • BlockingBittorrent
  • CI
  • CamelCase
  • CrowdfundingHS2015
  • FlashProxyFAQ
  • FlashProxyHowto
  • FlashProxyUsability
  • HTTPSEverywhere
    • SSLObservatorySubmission
  • ImportantGoogleChromeBugs
  • InterMapTxt
  • InterTrac
View All Pages