npm

Need private packages and team management tools?Check out npm Orgs. »

tcpslow

3.0.1 • Public • Published

tcpslow

NPM Version NPM Downloads Node.js Version Build Status Dependency Status Coverage Status

NPM

Creates a TCP or unix domain socket proxy that (optionally) delays packets.

Install

npm install -g tcpslow

Usage

For example, to create a proxy listening on TCP port 1522, forwarding to TCP port 1521, with 150 milliseconds of delay, you could run:

tcpslow -l 1522 -f 1521 -d 150

Delay is optional. If ommitted, data are sent as fast as possible.

Unix domain sockets are also supported, use -L or -F with a path as the argument. Unix domain sockets are sockets that are represented as files in the file system. They allow for exchanging data between processes executing within the same host operating system (e.g., not over a network).

Examples

tcpslow -l 9002 -f 9000

Listen on TCP port 9002 and forward to TCP port 9000.

tcpslow -l 1522 -f 1521 -v -p -d 150

Listen (-l) to TCP port 1522 and forward (-f) to an Oracle database on TCP port 1521. Delay (-d) data receiving by 150ms and display connection events (-v) and binary data (-p).

tcpslow -L foo -f 9000

Listen on unix domain socket and forward to TCP port 9000

tcpslow -L foo -F bar

Listen on unix domain socket foo and forward to unix domain socket bar.

install

npm i tcpslow

Downloadsweekly downloads

6

version

3.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability