1REDIR(1)                    General Commands Manual                   REDIR(1)
2
3
4

NAME

6       redir - redirect tcp connections
7

SYNOPSIS

9       redir    [--laddr=incoming.ip.address]   [--caddr=host]   [--debug]   [--syslog
10       [--name=str]   [--timeout=n]   [--bind_addr=my.other.ip.address]   [--ftp=type]
11       [--transproxy]  [--connect=host:port]  --lport=port  --cport=port [--bufsize=n]
12       [--max_bandwidth=n] [--random_wait=n] [--wait_in_out=n]
13       redir --inetd [--caddr=host] [--debug] [--syslog] [--name=str] [--time‐
14       out=n]  [--ftp=type]  [--transproxy] [--connect=host:port] --cport=port
15       [--bufsize=n] [--max_bandwidth=n] [--random_wait=n] [--wait_in_out=n]
16

DESCRIPTION

18       Redir redirects tcp connections coming in to a local port to  a
19       specified address/port combination.
20
21       It  may  be  run  either  from inetd or as a standalone daemon.
22       Depending on how redir was compiled, not  all  options  may  be
23       available.
24

OPTIONS

26       --lport
27              Specifies  port  to  listen for connections on (when not
28              running from inetd)
29
30       --laddr
31              IP address to bind to  when  listening  for  connections
32              (when not running from inetd)
33
34       --cport
35              Specifies port to connect to.
36
37       --caddr
38              Specifies remote host to connect to. (localhost if omit‐
39              ted)
40
41       --inetd
42              Run as a process started from inetd, with the connection
43              passed as stdin and stdout on startup.
44
45       --debug
46              Write debug output to stderr or syslog.
47
48       --name Specify  program  name to be used for TCP wrapper checks
49              and syslog logging.
50
51       --timeout
52              Timeout and close the  connection  after  n  seconds  of
53              inactivity.
54
55       --syslog
56              Log information to syslog.
57
58       --bind_addr
59              Forces  redir  to  pick  a specific address/interface to
60              bind to when it listens for incoming connections.
61
62       --ftp  When using redir for an  FTP  server,  this  will  cause
63              redir  to also redirect ftp connections.  Type should be
64              specified as either "port", "pasv", or "both", to  spec‐
65              ify  what  type  of FTP connection to handle.  Note that
66              --transproxy often makes one  or  the  other  (generally
67              port) undesirable.
68
69       --transproxy
70              On  a  linux  system  with transparent proxying enabled,
71              causes redir to make connections appear as if  they  had
72              come      from      their     true     origin.      (see
73              /usr/share/doc/redir-2.2.1/transproxy.txt)
74
75       --connect
76              Redirects connections through an HTTP proxy  which  sup‐
77              ports the CONNECT command.  Specify the address and port
78              of the  proxy  using  --caddr  and  --cport.   --connect
79              requires the hostname and port which the HTTP proxy will
80              be asked to connect to.
81
82       --bufsize n
83              Set the bufsize (defaut 4096) in bytes. Can be used com‐
84              bined  with --max_bandwidth or --random_wait to simulate
85              a slow connection.
86
87       --max_bandwidth n
88              Reduce the bandwidth to be no more than n bits/sec.  The
89              algorithme is basic, the goal is to simulate a slow con‐
90              nection, so there is no pic acceptance.
91
92       --random_wait n
93              Wait between 0  and  2  x  n  milliseconds  before  each
94              "packet".  A "packet" is a bloc of data read in one time
95              by redir. A "packet" size is always less than  the  buf‐
96              size (see also --bufsize).
97
98       --wait_in_out n
99              Apply  --max_bandwidth  and  --random_wait  for input if
100              n=1, output if n=2 and both if n=3.
101

SEE ALSO

103       inetd(1)
104
105
106
107                                     local                            REDIR(1)
Impressum