ucspi-proxy(1)

ucspi-proxy1

Copy data between a ucspi client and server

Usage

ucspi-proxy [-v] [-t TIMEOUT] [HOST PORT]

Overview

This program is a simple loop copying data from a UCSPI server (file descriptor 0) to a client, and from a client to a server (FD 1). If either socket closes, ucspi-proxy exits. The other ucspi-proxy-* programs are based on this simple loop and have similar usage.

If HOST and PORT are given on the command line, ucspi-proxy will make a TCP connection with the given parameters. If neither are present, ucspi-proxy will use file descriptor 6 for the client socket, as provided by UCSPI client programs.

Options

-l MAXLINE

The maximum length of lines (from either server or client) to copy to the log. Defaults to 64.

-t TIMEOUT

When making an connection, ucspi-proxy will wait a maximum of TIMEOUT seconds before giving up. Defaults to 30.

-v

Print messages about errors and byte counts. Without this option, ucspi-proxy is silent.

Return value

Exits 0 if a normal end of file was reached on one of the sockets. Otherwise it exits 1.

Releases

12 releases since Debian 3.0 (Woody); the text changed 2 times.

  1. 3.0–5.0
  2. 6.0–7
  3. 8–13

-l since Debian 8 (Jessie); -t since Debian 6.0 (Squeeze).

From ucspi-proxy 0.99-7 in Debian 13 (Trixie). Parsed by carta from the page's man source.