Binary package “redir” in ubuntu trusty

Redirect TCP connections

 It can run under inetd or stand alone (in which case it handles
 multiple connections). It is 8 bit clean, not limited to line
 mode, is small and light. Supports transparency, FTP redirects, http
 proxying, and bandwidth limiting.
 .
 redir is all you need to redirect traffic across firewalls authenticate
 based on an IP address etc. No need for the firewall toolkit. The
 functionality of inetd/tcpd and "redir" will allow you to do everything
 you need without screwy telnet/ftp etc gateways. (I assume you are running
 IP Masquerading of course.)