This is just proof-of-concept code demonstrating the usage of iptables and a bit of ruby to middle TCP streams