I was sitting at a customer (yes real work) the other day without access to VPN (ports blocked) and i was roaming so daren't switch on 3g due to the extortionate costs. They did have a wireless access and required a proxy for browsing, web mail, etc. Unfortunately if you're connected to wireless you can't also turn your wifi on your laptop into an adhoc hotspot for your phone (even though ad-hoc works perfectly now) so i quickly downloaded transproxy, compiled it (i did have access to the NDK on my lappie luckily) , and set up iptables and voila, a transparent proxy was up and running and everything sprung into life on my Desire. The nice thing (as mentioned in the subject) is that this is not limited to only the browser (i.e. it's not setting the http_proxy in the SQlite db) so even my MAPS, and everything that uses comms thru port 80 came to life.
Posting this if anyone's interested. I hear the CM6 now has proxy access, but this should work for any ROM that is rooted (i.e has su installed) and has iptables support.
Basic HTTP auth is supported, NTLM is NOT SUPPORTED CURRENTLY (and may never be as i don't have a server i can test with).
UPDATE 7th MAY 2011: PLEASE READ THIS POST FIRST
PLEASE post logcat outputs while starting transproxy or it makes it hard for me to diagnose errors. Just saying it doesn't work will not help me fix it.
Version 3.08 beta
- New GUI only. Thanks lots to user fonix232
Version 3.04-3.07
- Bugfixes
Version 3.03
- Major rewrite of redsocks to support transparent proxying (no need to support tproxy binary).
Version 3.02
- Limit the forks as some complex pages may result in large number of process forks which may lead to memory depletion, slowdown in phone, crash, etc.
- Add port 5228 redirection for market auth
Version 3.01
- Split traffic for b*stard proxies that don't support port 80 connections via CONNECT method
Version 3.00
- Full transparency (currently only 80/443 forwarded)
Version 2.04
- Fixed the loss of focus bug when going from on -> off in the GUI
- Fixed the hostname resoltion bug in the Host field.
Version 2.03
- SOCKS 4a/5 support
- Fix password quoting in proxy.sh script
- Removed iptables binary due to ROM incompatabilites. Your ROM must support and have iptables binary included.
Versions 2.01/2.02
- Private testing versions only to fix bugs.
Version 2.00
- Rewrite to support (basic) proxy auth
- Disabled https as it cannot work transparently
Version 1.03
- Fix to work nexus one not having multiport module
- Included 'iptables' binary
Version 1.02
- Internal only version
Version 1.01
- Fix for broken 'su' parsing by splitting the iptables script into 2 scripts to start/stop
Version 1.0
- Broken version not working with 'su' correctly
TODO:
- Abritrary forwarding (i.e. 80,443,++++) -but the upstream proxy needs to allow those ports which it seems many b*stard proxies don't. Use a VPN for that if you can.
- NTLM support
Posting this if anyone's interested. I hear the CM6 now has proxy access, but this should work for any ROM that is rooted (i.e has su installed) and has iptables support.
Basic HTTP auth is supported, NTLM is NOT SUPPORTED CURRENTLY (and may never be as i don't have a server i can test with).
UPDATE 7th MAY 2011: PLEASE READ THIS POST FIRST
PLEASE post logcat outputs while starting transproxy or it makes it hard for me to diagnose errors. Just saying it doesn't work will not help me fix it.
Version 3.08 beta
- New GUI only. Thanks lots to user fonix232
Version 3.04-3.07
- Bugfixes
Version 3.03
- Major rewrite of redsocks to support transparent proxying (no need to support tproxy binary).
Version 3.02
- Limit the forks as some complex pages may result in large number of process forks which may lead to memory depletion, slowdown in phone, crash, etc.
- Add port 5228 redirection for market auth
Version 3.01
- Split traffic for b*stard proxies that don't support port 80 connections via CONNECT method
Version 3.00
- Full transparency (currently only 80/443 forwarded)
Version 2.04
- Fixed the loss of focus bug when going from on -> off in the GUI
- Fixed the hostname resoltion bug in the Host field.
Version 2.03
- SOCKS 4a/5 support
- Fix password quoting in proxy.sh script
- Removed iptables binary due to ROM incompatabilites. Your ROM must support and have iptables binary included.
Versions 2.01/2.02
- Private testing versions only to fix bugs.
Version 2.00
- Rewrite to support (basic) proxy auth
- Disabled https as it cannot work transparently
Version 1.03
- Fix to work nexus one not having multiport module
- Included 'iptables' binary
Version 1.02
- Internal only version
Version 1.01
- Fix for broken 'su' parsing by splitting the iptables script into 2 scripts to start/stop
Version 1.0
- Broken version not working with 'su' correctly
TODO:
- Abritrary forwarding (i.e. 80,443,++++) -but the upstream proxy needs to allow those ports which it seems many b*stard proxies don't. Use a VPN for that if you can.
- NTLM support
Attachments
Last edited: