-ainterface, --acceptinterface or --bindinterface
Specify an interface that will be used to listen for client connections. By default, all network
interfaces are used.
-bbytecount or --bytesbytecount
Limit the length of a TCP session to bytecount bytes. If a session exceeds this quantity, it will
be closed on the next data packet boundary.
-c or --connect
Connect to the specified client instead of waiting for the client to connect. This is meant for
expert users who know what they are doing only. If no hostname is specified, TCPreen will try to
connect to the local host.
Use -aaddress to specify the client address to connect to.
-d or --daemon
Turn on daemonmode. When this option is selected, TCPreen will run in the background and send
informations to syslog instead of the console. This enables quietmode and multipleclientsmode
automatically.
You will probably want to use option -F as well.
NOTE: if you turn this feature on, log files will be created from the root directory, not from the
current one. See daemon(3) for more details.
-flogformat or --formatlogformat
Selects a format for output. Supported formats includes: C (C source strings-like encoding), hex
(hexadecimal data dump), count (write quantities of data), null (only displays new connections
addresses), password (basic password capture, unfinished yet), raw (write data as is, even if it
is not 7-bit clean), strip (replace non printable characters with dots).
-Fnproc or --forknproc
Specifies the maximum number of sessions that can be treated at the same time. By default, only
one session is allowed at a time not so as to keep the program output easy to read.
-h or --help
Display some help and exit.
-l or --listen
Listen for the "server" instead of connecting to it. This can be used by advanced users to run a
human brain-powered server by telnet-ing to TCPreenserver address. An optionnal listening
interface address can be specified.
-mconn_num or --maxconnconn_num
Handle conn_num consecutive client connections before exiting. When this option is not used, the
program will run forever (until interrupted).
-n or --numeric
Disable reverse DNS lookup and service name resolution. Node names and port numbers will appear
in numeric form. This option will speed up connections a little.
-ologfile or --outputlogfile
Save data to file logfile. If it already exists, it will be overwritten. "-" is used for stdout.
Multiple log files can be used (with different formats). For example:
tcpreen -f hex -o hexafile.log -f C -o file.log smtp
will save hexafile.log in hexadecimal and file.log in C encoding.
-p or --protocol
Specifies which network protocol(s) is/are going to be used. If a single protocol name is
specified, it will be used both ways. Two different protocols can be used on each side by
separating them with a slash like this: 'tcp/tcp6'. The first protocol will then be used to
communicate with the server, the last one will be used to exchange data with the client.
The following protocols are currently recognized: tcp (TCP over IPv4), tcp6 (TCP over IPv6) and
unix or local (Unix interprocess streams). By default, tcp is used.
-q or --quiet
Turn on quietmode: Do not write anything on the standard output (stdout).
-shostname or --serverhostname
Connect to the specified server instead of the local host which is used by default.
-uuser or --useruser
When run as super-user, drop privilege and set UID to that of user (it must be a valid username).
That is highly recommended if tcpreen is to be bound to a reserved port, which only root can bind
on Unix systems.
You must be root to use this option.
-v or --verbose
Increase program verbosity. This can be cumulated.
-V or --version
Display program version and license and exit.