forwarder.pl - An example TCP port forwarder
forwarder.pl [ options ]
--help Display this help --manual Longer manpage --verbose Increase verbosity (may be used several times) --proxy [<host>:]<port> Local port to be forwarded (default: 10000) --server [<host>:]<port> Destination server (default: 10001) --connections <n> Maximum number of connection to accept (0 means never stop, default is 1)
This script is an example port forwarder written with Net::Proxy.
Net::Proxy
If run for a limited number of connections, it prints a small wallclock/CPU time report at the end.
It is used to profile Net::Proxy itself, by using Devel::DProf and the bench.pl script (also distributed in the eg/ directory of the Net-Proxy distribution.
Devel::DProf
Net-Proxy
Philippe Bruhat (BooK), <book@cpan.org>.
<book@cpan.org>
Copyright 2008 Philippe Bruhat (BooK), All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Proxy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Proxy
CPAN shell
perl -MCPAN -e shell install Net::Proxy
For more information on module installation, please visit the detailed CPAN module installation guide.