1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
.PU
.TH REDIR 1 local
.SH NAME
redir \- redirect tcp connections
.SH SYNOPSIS
.ll +8
.B redir
.RB [ \--debug ]
.RB [ \--syslog
.RB [ \--name=str ] ]
.RB [ \--timeout=n ]
.I [ remote_host ]
.I listen_port
.I remote_port
.ll -8
.br
.B redir
.RB \--inetd
.RB [ \--debug ]
.RB [ \--syslog
.RB [ \--name=str ] ]
.RB [ \--timeout=n ]
.I [ remote_host ]
.I remote_port
.ll -8
.br
.SH DESCRIPTION
.I Redir
redirects tcp connections coming in to a local port to a specified
address/port combination.
.PP
It may be run either from inetd or as a standalone daemon.
.SH OPTIONS
.TP
.B \--inetd
Run as a process started from inetd, with the connection passed as stdin
and stdout on startup.
.TP
.B \--debug
Write debug output to stderr or syslog.
.TP
.B --timeout
Timeout and close the connection after n seconds on inactivity.
.TP
.B \--syslog
Log information to syslog.
.SH "SEE ALSO"
inetd(1)
|