Note: although iOS is technically for "cell phones" which aren't permitted on SU, this questions seems is technical and not about regular usage, that I consider it computer software.
I'd like to have the traffic of both Safari and apps routed through a remote linux server. I thought I would use the terminal app (obviously, the iDevice is jailbroken) to create a local SOCKS proxy with "ssh -D" to open a secure tunnel to the server.
How would I go about changing the global proxy settings to use the localhost proxy?
Any other ideas on achieving the same effect are most welcome.