Changeset View
Changeset View
Standalone View
Standalone View
contrib/qos/tc.sh
#!/usr/bin/env bash | #!/usr/bin/env bash | ||||
# | # | ||||
# Copyright (c) 2017 The Bitcoin Core developers | # Copyright (c) 2017 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
export LC_ALL=C | |||||
#network interface on which to limit traffic | #network interface on which to limit traffic | ||||
IF="eth0" | IF="eth0" | ||||
#limit of the network interface in question | #limit of the network interface in question | ||||
LINKCEIL="1gbit" | LINKCEIL="1gbit" | ||||
#limit outbound Bitcoin protocol traffic to this rate | #limit outbound Bitcoin protocol traffic to this rate | ||||
LIMIT="160kbit" | LIMIT="160kbit" | ||||
#defines the IPv4 address space for which you wish to disable rate limiting | #defines the IPv4 address space for which you wish to disable rate limiting | ||||
LOCALNET_V4="192.168.0.0/16" | LOCALNET_V4="192.168.0.0/16" | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |