in reply to Port forwarding utility in perl

Do you want a TCP proxy or a network sniffer? They are different tools. A TCP proxy in Perl is easy; Net::ProxyMod looks like one. There also seems to be Net::Diver for UDP packets. A firewall can turn an explicit proxy into a transparent one by forwarding connections to the proxy.

I don't know of any network sniffers written in Perl. It should be possible to use libpcap through Net::Pcap. But ethereal or tcpdump would work better.

Replies are listed 'Best First'.
Re^2: Port forwarding utility in perl
by Anonymous Monk on Jan 12, 2006 at 17:40 UTC
    Hi,

    I'm looking for something similar -- I need to see the queries going out from an LDAP client on Windows, to an LDAP server (Oracle OID), and want to use port-fowarding in Perl.

    I tried the various examples, but none worked -- in every case, the Perl script just blocked -- it never saw the end-of-transmission and somehow just blocked on the send or receive.

    Will this simply not work on Windows? Is there some alternative?

    Cheers,

    dehansen