BandwidthRate does not work in Docker
Without limitation, tor is able to occupy the entire outgoing bandwidth. I followed the instructions and set the .env to:
OR_PORT=65535
PT_PORT=65534
[...]
OBFS4_ENABLE_ADDITIONAL_VARIABLES=1
# set limit to 5 Mbit/s
#OBFS4V_BandwidthRate="3750 KBytes"
#OBFS4V_BandwidthBurst="7500 KBytes"
OBFS4V_BandwidthRate="375000 bytes"
OBFS4V_BandwidthBurst="625000 bytes"
OBFS4V_AddressDisableIPv6=1
# OBFS4V_ExitNodes=1
It will transfer to the container correctly:
docker exec -it tor /bin/bash
debian-tor@97...6:/$ cat /etc/tor/torrc
RunAsDaemon 0
SocksPort 0
BridgeRelay 1
Nickname DockerObfs4Bridge
Log notice file /var/log/tor/log
Log notice stdout
ServerTransportPlugin obfs4 exec /usr/bin/obfs4proxy
ExtORPort auto
DataDirectory /var/lib/tor
ORPort 65535
ServerTransportListenAddr obfs4 0.0.0.0:65534
[...]
# Additional properties from processed 'OBFS4V_' environment variables
BandwidthRate 375000 bytes
AddressDisableIPv6 1
BandwidthBurst 625000 bytes
However, the announced speed is 52.39 KiB/s (see attachment) and this corresponds to the really low traffic on my router.
Anyway, no matter how I change the numbers in the .env, nothing happens. If I don't set any, it ramps up too.