Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christoph-jerolimov/tcpproxy
TCPproxy: Throttle your TCP connections now!
https://github.com/christoph-jerolimov/tcpproxy
Last synced: about 2 months ago
JSON representation
TCPproxy: Throttle your TCP connections now!
- Host: GitHub
- URL: https://github.com/christoph-jerolimov/tcpproxy
- Owner: christoph-jerolimov
- Created: 2014-11-16T00:39:36.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-16T00:52:44.000Z (about 10 years ago)
- Last Synced: 2024-11-15T00:34:45.145Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## TCPproxy: Throttle your TCP connections now!
$ npm install -g tcpproxy
The default command will delay each TCP connection one second and redirect port 8080 to 80:
$ tcpproxy -a www.google.com
Finish transfer! -- Time: 150 ms -- Client: 76 bytes -- Server: 18352 bytes
Finish transfer! -- Time: 160 ms -- Client: 76 bytes -- Server: 18310 bytesYou can throttle the connection with many other options, for example with 10 bytes per 100 milliseconds:
$ tcpproxy -a www.google.com --bps 10/100
Other options:
-b, --bindAddress Local address where the proxy should be bind,
default 127.0.0.1
-l, --bindPort Local port where the proxy should be bind,
default 8080
-a, --originAddress Address of the origin server, required
-p, --originPort Port of the origin server, default 80
-d, --delayConnection Delay in millisecond until the connection will
be established to the origin server,
default 1000ms
--bps, --delayBytesPerSecond Delay bytes per millisecond (bytes/millisecond)
--delayChunkFromClientToOrigin Delay chunk from client to origin in millisecond
--delayChunkFromOriginToClient Delay chunk from origin to client in millisecond