Reverse TCP proxy server for Linux, used for piping requests and responses to a secondary server without copying data into user space.
splitproxy <port> <remotehost:port> <logginghost:port>
ex: splitproxy 80 10.0.1.1:80 10.0.1.2:80
listens on port 80, tees the incoming request to 10.0.1.1:80 and 10.0.1.2:80, then tees the response to the client and 10.0.1.2:80.
make test
creates
testclient <host:port>
- a client that pipes stdin to a socket with connected to host:porttestserver <port>
which listens on and pipes socket data to stdout
./test/test.sh
- pipes data from
./test/in.txt
totcpclient
tcpclient
connects tosplitproxy
splitproxy
connects to twotestserver
s and streams the proxy's incoming data to thetestservers
- diffs the files and prints either the diff, or a success message if the diff is empty.