Redirecting TCP ports with redir

To redirect TCP connections with redir utility,  Simply type the

command such as below

 

redir --laddr=<listen_address> --lport=<listen_port>  --caddr=<connect_address>  --cport=<connect_port>

 

Suppose that the ip address of our system is 60.50.40.31 and we woud like to connect to 64.64.64.64  ip address and 3120 port over our system. Simply, we want redir utiliy to redirect connections coming to 60.50.40.31 on port 3120 to 64.64.64.64  port 3120. We have to run redir such as below to do so:

redir --laddr=60.50.40.31 --lport=3120  --caddr=64.64.64.64 --cport=3120

 

  Local address specified with --laddr should be one of the ip addresses that we can access  our redirecting system. Setting other ip addresses will make no sense.  We can set various combinations using the parameters such as we can set local listening port to 80 and remote connect port to 3120 to make clients connect to 80 istead of 3120.

 







You must be login first or sign-up for an account to post comments.