Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability
On Friday 07 April 2006 15:10, Karl Pielorz wrote: > >> Why dont you wish use tcpdump? > > > > Cause I want to debug http, which is ASCII. Having every > > tcp segment in hex and/or ASCII won't help much. > > 'GET / HTTP/1.1' is much easier to read than the hexdump. > > 0x4174206c6561737420666f72206d653a29 > > Have you tried tcpflow? That can either dump the actual flows to files - or > you can dump them to the console... > I have already found what I was looking for. net/balance:) > If you're sending it to the console, and it might be gifs / other binary, > piping it through 'strings' is usually a good idea :) > > -Kp > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability
Why dont you wish use tcpdump? Cause I want to debug http, which is ASCII. Having every tcp segment in hex and/or ASCII won't help much. 'GET / HTTP/1.1' is much easier to read than the hexdump. 0x4174206c6561737420666f72206d653a29 Have you tried tcpflow? That can either dump the actual flows to files - or you can dump them to the console... If you're sending it to the console, and it might be gifs / other binary, piping it through 'strings' is usually a good idea :) -Kp ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability
On Friday 07 April 2006 14:27, Igor Robul wrote: > On Fri, Apr 07, 2006 at 11:32:04AM +0300, Nikos Vassiliadis wrote: > > 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? > > Why dont you wish use tcpdump? Cause I want to debug http, which is ASCII. Having every tcp segment in hex and/or ASCII won't help much. 'GET / HTTP/1.1' is much easier to read than the hexdump. 0x4174206c6561737420666f72206d653a29 > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability
On Fri, Apr 07, 2006 at 11:32:04AM +0300, Nikos Vassiliadis wrote: > 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? Why dont you wish use tcpdump? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability
On Friday 07 April 2006 12:53, [EMAIL PROTECTED] wrote: > El día Friday, April 07, 2006 a las 12:43:09PM +0300, Nikos Vassiliadis escribió: > > > 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. > > > > It doesn't build on >=5.x :( > > The fwtk2.1 stops building in 'auth' on 6.0-REL with: > > $ make > ... > cc -g -o authsrv authsrv.o proto.o db.o pass.o srvio.o ../libauth.a > ../libfwall.a pass.o(.text+0x64): In function `passverify': > /usr/home/guru/sysSrc/fwtk/fwtk/auth/pass.c:39: undefined reference to > `crypt' pass.o(.text+0x129): In function `passset': > /usr/home/guru/sysSrc/fwtk/fwtk/auth/pass.c:70: undefined reference to > `crypt' *** Error code 1 > > but you don't need the 'authsrv'; just go over to > > $ cd plug-gw > $ make > cc -I.. -g -c plug-gw.c > cc -g -o plug-gw plug-gw.o ../libfwall.a > chmod 755 plug-gw > $ > > or fix the problem with 'crypt' :-) I installed 15 ports or so and finally I have found net/balance. It does the job nicely. I guess doing it in Perl (without knowing Perl) would be much faster... Thanks matthias Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability
El día Friday, April 07, 2006 a las 12:43:09PM +0300, Nikos Vassiliadis escribió: > > 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. > > It doesn't build on >=5.x :( The fwtk2.1 stops building in 'auth' on 6.0-REL with: $ make ... cc -g -o authsrv authsrv.o proto.o db.o pass.o srvio.o ../libauth.a ../libfwall.a pass.o(.text+0x64): In function `passverify': /usr/home/guru/sysSrc/fwtk/fwtk/auth/pass.c:39: undefined reference to `crypt' pass.o(.text+0x129): In function `passset': /usr/home/guru/sysSrc/fwtk/fwtk/auth/pass.c:70: undefined reference to `crypt' *** Error code 1 but you don't need the 'authsrv'; just go over to $ cd plug-gw $ make cc -I.. -g -c plug-gw.c cc -g -o plug-gw plug-gw.o ../libfwall.a chmod 755 plug-gw $ or fix the problem with 'crypt' :-) 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/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability
On Friday 07 April 2006 11:44, [EMAIL PROTECTED] wrote: > 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. It doesn't build on >=5.x :( Thanks > > matthias ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: OT: tcp redictor with dump-(in|out)put-to-stdout capability
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/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
OT: tcp redictor with dump-(in|out)put-to-stdout capability
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? Thanks, Nikos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"