OT: tcp redictor with dump-(in|out)put-to-stdout capability

guru at Sisis.de guru at Sisis.de
Fri Apr 7 08:44:34 UTC 2006


El día Friday, April 07, 2006 a las 11:32:04AM +0300, Nikos Vassiliadis escribió:

> Hi,
> 
> I am searching for program similar to net/redir. It's
> a simple program that listens to a tcp port and redirects
> all input to another address:port. I want to debug http
> and I need something that does what redir does plus
> dumping all input & output to my terminal. Is there some-
> thing like that in ports? Or somewhere else?

There is one of the oldest firewall toolkits, the TIS' FWTK,

http://www.fwtk.org/main.html

it has some so called 'plug-gw', writte in C, which does exactly what
you want, excepting TCP on one address:port and directing it
transparently to some other address:port (like the woman in the old
POTS did with the cable); you can (and I did it for testing purposes
as well) easy expand it to collect the data to some file, for example.

	matthias

-- 
Matthias Apitz / Sisis Informationssysteme GmbH
ein Tochterunternehmen der OCLC PICA B.V. Leiden (NL)
D-82041 Oberhaching, Gruenwalder Weg 28g
Fon: +49 89 / 61308-351, Fax: -399, Mobile +49 170 4527211
http://www.sisis.de/~guru/


More information about the freebsd-questions mailing list