Skip to content
/ tcpslow Public

Easy way to slow down a TCP connection and/or introduce faults

License

Notifications You must be signed in to change notification settings

gx0r/tcpslow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tcpslow

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

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.

About

Easy way to slow down a TCP connection and/or introduce faults

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published