redirect port pada linux menggunakan redir

By | February 21, 2018

system@test:~$ redir
usage:
redir –lport= –cport= [options]
redir –inetd –cport=

Options are:-
–lport= port to listen on
–laddr=IP address of interface to listen on
–cport= port to connect to
–caddr= remote host to connect to
–inetd run from inetd
–debug output debugging info
–timeout= set timeout to n seconds
–syslog log messages to syslog
–name= tag syslog messages with ‘str’
–connect= CONNECT string passed to proxy server
Also used as service name for TCP wrappers
–bind_addr=IP bind() outgoing IP to given addr
–ftp= redirect ftp connections
where type is either port, pasv, both
–transproxy run in linux’s transparent proxy mode
–bufsize= size of the buffer
–max_bandwidth= limit the bandwidth
–random_wait= wait before each packet
–wait_in_out= 1 wait for in, 2 out, 3 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