skip to Main Content

Redirecting incoming tcp connections with redir

source: http://blog.remibergsma.com/2012/02/28/redirecting-incoming-tcp-connections-with-redir/

Redir redirects tcp connections coming in to a local port to a specified address/port combination like this:

 

The following redirects incoming web requests from 10.10.0.1 to 10.10.10.1:

redir –laddr=10.10.0.1 –lport=80 –caddr=10.10.10.1 –cport=80

And here the same for ftp. Note the –ftp option, this makes sure both passive and active ftp work.

redir –laddr=10.10.0.1 –lport=21 –caddr=10.10.10.1 –cport=21 –ftp=both
This Post Has 0 Comments

Leave a Reply

Back To Top