Skip to content

Feature Request: Built-in Bandwidth Limiting Support for ProxyChain #586

@abdulahpro

Description

@abdulahpro

Hello, thank you for the amazing work on proxy-chain!

I'm requesting a feature to support built-in bandwidth throttling for incoming/outgoing traffic. Currently, proxy-chain does not provide any option to limit bandwidth per connection or globally. To achieve this, users have to manually use stream-throttle or similar libraries and hook into raw TCP connections using server.server.on('connection').

However, this approach is low-level, error-prone, and may break internal handling (e.g., TLS tunnels, HTTP parsing, etc.). Having official support for throttling would make it easier to:

  • Limit bandwidth per connection (e.g., 10 Mbps per client)
  • Set global bandwidth limits for the proxy server
  • Prevent abuse or overload of upstream proxies
  • Simulate network conditions for testing

Suggested API Design:

const server = new ProxyChain.Server({
  port: 8000,
  bandwidthLimit: {
    rate: 10 * 1024 * 1024, // bytes per second
    perConnection: true // or false for global throttle
  }
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions