[Old stuff] Simple proxyes

Wednesday, October 18th, 2006 - Español English

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.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>