Iptables – How to use iptables to foward outbound web traffic to a proxy

iptablesPROXY

I've been hitting my head for a while as to how to do this. The scenario is as follows: I want to be able to forward all outbound web traffic from a browswer to Tor so that it is properly anonymized. Normally, one could just set the http proxy in the browser and be done with it but this is with a browser without the ability to do so specifically, a mobile browser.

So ideally, what could be done then is to intercept all web/dns traffic requests from the browser and send it to Tor. Assume for this, that Tor will be running on the device too.

Best Answer

This isn't what you asked for but it might be of interest. Lets you proxify applications that don't have their own native proxy settings. http://proxychains.sourceforge.net/