File: redir.man

package info (click to toggle)
redir 2.1-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 156 kB
  • ctags: 82
  • sloc: ansic: 1,335; makefile: 48
file content (85 lines) | stat: -rw-r--r-- 1,942 bytes parent folder | download | duplicates (3)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
.PU
.TH REDIR 1 local
.SH NAME
redir \- redirect tcp connections
.SH SYNOPSIS
.ll +8
.B redir
.RB [ \--laddr=incoming.ip.address ]
.RB [ \--caddr=host ]
.RB [ \--debug ]
.RB [ \--syslog 
.RB [ \--name=str ] 
.RB [ \--timeout=n ]
.RB [ \--bind_addr=my.other.ip.address ]
.RB [ \--ftp ]
.RB [ \--transproxy ]
.I --lport=port
.I --cport=port
.ll -8
.br
.B redir
.RB \--inetd
.RB [ \--caddr=host ]
.RB [ \--debug ]
.RB [ \--syslog 
.RB [ \--name=str ] 
.RB [ \--timeout=n ]
.RB [ \--ftp ]
.RB [ \--transproxy ]
.I --cport=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 \--lport
Specifies port to listen for connections on (when not running from inetd)
.TP
.B \--laddr
IP address to bind to when listening for connections (when not
running from inetd) 
.TP
.B \--cport
Specifies port to connect to.
.TP
.B \--caddr
Specifies remote host to connect to. (localhost if omitted)
.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 \--name
Specify program name to be used for TCP wrapper checks and syslog logging.
.TP
.B --timeout
Timeout and close the connection after n seconds on inactivity.
.TP
.B \--syslog
Log information to syslog.
.TP
.B \--bind_addr
Forces redir to pick a specific address/interface to bind to when it listens 
for incoming connections. 
.TP
.B \--ftp
When using redir for an FTP server, this will cause redir to also
redirect passive ftp connections, so that clients using passive mode
will work properly.
.TP
.B \--transproxy
On a linux system with transparent proxying enabled, causes redir to
make connections appear as if they had come from their true origin.
(see transproxy.txt in the source archive)
.SH "SEE ALSO"
inetd(1)