Scroll to navigation

SBWS.INI(5) version"]" SBWS.INI(5)

NAME

sbws.ini - Simple Bandwidth Scanner configuration

DESCRIPTION

Tor bandwidth scanner configuration file.

sbws (1) scanner command requires a configuration file with the "[scanner]", "[destinations]" "[destination.<name>]" sections.

There must be at least one "[destination.<name>]".

See an EXAMPLES below for a minimal configuration.

SECTIONS

Days into the past that measurements are considered valid. (Default: 5)
Timeout in seconds to give to the python Requests library. (Default: 10)
Timeout in seconds to create circuits. (Default: 60)
Whether or not to reset the bandwidth measurements when the relay's IP address changes. If it changes, we only consider results for the relay that we obtained while the relay was located at its most recent IP address. (Default: off)
NOT implemented for IPv6.


paths

When sbws is run as a system service, ~/.sbws is changed to /var/lib/sbws.
sbws home directory. (Default: ~/.sbws)
Directory where sbws stores temporal bandwidth results files. (Default: ~/.sbws/datadir)
Directory where sbws stores the bandwidth list files. These are the files to be read by the Tor Directory Authorities. (Default: ~/.sbws/v3bw)
File names of the bandwidth list files. The latest bandwidth file is symlinked by latest.v3bw
File path to store the timestamp when the scanner was last started. (Default: ~/.sbws/state.dat)
Directory where to store log files when logging to files is enabled. (Default: ~/.sbws/log)



destinations

It is required to set at least one destination for the scanner to run. It is recommended to set several destinations so that the scanner can continue if one fails.
Name of destination. It is a name for the Web server from where to download files in order to measure bandwidths.
How often to check if a destination is usable (Default: 300)



The URL to the destination. It must include a file path. It can use both http or https.
Whether or not to verify the destination certificate. (Default: True)
ISO 3166-1 alpha-2 country code. Use ZZ if the destination URL is a domain name and it is in a CDN.


tor

When sbws is run as a system service ~/.sbws/tor is replaced by /run/sbws/tor.
sbws' owned tor directory. (Default: ~/.sbws/tor)
sbws's owned tor control socket file. (Default: ~/.sbws/tor/sbws/control)
sbws's owned tor pid file. (Default: ~/.sbws/tor/sbws/tor.pid)
sbws's owned tor directory log files. (Default: ~/.sbws/tor/log)
tor control port to connect to. Useful to run integration tests with chutney. (Default: not set. If set, it takes preference over the control socket)
sbws's tor extra configuration. (Default: None)



A human-readable string with chars in a-zA-Z0-9 to identify the scanner. (Default: IDidntEditTheSBWSConfig)
ISO 3166-1 alpha-2 country code. (Default: AA, a non existing country to detect it was not edited)
Limits on what download times are too fast/slow/etc. (Default: 1)
Limits on what download times are too fast/slow/etc. (Default: 5)
Limits on what download times are too fast/slow/etc. (Default: 6)
Limits on what download times are too fast/slow/etc. (Default: 10)
How many RTT measurements to make. (Default: 0)
Number of downloads with acceptable times we must have for a relay before moving on. (Default: 5)
The number of bytes to initially request from the server. (Default: 16384)
How many measurements to make in parallel. (Default: 3)
Minimum number of bytes we should ever try to download in a measurement. (Default: 1)
Maximum number of bytes we should ever try to download in a measurement. (Default: 1073741824) 1073741824 == 1 GiB

Whether or not to measure authorities. (Default: off)
The target fraction of best priority relays we would like to return. 0.05 is 5%. In a 7000 relay network, 5% is 350 relays. (Default: 0.05)
The minimum number of best priority relays we are willing to return. (Default: 50)

After this many days, compress data files. (Default: 29)
After this many days, delete data files. (Default: 57)
After this many days, compress v3bw files. (Default: 1)
After this many days, delete v3bw files. (Default: 7)

Whether or not to log to a rotating file the directory paths.log_dname. (Default: yes)
Whether or not to log to stdout. (Default: yes)
Whether or not to log to syslog. (Default: no) NOTE that when sbws is launched by systemd, stdout goes to journal and syslog.
If logging to file, how large (in bytes) should the file be allowed to get before rotating to a new one. 10485760 is 10 MiB. If zero or number of backups is zero, never rotate the log file. (Default: 10485760)
If logging to file, how many backups to keep. If zero or max bytes is zero, never rotate the log file. (Default: 50)
Level to log at. (Default: debug)
Level to log at when using files. (Default: debug)
Level to log at when using stdout. (Default: info)
Level to log at when using syslog. (Default: info)
Format string to use when logging. (Default: %(asctime)s %(module)s[%(process)s]: <%(levelname)s> %(message)s)
Format string to use when logging to stdout. (Default: ${format})
Format string to use when logging to syslog. (Default: %(module)s[%(process)s]: <%(levelname)s> %(message)s)
Format string to use when logging to files. (Default: %(asctime)s %(levelname)s %(threadName)s %(filename)s:%(lineno)s - %(funcName)s - %(message)s)


EXAMPLES

Example destinations section:

[scanner]
nickname = Manual
country = US
[destinations]
foo = on
bar = on
baz = off
[destinations.foo]
# using HTTP
url = http://example.org/sbws.bin
country = ZZ
verify = False
[destinations.bar]
# using HTTPS
url = https://example.com/data
country = SN
[destinations.baz]
# this will be ignored
url = https://example.net/ask/stan/where/the/file/is.exe
country = TH


FILES

$HOME/.sbws.ini
Default sbws user configuration path.

Any other path to the configuration file can be specified using the sbws argument -c

SEE ALSO

sbws (1), https://sbws.readthedocs.org.

BUGS

Please report bugs at https://gitlab.torproject.org/tpo/network-health/sbws/-/issues/.

AUTHOR

Matt Traudt [sirmatt at ksu dot edu], juga [juga at riseup dot net]

COPYRIGHT

CC0

April 17, 2021 get_versions()[