yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] liang3404814:
Thanks for the reply, I think you misunderstood the meaning of "Firewall app". It's actually this:

xdaforums.com/showthread.php?t=541380

Droid wall is used to block connections of certain applications. but what I meant is to have a way to route certain apps and leave the rest. (Orbot (Tor on Android) does this, but Tor is not working any more in China)
[Desire Android Development] shokwaav:
Thanks gmail works now but it seems that the market no longer works
[Desire Android Development] STetzel:
hello ;-)

if you need someone with such b***ard proxy to test. Im your man ;-)

https works for me !
[Desire Android Development] magdap:
Ha! you are a genius!

Can confirm->

V3: https works, http not

V2.04: http works https not

Combine it and tproxy allows full access to our proxy :-)
[Desire Android Development] eref:
3.0 is not working on Desire. On PC I can open https://mail.google.com. It is on the same network.
[Desire Android Development] eref:
Switching back to 2.04 now.
[Desire Android Development] magdap:
You sure you typed in an https site?

Cause only these sites seems to work with v3...
[Desire Android Development] shokwaav:
Interesting. gmail works now but my news and weather widget doesn't load now. Market doesn't work, but Defrost works. My browser works fine but I think its through cm6's proxy

I'd help if I could but I don't know anything abt adb comands
[Desire Android Development] daveba:
With what version ?

I've rewritten the code for the proxying to split the port 80 traffic and am just testing. I will release a beta for pre-testing later today.
[Desire Android Development] eref:
Yes. Tomorrow I will try again in the office.
[Desire Android Development] shokwaav:
Using tproxy 3.00

Tproxy 1 works with everything apart from gmail while tproxy 3 is only working with gmail. market, Defrost setup, news/weather widget and maps don't work
[Desire Android Development] Ethan_Hunt:
I've done a test using a (squid/3.0.STABLE10) proxy without authentication and

Ver. 3.00: h**ps://mail.google.com OK, GMail client app OK, everything else (Market, Maps, Browser, News/Weather widget) NOT OK

Ver. 2.04 & 1.03: h**ps://mail.google.com NOT OK, GMail client app NOT OK, everything else (Market, Maps, Browser, News/Weather widget) OK except Market download
[Desire Android Development] shokwaav:
hmmm 3.01 works with everything except market download
[Desire Android Development] daveba:
Reuploaded 3.01 due to database failure on xda (this forum included).
[Desire Android Development] mlbl:
I've tried all 3 versions and it doesnt work on my N1, can't browse sites at all. Is there anything else i need to set? Market doesnt work, nothing that accesses internet works.
[Desire Android Development] Iceberger:
HTC weather does't work. For the rest everything is working. Market too.
[Desire Android Development] eref:
Same for me. https works, weather, etc work, market browsing ok but dowloading not
[Desire Android Development] daveba:
Very strange reports so far. For some, everything works, even market downloading, for some weather doesn't work, and for some downloading doesn't and for some it doesn't work at all.

So i reiterate again, if you have NTLM auth it won't work.

If your app (weather, etc) uses non standard ports and your proxy doesn't allow the port thru it doesn't work.

Maybe better bug reports would help:

1. What version of tproxy

2. Are you using auth with tproxy - what type ?

3. Are you using HTTP or SOCKS proxy

4. What app is not working ? Be specific - for example 'Weather APP X'

5. When you say downloading doesn't work do you mean from Market or ftp or what ?
[Desire Android Development] mlbl:
for me all versions doesnt work from 1 till 3 on my n1. No auth, HTTP proxy. Tried browser, market, maps, not working.
[Desire Android Development] daveba:
Can you open up a console or adb and do the following

http_proxy=http://proxyhost:proxyport wget http://somewhere.com

replace proxyhost and proxyport with your proxy deets. Also i need details from

adb logcat

when you start the proxy.

User magdap (i believe) has it working fine on a N1.
[Desire Android Development] Ethan_Hunt:
I confirm, using 3.01 everything works except market downloads, you made a great job thanks a lot!!!!!
[Desire Android Development] daveba:
Ok market downloads must make a direct (not http) connection to the market so this is probably blocked at your proxy server. I will do a tcpdump and see what's going on.
[Desire Android Development] magdap:
Yes I can still confirm, it works without any problems! Every app works without any problems! Nexus one froyo rooted with universal androot ...

