Home| general |src.bin|tcpip| buffer_server Index

buffer_server

Syntax
buffer_server --help
buffer_server [-lf logname] [-f portname] [-l lport] hostname rport
Synopsis

Simple TCP/IP connection relay and buffer.

Options
--helpprint the help message and exit.
--versionprint the RST version number and exit.
-lf lognamelog connections and information in the file logname. By default, connections are recorded in log.rt.
-f portnamerecord the port number that the server is listening for connections on in the file portname. By default, the port is recorded in port.id.
-l portforce the server to listen on the local port number port. By default, the server requests a port number from the Operating System.
hosthostname or IP number of the system to connect to.
rportport number to connect to on the server.
Description

The task is both a TCP/IP client and a server. It receives data from a remote host and then relays it to one or more client tasks.

Each connection spawns a new child process that connects to the remote server. As data is received it is buffered and relayed to the client. Once the client disconnects the child process will die.

The main use for this program is to disguise the origin of a TCP/IP data stream. Java Applets will not allow connections to be made with any host other than the web server that they originated from. By using the buffer_server task, data from any host can be relayed through the web server.

Examples
buffer_server -f port.id -lf log peanut.jhuapl.edu 1024

Connects to the remote host peanut.jhuapl.edu at port 1024 and relay data from a port allocated by the operating system. The port number is recorded in the file "port.id" and logs of all transactions are recorded in the file "log.rt".

buffer_server -l 5000 -f port.id -lf log peanut.jhuapl.edu 1200

Connects to the remote host peanut.jhuapl.edu at port 1024 and relay data from the port 5000. The port number is recorded in the file "port.id" and logs of all transactions are recorded in the file "log.rt".