[Old stuff] Simple proxyes
I f you need a quick-hack TCP proxy, netcat, a named fifo and one pipe might do the trick:
mknod fifo p
netcat -l -p [inbound_port] 0<fifo | netcat localhost [outbound_port] 1>fifo
Of course you’ll need netcat. But it’s also possible and far more fun, to program one oneself or look at/improve one already made. At my job this february, I chose the latter and found proxyc by Adrian Montero. While looking at it (to check what I was about to use), I worked a bit on the code fixing little things here and there, coding my own personal style and showing my usual lack of originality. The result, though a bit late, is available for download here just in case someone is interested.