Please make sure if you install a newer version that you uninstall the old version before and that all processes of f tproxy ate killed. For all europeans: if you re eduroam like network requires a proxy, it'll work with this app!
[Desire Android Development] slimfady:
How do I add my username and password to the above command?
[Desire Android Development] daveba:
Unfortunately busybox's wget doesn't support auth. However if you started tproxy with the correct auth, it should be listening on port 8123 on the phone so you can adb to the phone and run the same command and set the proxy to locahost:8123
[Desire Android Development] BigEHokie:
Captivate Trouble

1. tproxy 3.01 on a Samsung Captivate on 2.1update1

2. HTTP proxy with authentication (I believe, but I'm not 100% sure it's not NTLM. Any way to figure that out easily?)

3. Nothing seems to be working, can't use the browser to http and https google. I get a Web Page not available message.

logcat from tproxy:

09-27 09:55:18.648: VERBOSE/tproxy(4505): OnCheckedListner for Checkbutton - true

09-27 09:56:02.098: VERBOSE/tproxy(4505): OnClickListner for ToggleButton - true

09-27 09:56:42.143: VERBOSE/tproxy(4505): Calling alert()

09-27 09:57:19.873: VERBOSE/tproxy(4505): OnClickListner for ToggleButton - true

09-27 09:57:19.873: VERBOSE/tproxy(4505): proxy.sh start type=http host=myproxyip port=8099 auth=true user=mydomain\myusername pass=*****

09-27 09:57:23.603: VERBOSE/tproxy(4505): Successfully ran redirect.sh start

09-27 09:57:23.603: VERBOSE/tproxy(4505): setchildrenstate - true

Output from wget:

Connecting to localhost:8123 (127.0.0.1:8123)

wget: no response from server
[Desire Android Development] Zuecho:
thanks for that apk!

Works great in combination with LeeDroid 2.1a!

Until now all apps are working, including htc weather widget!

Cheers!
[Desire Android Development] BigEHokie:
Potential problem with authentication

So when I cat the shared_prefs/prefs.xml, I get the following:

<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<map>
<int name="port" value="8099" />
<boolean name="authenabled" value="true" />
<string name="host">myhost</string>
<string name="user">mydomain\username</string>
<string name="proxytype">http</string>
<string name="pass">mypassword</string>
</map>

And when I cat redsocks.conf when tproxy is running, I see the following:

base {
log_debug = off;
log_info = off;
log = stderr;
daemon = on;
redirector = iptables;
}
redsocks {
local_ip = 127.0.0.1;
local_port = 8124;
ip = myhost;
port = 8099;

type = http-connect;
login = "mydomainusername";
password = "mypassword";
}

Notice the \ has been removed from the login conf. It's quite possible that it's attempting to authenticate with an invalid username at this point.
[Desire Android Development] daveba:
The \ removal in the redsocks.conf is a red herring as that's only for port 443 communications. For you, even port 80 traffic doesn't work. At initial glance this looks like NTLM auth since you never (in my experience) provide domain names in basic auth. Have you got basic auth in your environment working on a normal browser on a desktop - for example firefox on Linux ?

I suggest switching off tproxy from the gui and then running it manually as the backslash is probably stripped out in the script as it's used as a literal character designator in unix/linux. So stop the proxy and then run it manually like

/data/data/com.hasbox.tproxy/tproxy -P /data/data/com.hasbox.tproxy/tproxy.pid -s 8123 -A 'mydomain\username:mypassword' myhost 8099

ensure you use single quotes as shown above. This will ensure the backslash is preserved. Then try to browse from your phone.
[Desire Android Development] daveba:
I've updated to version 3.02 which adds port 5228 to the redirector since this is what it seems is needed to do google auth for market downloads, but it's very likely since most proxies do NOT allow anything other that 443 and maybe port 80 thru it, then this will not fix it even for most people. Hence this is not doable without support from your proxy server.

Also due to limited memory on phones, i've limited the amount forks as some complex pages may generate a large number of forks as each element (picture, flash, ad) will generate a separate GET request and thus a fork process which will lead to slowdown in the phone, hang, crashing, etc due to memory shortage. Someone reported this a couple of days ago before the big crash in XDA forum where we lost messages so i can't refer back to the message but you know who you are. Please try this version, it should be better.
[Desire Android Development] shokwaav:
3.02 fails to install on my htc desire w/ defrost

actually even 3.01 fails to install... any idea why?
[Desire Android Development] daveba:
App is not signed. Have you tried checking the appropriate box in settings ? What errors does logcat show ?
[Desire Android Development] shokwaav:
i've allowed installation of non-market apps yes, and whats logcat?
[Desire Android Development] daveba:
Run 'adb logcat' from a cmd console/shell when your phone is connected via USB and you have the SDK installed. It shows the error/message log from the phone.
[Desire Android Development] shokwaav:
ugh sdk takes ages to load :(
[Desire Android Development] shokwaav:
um ok ive got sdk installed... how do i run adb logcat in cmd.exe? it says 'adb' is not a valid command or smthg
[Desire Android Development] wallla:
Just run ddms.bat from your android-sdk-windows/tools folder.
[Desire Android Development] shokwaav:
ok it says something about 'failed to create secure conatiner smd12tmp1'

oh and '/mnt/secure/asec/smd12tmp1.asec currnetly exists destroy it first!

returning operationfailed- no handler for errno 98
[Desire Android Development] shokwaav:
ok i fixed it, but like 3.02 doesn't work with mine, proxy failed to start.. it doesnt ask for superuser permissions though
[Desire Android Development] eref:
Desire 2.2 Stock Rom rooted by unrevoked 3.21

At first 3.02 did not start for me. It said: 'Failed to start proxy.sh (Bad address 1285652474.385986 redsocks.c:750

redsocks_init_instance(...) bind:Address already in use

[1] Segmentation fault ${DIR}/redsocks ...)'

Then I tried 2.04, Then Clear cache, force close uninstall it.

After that reinstall 3.02.

Now transproxy is running but the market download is not working yet.
[Desire Android Development] benholmes:
Great little app! Using 3.02 on my stock (apart from root access) Galaxy S and I can now use my uni wifi (including authentication) to access the net, both http and https, browse and download apps on the market, use weather/news/facebook widgets etc.

The only thing that doesn't seem to be working for me is Sipdroid, which keeps timing out when trying to register (if I switch off wifi and use 3g it registers fine and I can make voip calls).

Happy to do some testing/try stuff out for the dev to see if I can get it working (will need some simple instructions though - bit of a newbie).
[Desire Android Development] Zuecho:
Hi,

is there a Tasker/Locale plugin already available?

that would be great!
[Desire Android Development] mlbl:
For the http_proxy and wget, i just get "bad address 'http://www.google.com'". the Http_proy part i put in http://<ip>:<port>

Log:

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

V/tproxy ( 1648): proxy.sh start envp(type=http,host=10.77.8.70,port=8080,auth=false,user=,pass=*****)

V/tproxy ( 1648): su -c /data/data/com.hasbox.tproxy/redirect-start.sh

D/su ( 1783): 10068 com.hasbox.tproxy executing 0 /data/data/com.hasbox.tproxy/redirect-start.sh using shell /system/bin/sh : sh

V/tproxy ( 1648): setwidgetsinactive - true

Doesnt appear to be any issue it seems.

BTW the above in on version 2.04
[Desire Android Development] Iceberger:
+1 Proxy failed to start
[Desire Android Development] eref:
Try this:

Uninstall 3.02

Install 2.04,

Then Clear cache, force close and uninstall it.

After that reinstall 3.02.

This way it is working for me now.

- Maybe a reboot could useful before reinstall 3.02. I know this is not Micr0s0ft product but it worth a try ;-)
[Desire Android Development] imemish:
daveba, u got a pm :)
[Desire Android Development] eref:
Try this: Locale Execute Plug-in http://www.appbrain.com/app/locale-execute-plug-in/de.elmicha.app.LocaleExecute

and try to input /data/data/com.hasbox.tproxy/redirect-start.sh and redirect-stop.sh as Daveba wrote in post nr.178.

I haven't tried this yet, I will try it later.
[Desire Android Development] Zuecho:
I tried this method but i could not make it work.

i use transproxy 3.01. in this version there is only the file "/data/data/com.hasbox.tproxy/redirect.sh"

So I tried it with these commands:

"/data/data/com.hasbox.tproxy/redirect.sh start"

"/data/data/com.hasbox.tproxy/redirect.sh stop"

i think the problem isnt locale execute.
[Desire Android Development] daveba:
Guys, please stop complaining that some apps are not working. This is not a limitation of this app, but a limitation of your individual proxies. As mentioned previously (but may have been deleted in the loss of posts due to xda crash) that on my test proxy where all ports are open i can use market download, imap, etc with no issues as my personal test proxy allows everything. Corporate and campus proxies are much more restrictive only allowing 443 and 80 so no amount of bug reports will make this magically work. If you want full traffic redirection you either need your proxy to allow all outgoing ports, or use a VPN (like openvpn- but this may also be blocked from your big brothers).

I've toyed with the idea of providing a paid-for service that tunnels from your corporate/campus proxy via port 443 to my server (which also listens on 443 thus allowing arbitrary connections so all should work. It will have openvpn listen on 443 on my remote server, and then you can run a VPN on your phone and everything would work. I dunno if there's enough interest nor enough people to support such a concept. I think very few corporate/campuses are so restrictive these days.

As for Defrost users, i think you are set up to install everything on the sdcard so this is failing for some reason. I need to see what i need to do with the app for sdcard installations.

For those people getting the Segmentation fault error, this is because there is existing sockets timing out from redsocks. Just wait a minute - no need to reboot and retry starting transproxy.

Also YOU MUST uninstall before upgrading since otherwise the way android works is that user data is not removed when upgrading. In this case userdata includes the binaries and scripts, so you'll end up with a new GUI but old scripts and binaries. I don't copy them every time the app starts since that would wear out the flash.
[Desire Android Development] daveba:
You must run that script as root as it requires root priviliges to redirect traffic (for obvious reasons)
[Desire Android Development] Zuecho:
I know, i tried also:

"!/data/data/com.hasbox.tproxy/redirect.sh start"

The "!" make it run as su:

h ttp://elmicha.de/app/LocaleExecute/plugin-help.html
[Desire Android Development] daveba:
Ok, so that's Locale specific. Maybe just run the commands manually (instead of the script). So just run the two iptables commands in the script with the !.
[Desire Android Development] BigEHokie:
Dave -- Authentication is required for HTTP proxy use here at my client and we do indeed use NT domain names for our credentials (everything is eventually tied back to Active Directory). I do have HTTP proxy working for several other applications: Chrome, Firefox, Pidgin, Eclipse, etc. I was also SSH tunneling through port 443 at one point through the proxy.

I tried starting it manually as suggested above and still had the same browsing issues. I wish there was something else I could provide to possibly work through this, but I've got nothing else in logcat that would shed light into the problem.

Thanks for your help on this.
[Desire Android Development] daveba:
Try double backslash also. Once the tproxy is running, try doing what i also suggested before,

http_proxy=http://127.0.0.1:8123 wget http://somewhere.com

and you should get some verbose messages. If that works i can recode to double backslash the username part in the UI.
[Desire Android Development] BigEHokie:
Tried it again with your suggestions, still "no response from server".

I see nothing in logcat nor do I have anything to stdout other than the no response message. I would like to paste in everything I'm doing but my account hasn't been verified yet so I can't post "links". grrr

I am using busybox wget, so I tried with and without the -Y flag. I'm still learning the shell environment for Android, how are you using wget without specifying busybox? Did you create an alias? (long time linux user, just got my Captivate 2 weeks ago).

Thanks!
[Desire Android Development] magdap:
Just want to let you know, that although you might hear a lot of complaints, you make a lot of people very happy with this app.

Where else can they leave their complaints, if not here...

I have one now too! I get this update message to update to 2.2.1, and if I will update I will loose root... But that's crying on high level :-)
[Desire Android Development] STetzel:
*lol* i like this piece of nice programming art. congrats ;-). I have also one now!

why is it raining the whole day.
[Desire Android Development] fonix232:
@daveba:

Thank you very much, your app works great with my school HTTP Proxy authentication!

One problem though:

I'm still using 3.0 (downloaded a few days ago and haven't checked if there's newer version), and today I had an embarrassing little problem - I rebooted my phone. Before reboot, it was working perfectly, everything got through to the interwebz. And after the reboot (I gone to TransProxy, disabled it, then disabled wifi, and reboot), it won't work! I was using it the usual way (connect to wifi, apply proxy settings, browse) and none of the pages loaded. If I used the CM6 built-in proxy settings (what is limited like hell), everything was fine. But I needed the download manager, so I had to reinstall the app totally.

The school server is based on SuliXerver, a hungarian school server linux distro (has some really cool advantages, like shared calendar, inside emailing, etc), with Squid Proxy HTTP Authenticating System. Maybe that was the problem?

My phone is a HTC G1 with CM6 nightly build 20100920/2, Pershoot's latest kernel.

Oh and also a suggestion after bug report. In landscape view, the list is scattered around the screen, making some of the fields (on-off button, authentication settings) unreadable, unselectable. May I suggest you to re-make the UI into a Preferences screen, what would have the ability to scroll, and all the fields would be pop-up?
[Desire Android Development] daveba:
Yes, i'm not worried about the complaints, bug reports, etc. I'm complaining about having to repeat myself that's all. If you go thru my posts you'll see everything is explained previously.

Yup, if you loose root, all bets are off with this app since it requires root to redirect traffic. To be honest it'd be nice if we didn't have this app and google made it possible for apps to honour a global proxy.
[Desire Android Development] daveba:
I'll fix this 'bug' with the 'Address already in use, Seg fault' in the next release. You'll get a spinner waiting for all sockets to timeout.
[Desire Android Development] daveba:
Yes the symbolic links are already created in my rom to wget. You can do it yourself, but running it with busybox prefixed is fine also. I'm surprised you're getting no response from server when you set the proxy as 127.0.0.1:8123. This must mean you never get to the upstream proxy. PM me and i'll give you my email so we can do this off-forum.
[Desire Android Development] daveba:
So clearly even bypassing transproxy and using wget with your telco proxy 10.77.8.70:8080 you can't get outside your APN proxy so there is no hope for transproxy to work. But again, i still can't understand why if your telco provides an APN for you to use why you can't use that ?
[Desire Android Development] daveba:
Probably because of high levels of precipitation. You're not based in Manchester are you :)
[Desire Android Development] daveba:
Ok, anyone having auth issues, please get the full GNU wget binary (not busybox) from here http://jacob.hoffman-andrews.com/android/wget/

Then adb push it to your phone to /data/local and run it like so

You can then try with basic user auth like so

http_proxy=http://yourproxy:port /data/local/wget-binary --proxy-user=USER --proxy-password=PASS http://somewhere.com

If that works for you and transproxy GUI doesn't please report this to me.
[Desire Android Development] daveba:
Thanks for the bug report. To be honest i hardly ever turn my phone in landscape except for reading email so never seen the layout issue. I will fix that for sure. Good spot.

As for why things suddenly stopping to work i'm not sure what to suggest. Things shouldn't suddenly disappear from the flash.
[Desire Android Development] fonix232:
daveba:

Well, thanks for fixing that :D

Will you consider the PreferenceView instead of the current one? I've already made a little one (containing all the needed fields), if you need it I can drop it up somewhere!
[Desire Android Development] wl08:
I just tried wget.

No matter which http site I tried, the result was same:

wget: can't open 'index.html': Read-only file system

I also tried new 3.02, can not load proxy server even after factory reset.
[Desire Android Development] daveba:
The readonly fs message because you're executilng the command in a directory which is readonly. First run

cd /sdcard

to your sdcard which should let you wget correctly (if you don't get proxy errors)
[Desire Android Development] daveba:
Yeah, i'm thinking of how to make the interface nicer. Maybe just a big button "START PROXY" (like the old wifitether app before froyo hotspot) and then hide all the preferences in a prefview as you suggest. Different people seem to like different views, but more pressing is the bugs which i need to fix first. I'm slowly nailing them down with private emails, so stuff is happening. I'll get to the GUI later. I'll be the first to admit it's fugly ;-)

PM me your prefview. You never know, i may use it.
[Desire Android Development] mlbl:
actually its not a telco, its my office network which has a http proxy (no auth required). do i have to set anything else other than the settings in transproxy in order for wifi to work over proxy?
[Desire Android Development] daveba:
Nah you shouldn't need to. Try the wget i posted the link to in a previous post. It's more verbose and featureful. You can use the '-S' option to get serer responses as well.