Add Linux script to contrib/ that limits outgoing bandwidth to Bitcoin nodes #2728

pull runeksvendsen wants to merge 1 commits into bitcoin:master from runeksvendsen:master changing 2 files +44 −0
  1. runeksvendsen commented at 7:43 PM on June 2, 2013: contributor

    This commit adds a Linux script that uses tc and iptables to limit outgoing bandwidth to Bitcoin nodes. All tcp connections with a source or destination port of 8333 are limited to the chosen rate. It does not alter the incoming bandwidth. Additionally, outgoing bandwidth to a host on a local LAN (192.168.x.x) is not limited.

  2. BitcoinPullTester commented at 9:24 PM on June 2, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/68d0a7d5a4ba59a977966f7c8b3ed0f113ff1586 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  3. petertodd commented at 9:40 PM on June 2, 2013: contributor

    Thanks. The other thing to do is squash those two commits together - we don't like having excess commits in the tree without a good reason. If you aren't familiar with git look up the git-rebase command (specificially the -i interactive flag) for how to do this.

  4. Add Linux script to limit outgoing bandwidth used by Bitcoin
    This commit adds a Linux script that uses tc and iptables to
    limit outgoing bandwidth to Bitcoin nodes. All tcp connections with
    a source or destination port of 8333 are limited to the chosen rate.
    It does not alter the incoming bandwidth. Additionally, outgoing
    bandwidth to a host on a local LAN (defined by the LOCALNET variable)
    is not limited.
    2002bceac5
  5. runeksvendsen commented at 10:18 AM on June 3, 2013: contributor

    Done. I think I did it right. I messed up the rebase so I had to go back. But it looks right to me now.

  6. BitcoinPullTester commented at 11:39 AM on June 3, 2013: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/2002bceac5b8fad593c9cf83cc4e7127029f2174 for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  7. jgarzik referenced this in commit a2a2874fc0 on Jun 10, 2013
  8. jgarzik merged this on Jun 10, 2013
  9. jgarzik closed this on Jun 10, 2013

  10. sipa commented at 3:18 PM on June 10, 2013: member

    meh

  11. runeksvendsen commented at 3:20 PM on June 10, 2013: contributor

    After speaking to sipa on #bitcoin-dev I think it would be appropriate to add a warning to the readme about the consequences of using this script. Perhaps that it's advisable to only use this script with the -nolisten option, as you otherwise risk feeding someone the blockchain really slowly.

  12. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 21:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me