yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] shokwaav:
yup same with me, appears that it doesnt ask superuser for permissions, i cleared data for superuser but still :confused:
[Desire Android Development] liang3404814:
That's also what I think.

Biggest difference between 3.02 and the older one:the new one never let Superuser to ask me for a permission!
[Desire Android Development] Bradshort:
a step by step on how you would generate that log would be fantastic!
[Desire Android Development] liang3404814:
see here ip208-100-42-21.static.xda-developers.com/showthread.php?t=676963

or use DroidExplorer's logger.
[Desire Android Development] :
Here is 2.04 not working, it just slows my phone down a lot, and pages don't load

Cyanogen 6, EVO

3.02 doesn't work at all

V/tproxy ( 745): OnCheckedListner for Checkbutton - true
V/tproxy ( 745): setwidgetsinactive - false
W/IInputConnectionWrapper( 576): showStatusIcon on inactive InputConnection
I/ActivityManager( 123): Displayed activity com.hasbox.tproxy/.Main: 272 ms (total 340 ms)
D/LocationMasfClient( 123): getNetworkLocation(): Returning cache location with accuracy 1406.0
D/dalvikvm( 247): GC_FOR_MALLOC freed 5586 objects / 416768 bytes in 30ms
V/tproxy ( 745): OnClickListner for ToggleButton - true
V/tproxy ( 745): proxy.sh start envp(type=socks,host=76.126.97.(secret),port=8080,auth=true,user=jigglywiggly,pass=*****)
V/tproxy ( 745): su -c /data/data/com.hasbox.tproxy/redirect-start.sh
D/su ( 762): 10112 com.hasbox.tproxy executing 0 /data/data/com.hasbox.tproxy/redirect-start.sh using shell /system/bin/sh : sh
V/tproxy ( 745): setwidgetsinactive - true
W/IInputConnectionWrapper( 745): showStatusIcon on inactive InputConnection
I/ActivityThread( 3142): Publishing provider browser: com.android.browser.BrowserProvider
D/dalvikvm( 3142): GC_FOR_MALLOC freed 5267 objects / 309992 bytes in 31ms
I/ActivityManager( 123): Displayed activity com.android.browser/.BrowserActivity: 1777 ms (total 1777 ms)
D/dalvikvm( 123): GC_FOR_MALLOC freed 24474 objects / 1039944 bytes in 164ms
D/dalvikvm( 123): GC_FOR_MALLOC freed 30461 objects / 1244200 bytes in 127ms
D/dalvikvm( 123): GC_FOR_MALLOC freed 31168 objects / 1325344 bytes in 132ms
D/dalvikvm( 123): GC_FOR_MALLOC freed 31596 objects / 1348320 bytes in 100ms
D/dalvikvm( 123): GC_FOR_MALLOC freed 31896 objects / 1362672 bytes in 162ms
[Desire Android Development] Bradshort:
Cheers bud :)
[Desire Android Development] asmaridis:
Turns out I've been trying 3.01 instead of 3.02. Just tried 3.02 and it works perfectly except market download. Browser, market browsing, xda app, gmail all work. Thanks for the work daveba!!!
[Desire Android Development] monguly:
I test on Acer Liquid Android 2.1. Rom from Acer Android 2.1

Use Ver. 3.02，no iptables binary found on your Rom

Use Ver. 2.04，redirect-start.sh failed
[Desire Android Development] STetzel:
hello daveba,

is it possible to get the source. I would like to help.
[Desire Android Development] Omamiblou:
The redirect works but I have problems with the name resolution (DNS). I cannot figure out how to configure this on android... (resolv.conf?)
[Desire Android Development] daveba:
Anything that goes thru the proxy doesn't get resolved locally as the remote server will resolve the URL passed to it. You shouldn't need to change resolv.conf at all.

Remember not all apps will go thru the proxy, but only those that use port 80,443 using HTTP requests.
[Desire Android Development] daveba:
Of course. Only apps that make HTTP(s) requests thru the ports you redirected (i.e. 80,443) will work. Mail (imap) and other apps will not work. If you want full proxying (i.e. Masquerading) then you need to set up a VPN. Most companies or organisations block all outgoing ports except proxy http(s) ports, so this tye of proxying works only for some egde cases.
[Desire Android Development] emiconi:
Many Thanks,

do you know what is the port used by the Market?

Thanks
[Desire Android Development] wallla:
I just downloaded an app on wifi while logging the router's traffic.

The phone uses ports 80, 443 and 5228.
[Desire Android Development] BAC:
great ~

this is definitely great ~

works fine with all tcp port 80 traffic.

but as mentioned before download from market fail and gmail could not refreshed,

seems to be not work properly with ssh port 443. anyone confirms or corrects me ?

for example: when "Retry" gmail connection OR refresh. the squid proxy have this log entry

1283258032.752 0 111.222.333.444 NONE/400 3564 x%FE%E7:%B8%D1xT%17%8DW%DF%C6%C0%D6%7B%A0%01G%82%EE%F0 - NONE/- text/html

the URL is invalid , right?

could be something wrong with the tproxy when processing ssl protocol ?
[Desire Android Development] magdap:
Ok, I granted root now with the one click method of androot. (seems to work good on my n1 btw)

can you please give me a good tutorial of what i have to do now in order to add proxy settings. i have no clue where i have to write that stuff...
[Desire Android Development] magdap:
C'mon.... there must be someone who can tell where to type in all these settings... I have a terminal app but don't know what exactly to type and where to fill in the proxy and not the port...
[Desire Android Development] wallla:
It's just there's nothing more to tell. Everything necessary is explained in the first post.

Either post a specific question, that isn't already answered, or leave it.

You're right.. It has to be typed into the terminal emulator.
[Desire Android Development] daveba:
I've nearly finished the app for this. Being a novice android developer (but seasoned C one) it's taking slightly longer than expected especially as i need to bundle a binary to be executed. So if you hold on for a couple of more days, there'll be an app for this. It's a bit rough at the moment but it works for me.

Also replying to BAC, yes HTTPS works for me and it should also according to the transproxy README

version 1.4 (5th Feb 2001)
** Fixed HTTPS proxy support. You can now point your browsers
** proxy configuration at transproxy and it will correctly
** process the CONNECT method.

I put version 1.6 in the first post.
[Desire Android Development] magdap:
ok... the i'll wait a couple of days more :-) do your best
[Desire Android Development] flame10:
This has got real potential, will wait for your app

I did try through adb, but still get

FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378

SO if you are creating an app, please create it keeping us in mind, I'm using shubcraft's android build on HD2
[Desire Android Development] daveba:
That's an 'iptables' warning, but it still works. Ignore it.
[Desire Android Development] t4kiko:
hey is this compatible with other android phones such as motorola cliq?
[Desire Android Development] daveba:
If you're rooted, then yes, as it needs to run privileged commands (iptables).
[Desire Android Development] flame10:
Thats great, I'll try again. Another thing, will this work with socks 4/ 5/ http proxy?
[Desire Android Development] Shaelz:
so excited

incredibly excited for your first build as I sit at my uni wishing I could use the wifi (carriers charge a fortune here in australia for 3G!)

Do you think it will be able to support username/password authentication ?

As my uni has a proxy and requires a login..
[Desire Android Development] daveba:
No, socks not supported with transproxy unfortunately. If you can find a linux version that supports it then i can probably substitute it.
[Desire Android Development] daveba:
Again, this is not supported in transproxy itself. I will look into chaining polipo (a proxy with user/pass and socks support) or using privoxy instead though i don't have such servers to test with.

Read the subsequent post though...
[Desire Android Development] daveba:
Ok so here is version 1.0 of the applet. Simple but seems to work. So firstly, it will only work with rooted phones (as you need privileged access to redirect ports and run the iptables command). Second your ROM must support iptables. I would assume all rooted ROMS have this. Please let me know if i'm wrong. This apk is not signed (yet) so ensure you have Menu->Settings->Application settings->unknown sources checked.

As mentioned, since we are running root commands, i decided split the root commands in an external script so that you can inspect and change it as required (not necessary). The root script will be installed in

/data/data/com.hasbox.tproxy/redirectpackets.sh

Since the tproxy doesn't need to run as root as it's not using ports <1024, then it's executed within the java app. I've adjusted the transproxy C code to write out a PID so i can kill it when you toggle the proxy to be off. In reality i should just rewrite all this in JAVA, but i may put the tproxy start/stop in the script also to save complexity.

Anyhow here it is. Try it, send me bug reports. I spent a lot of time just looking for decent icons for this as i'm not a designer ;-) In between kids, and personal life i didn't spend too much time with this so not yet releasing the code till i clean this up (next version) and perhaps chain the proxy for user/pass authentication and socks support.

See the first post for the apk.
[Desire Android Development] mrayner:
I've been unable to get any version to work with my phone.

Proxy does require authenticating.

Does having a \ and a . in my username cause any problems?

eg. domain\bob.smith
[Desire Android Development] JurieK:
We have a ISA server what auth protocol should I use and its a domain account so will user@domain work?
[Desire Android Development] BigEHokie:
Assuming you're not on NTLM and you ARE using HTTP based authentication, then yes it will be a problem. I've identified this issue earlier in the thread. Hopefully dave will have a solution for that.
[Desire Android Development] asmaridis:
daveba, any way you could get nimbuzz to work on tproxy?
[Desire Android Development] Crusoe86:
It does not work for me, too.

WinMo: Energy ROM Oct. 01

Radio: 2.11

Android: SuperDesire v1.0

Device: HTC HD2

v3.02 does not work: Error messages like the others.

v2.04 does not work: Can enable it (Proxy: 139.7.29.1:80) but I don't get a connection to the internet.

And with this evertime I open the browser or marktet or another app which needs internet, sense crash and restarts :(

My scenario:

APN: wap.vodafone.de (ppp connection)

normally I have to set a proxy (like above) to connect to internet. But not all apps support this.

Is this program working like "ProxyCap" for WinMo? ProxyCap for WinMo redirect all traffic through this proxy.

I can use OpenVPN for sure, but that needs a lot of energy and my battery is empty after a few hours.

Is it possible to set some iptable for my scenario? Or is it necessary to use such a program?

Thank you :)
[Desire Android Development] tehownt:
Just as a side note, I found out how to do what I wanted (proxy the web browsing using SSH socks).

It's only available for a web browser obviously, and doesn't fulfill the same objective as transproxy (though transproxy could implement something like SSH proxy auth too since it's SOCKS compatible).

So basically, use any SSH client like ConnectBot (unfortunately the SSH provided with dropbear doesn't have the dynamic proxy option...), open an SSH connection and forward dynamically a port of your chosing.

Then by using Fennec (avail on mozilla.com/en-US/m/beta), which has all of the proxy options available in parent Firefox, modify those parameters in "about:config"

network.proxy.type=1 (manual proxy config)

network.proxy.socks=127.0.0.1

network.proxy.socks_port=<port chosen>

network.proxy.socks_version=5

Do not modify any of the other proxy.http or proxy.ssl options as they have precedence on the .socks options and wont work.

You should now be able to browse the web tunnelling all the requests through your SSH server.
[Desire Android Development] saphir:
TransProxy3.02 does not work for my Nexus One with CynanogenMod stable 6.0.0 rom.

Everytime I run the proxy from Android GUI, an alert window pops up with the following text:

Failed to start proxy.sh (
Bad address
12866117259.592408 redsocks.c:750 redsocks_init_instance(...) bind: Address already in use [1] Segmentation fault ${DIR}/redsocks ...)

I tried to launch the proxy from adb shell:

* running ./proxy.sh start http 172.016.002.128 8000 false log pass

prints to the console the same message as above

* running ./tproxy -s 8123 172.016.002.128 8000

prints the message Bad address - with this failure, the tproxy process doesn't stay in memory (ie ps | grep tproxy returns nothing)

I already updated superUser to version 2.3.6.1.

Iptables works fine (version 1.4.7).

Any idea to step ahead?
[Desire Android Development] asmaridis:
Apparently yes, and according to daveba it will be fixed in version 3.03.
[Desire Android Development] daveba:
I've released 3.03. I've now ditched transproxy's tproxy binary and am concentrating only on redsocks as the sole proxy for both non and encrypted connections. For this reason, this release took slightly longer to let out as i've been ironing out some bugs in the relay code. We should not get any more process forking also. You must do a full uninstall of the previous one before installing this version

Those who have backslashes in their usernames please let me know if this version fixes it for you.

For people on other non-desire h/w please let me know if your app installation path is /data/data/com.hasbox.tproxy as this is hardcoded (yes i know this is bad) in the binray and i think this is why it's not working for some people. I can programatically change it, but i need to know if it really is the case.

For people who experience crashes, please do a

adb logcat

and you should see lines like

I/DEBUG ( 125): #00 pc 00013538 /data/data/com.hasbox.tproxy/redsocks
I/DEBUG ( 125): #01 pc 0000ba10 /data/data/com.hasbox.tproxy/redsocks
I/DEBUG ( 125): #02 pc 0000d608 /system/lib/libc.so (__libc_init)

Please PM me that or post it here. I will try to see what went wrong.

For people who are saying it's not even asking them for 'su', again please send me a snippet of the 'adb logcat' when you try to start the proxy from the GUI (take out any private information)
[Desire Android Development] daveba:
Possbily, but i doubt your upstream proxy will allow connections apart from 443 and 80.
[Desire Android Development] daveba:
Please try the new version and report.
[Desire Android Development] STomko:
Hi. Suffered from the same error:

"Failed to start proxy.sh (Bad address12866117259.592408 redsocks.c..."

v3.03 fixed that, the app starts normally, I get a Superuser request. Can't really test the functionality, but I assume it's just fine... However, would be great if you could manage to get Market download working...

I am really fan of your work...
[Desire Android Development] wallla:
Yes, for me it seems to work now, too.

I can say it for sure on monday.

But the redsocks-error message of 3.02 is gone what makes me optimistic.

Thank you so much!
[Desire Android Development] DSF:
it doesn't work on galaxy s.. No errors when clicking on button in the last version. I have:( the latest version of superuser. It simply act as it's no proxy enabled...
[Desire Android Development] monguly:
Dear Sir,

I have test the Transparent 3.03. But it show the error code "No Iptables binary founds on your ROM". How can I use this sortware on my Acer Liquid ?

Best Regards.

I Don't find the iptable file on \\data\data\com.haxbox.tproxy
[Desire Android Development] daveba:
There is no more iptables binary provided. Your ROM/kernel must support packet filtering and you must have the iptables binary installed in /system/bin or /system/xbin. Please ask on your rom thread. Just pushing iptables onto your ROM may not necessarily work. This is why i removed it from my package as it gave people a false sense that everything would just work.
[Desire Android Development] daveba:
As mentioned please do a 'adb logcat' and send me the messages that appear when you attempt to start it. There should be 'su' and 'tproxy' messages that get logged.
[Desire Android Development] daveba:
Thanks. Thats' a great bug report. I know exactly the issue. Bug fix imminent.
[Desire Android Development] JurieK:
I installed 3.03 and I still get a error saying that the proxy requires authentication. We have an microsoft ISA server as a proxy. I tried user@domain but still no luck. Any Ideas?
[Desire Android Development] daveba:
Probably because you use NTLM auth and it's not supported.
[Desire Android Development] daveba:
Uploaded 3.04 to fix a bug reported by kafkasmaze. Thanks.

You must uninstall fully and reinstall or the new redsocks binary won't be installed.
[Desire Android Development] eref:
3.03 and 3.04 start but does not work, no internet connection at all.

2.04 is working (except market downloading)

Desire official 2.2 ROM rooted with unrevoked. SU app is up to date
[Desire Android Development] daveba:
adb logcat

iptables -L -n -t nat
[Desire Android Development] daveba:
Thank you again. Good bug report. Fix in 3.05 . I can't believe this relay code is so buggy...
[Desire Android Development] Iceberger:
I appreciate your affords.

Had to uninstall the program all together and reboot to get my wifi work once again.

Still waiting for a functional version…:(
[Desire Android Development] kafkasmaze:
actually, socks works fine in 3.04 at least. http still report the same bug. i believe it will be easy to fix the same bug. cheer up!
[Desire Android Development] weissnix:
hi,

i'm currently in china for a few weeks. Several websites are blocked here (facebook/youtube...).

i use the transparent proxy app with an ssh connection thru connectbot (port forwarding/socks-proxy). When i make an ip check in the browser it shows the ip from the remote server. So the proxy seems to work. However youtube and facebook is still not reachable, other websites are ok. Also the Youtube/Facebook Apps don't work.

has anybody a solution?
[Desire Android Development] shokwaav:
same.. actually 3.01 works for me too but 3.02, 3, 4 dont work
[Desire Android Development] mrayner:
Confirmed for me also....

Keeping us back and fowardslashers in suspense :) Thanks for all your work so far!
[Desire Android Development] wl08:
3.04 doesn't work

I/DEBUG ( 52): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *
**
I/DEBUG ( 52): Build fingerprint: 'rogers_wwe/htc_sapphire/sapphire/sapphire
:2.1-update1/ERE27/220450:user/release-keys'
I/DEBUG ( 52): pid: 15719, tid: 15719 >>> /data/data/com.hasbox.tproxy/reds
ocks <<<
I/DEBUG ( 52): signal 11 (SIGSEGV), fault addr 00000000
I/DEBUG ( 52): r0 00000000 r1 0001bad8 r2 80808080 r3 00000000
I/DEBUG ( 52): r4 0001baf0 r5 00000000 r6 0001b8a4 r7 0001b970
I/DEBUG ( 52): r8 0001b5e0 r9 0001a75c 10 000001f0 fp be982a3c
I/DEBUG ( 52): ip 0001a2b4 sp be982a08 lr afe1b805 pc afe0e888 cpsr 400
00010
I/DEBUG ( 52): #00 pc 0000e888 /system/lib/libc.so
I/DEBUG ( 52): #01 pc 0001b802 /system/lib/libc.so
I/DEBUG ( 52): #02 pc 00011200 /data/data/com.hasbox.tproxy/redso
cks
I/DEBUG ( 52): #03 pc 00011be0 /data/data/com.hasbox.tproxy/redso
cks
I/DEBUG ( 52): #04 pc 000153b0 /data/data/com.hasbox.tproxy/redso
cks
I/DEBUG ( 52): #05 pc 00014258 /data/data/com.hasbox.tproxy/redso
cks
I/DEBUG ( 52): #06 pc 0000b9b4 /data/data/com.hasbox.tproxy/redso
cks
I/DEBUG ( 52): #07 pc 0000c35e /system/lib/libc.so
I/DEBUG ( 52): #08 pc b00018aa /system/bin/linker
I/DEBUG ( 52):
I/DEBUG ( 52): code around pc:
I/DEBUG ( 52): afe0e878 e31c0003 1afffff6 e1a00002 e59f20d8
I/DEBUG ( 52): afe0e888 e490c004 e0433000 f5d0f040 e04c13a2
I/DEBUG ( 52): afe0e898 e0011002 e1d1100c 0490c004 1a000022
I/DEBUG ( 52):
I/DEBUG ( 52): code around lr:
I/DEBUG ( 52): afe1b7f4 1c2bd1f7 46c0e7f2 1c05b570 e812f7f3
I/DEBUG ( 52): afe1b804 1c301c46 f974f7f0 28001c04 1c29d003
I/DEBUG ( 52): afe1b814 f7f21c32 1c20ebec 46c0bd70 4b05b510
I/DEBUG ( 52):
I/DEBUG ( 52): stack:
I/DEBUG ( 52): be9829c8 afe3bb80
I/DEBUG ( 52): be9829cc afe0f470 /system/lib/libc.so
I/DEBUG ( 52): be9829d0 00000000
I/DEBUG ( 52): be9829d4 afe0f380 /system/lib/libc.so
I/DEBUG ( 52): be9829d8 00000003
I/DEBUG ( 52): be9829dc afe3b9c8
I/DEBUG ( 52): be9829e0 0001bc98 [heap]
I/DEBUG ( 52): be9829e4 c0000000
I/DEBUG ( 52): be9829e8 0001b5e0 [heap]
I/DEBUG ( 52): be9829ec afe0bd3d /system/lib/libc.so
I/DEBUG ( 52): be9829f0 afe3b9c8
I/DEBUG ( 52): be9829f4 00002bc0
I/DEBUG ( 52): be9829f8 000000da
I/DEBUG ( 52): be9829fc 000001b8
I/DEBUG ( 52): be982a00 df002777
I/DEBUG ( 52): be982a04 e3a070ad
I/DEBUG ( 52): #00 be982a08 0001bc60 [heap]
I/DEBUG ( 52): be982a0c 00000000
I/DEBUG ( 52): #01 be982a10 0001baf0 [heap]
I/DEBUG ( 52): be982a14 0001a1b4 /data/data/com.hasbox.tproxy/redsocks

I/DEBUG ( 52): be982a18 0001b8a4 [heap]
I/DEBUG ( 52): be982a1c 00011204 /data/data/com.hasbox.tproxy/redsocks
[Desire Android Development] daveba:
That was fixed in 3.05
[Desire Android Development] kafkasmaze:
it seems still have problem, i enable the button and all set are disabled, back to home, and then back to the app, all return to the start. and the http proxy still won't work. socks works fine as 3.04. sorry to say can't log right now.
[Desire Android Development] eref:
3.02, 3.03, 3.04 and 3.05 do not work for me only 2.04 does.

Proxy starts, I can see my shared folders on my PC but no internet connection at all.
[Desire Android Development] daveba:
As i mentioned, i'm ignoring any reports without a proper log.
[Desire Android Development] DSF:
Hello

Latest version still doesn't work (no errors, app ask for permissions)

Here's the log:

V/InputDevice( 2402): ID[0]=0 Up (1=>0)

V/WindowManager( 2402): Dsptch 1 x432.0 y460.0 > Window{4848d748 com.hasbox.tproxy/com.hasbox.tproxy.Main paused=false}

V/tproxy (13088): OnClickListner for ToggleButton - true

V/tproxy (13088): proxy.sh start type=http host=62.217.247.252 port=8799 auth=false user= pass=*****

D/su (13268): 10144 com.hasbox.tproxy executing 0 /system/bin/sh using shell /system/bin/sh : sh

V/tproxy (13088): Successfully ran redirect.sh start

V/tproxy (13088): setchildrenstate - true

Pasted directly from the phone..
[Desire Android Development] kafkasmaze:
i think this time it can work, but some button intent need to be checked. back button have problems, too.
[Desire Android Development] Crusoe86:
Does this application also works with "ppp" or does it only works with WiFi?

Thank you :)
[Desire Android Development] DSF:
@daveba

Hmm.. wait.. this is only for wifi? I thought that it will also work for a data connection (eg 3G).

I've tried with wifi on and it seems that it does work (with transproxy off = pages load, with transproxy on = pages can't load because of invalid proxy)

Can you make it somehow workable on a 3G connection? Some of us need this. I can use the apn only with a proxy

Thanks and sorry
[Desire Android Development] Kalkoen06:
Great app! :), i tried version 3.02 a few days ago but it didn't work.

So i updated today to version 3.05 (had removed the previous version) and it works fine! (an it also does ask me root permisions, which 3.02 did not)

I use it in combination with ConnectBot to set up a SOCKS proxy. I need to use a proxy because of my university.

I use a Samsung Galaxy S I9000 JM2 firmware, rooted.
[Desire Android Development] daveba:
NO, this works fine for me over 3g also connecting to my proxy server.

As mentioned before, i'm not sure how APN proxies work. If you can get wget working with an APN proxy using basic auth then you are in luck and i will investigate if it doesn't work with transproxy3.

I believe APN's use some sort of CHAP/PAP authentication which is not supported (though if someone can point me to a doc on how it's supposed to work i'll have a look).
[Desire Android Development] daveba:
That bug was fixed in 3.05
[Desire Android Development] daveba:
I've actually tested 3.05 with backslash and it's working fine for me. But please be aware again, if your proxy is a MS one it's probably using NTLM so no hope for you currently.
[Desire Android Development] daveba:
That's probably since it starts and disables the button but crashes shortly after so when you come back to transproxy it's showing off status. The adb logcat will show this.
[Desire Android Development] daveba:
Should work with ppp also as the packet are diverted at the OUTPUT stage to the proxy before going down your transport layer.