in reply to Port forwarding utility in perl

A short search on CPAN reveals Stephanie Wehners modules, most important Net::ProxyMod.

Another interesting suite of modules is tne Net::PCap suite of modules (also Net::PCapUtils), which gives you access to packet capture and alteration functions of libpcap.