File: redir.man

package info (click to toggle)
redir 2.2.1-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 264 kB
  • ctags: 146
  • sloc: ansic: 2,273; sh: 435; makefile: 54
file content (122 lines) | stat: -rw-r--r-- 3,317 bytes parent folder | download | duplicates (5)
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
.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=type ]
.RB [ \--transproxy ]
.RB [ \--connect=host:port ]
.I --lport=port
.I --cport=port
.RB [ \--bufsize=n ]
.RB [ \--maxbandwidth=n ]
.RB [ \--random_wait=n ]
.RB [ \--wait_in_out=n ]
.ll -8
.br
.B redir
.RB \--inetd
.RB [ \--caddr=host ]
.RB [ \--debug ]
.RB [ \--syslog 
.RB [ \--name=str ] 
.RB [ \--timeout=n ]
.RB [ \--ftp=type ]
.RB [ \--transproxy ]
.RB [ \--connect=host:port ]
.I --cport=port
.RB [ \--bufsize=n ]
.RB [ \--maxbandwidth=n ]
.RB [ \--random_wait=n ]
.RB [ \--wait_in_out=n ]
.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.
Depending on how redir was compiled, not all options may be available.
.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 ftp connections.  Type should be specified as either "port",
"pasv", or "both", to specify what type of FTP connection to handle.
Note that --transproxy often makes one or the other (generally port)
undesirable. 
.TP
.B \--transproxy
On a linux system with transparany proxying enables, causes redir to
make connections appear as if they had come from their true origin.
(see transproxy.txt in the source archive)
.TP
.B \--connect
Redirects connections through an HTTP proxy which supports the CONNECT 
command.  Specify the address and port of the proxy using --caddr and
--cport.  --connect requires the hostname and port which the HTTP
proxy will be asked to connect to.
.TP
.B \--bufsize n
Set the bufsize (defaut 4096) in bytes. Can be used combined with
--maxbandwidth or --random_wait to simulate a slow connection.
.TP
.B \--maxbandwidth n
Reduce the bandwidth to be no more than n bits/sec.  The algorithme is
basic, the goal is to simulate a slow connection, so there is no pic
acceptance.
.TP
.B \--random_wait n
Wait between 0 and 2 x n milliseconds before each "packet". A "packet" is
a bloc of data read in one time by redir. A "packet" size is always less
than the bufsize (see also --bufsize).
.TP
.B \--wait_in_out n
Apply --maxbandwidth and --random_wait for input if n=1, output if n=2 and
both if n=3.
.SH "SEE ALSO"
inetd(1)