This tutorial shows how to setup an open proxy in ubuntu. I am using such a setup for scraping purposes and it works quite well.