I need Classes written to proxy all traffic from ports on the local box to ports on a remote box. The code needs to be cross platform.
These classes will be integrated into an existing program. The program already gets the rules and returns them in a ptree format, but that can easily be changed. The source format for the rules is JSON.
Rules contain ID, source port, remote host, remote port, and protocol, protocol can be 'tcp', 'udp', or 'both'. remote host will be an IP address.
Attached is the example Main function with the desired functionality.