This is is a basic TCP tunnel i wrote as those I could find did not have the features I wanted. The main feature is logging to a terminal with different color depending on the direction of the data. But it can also handle multiple simultaneous connections and drop privileges to a different user if it is started as root.
I have used it to monitor HTTP traffic while developing a client program.
©2018 Mats Mattsson