system@test:~$ redir
usage:
redir –lport=
redir –inetd –cport=
Options are:-
–lport=
–laddr=IP address of interface to listen on
–cport=
–caddr=
–inetd run from inetd
–debug output debugging info
–timeout=
–syslog log messages to syslog
–name=
–connect=
Also used as service name for TCP wrappers
–bind_addr=IP bind() outgoing IP to given addr
–ftp=
where type is either port, pasv, both
–transproxy run in linux’s transparent proxy mode
–bufsize=
–max_bandwidth=
–random_wait=
–wait_in_out=
Version 2.2.1.
system@test:~$ redir –lport=13306 –laddr=192.168.1.166 –cport=3306 –caddr=192.168.0.2
^C
system@test:~$ redir –lport=13306 –laddr=0.0.0.0 –cport=3306 –caddr=192.168.0.2