yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] woti23:
look here in the forum for a custom rom, search for oClock

download it, unzip it, extract the iptables binary

your phone needs to be rooted, iptables won't work without

push iptables binary with adb to /system/bin
[Desire Android Development] magdap:
thanks... i am near a pc without sdk, so any chance i can do that without this adb?

its a pc from work, so i cant install anything on it
[Desire Android Development] daveba:
And you didn't get any errors ? Strange. You ran the iptables command on your wildfire and not on your PC right (just checking). Seems the iptables command failed as you should have two rules for forwarding 80 and 443 traffic. Please check logcat. It will have the answer.
[Desire Android Development] .Harshit:
Yes i ran it on my wildfire , i tried to run the commands manually

iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-port 8123

FIXME! IMPLEMENT GETPROTOBYNAME() BIONIC/LIBC/BIONIC/STUBS.C:372

IPTABLES V1.3.7 : UNKOWN ARG '--TO--PORT'

TRY IPTABLES -H OR IPTABLES --HELP FOR MORE INFORMATION

now running commane 'iptables -L -n -t nat

gives

Chain PREROUTING (policy ACCEPT)

target prot opt source destination

Chain POSTROUTING (policy ACCEPT)

target prot opt source destination

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

redirect tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 8123

redirect tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443 redir ports 8124

redirect tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:5228 redir ports 8124

after this again i tried to connect to wifi enable transproxy settings and went to browser still nothing happens
[Desire Android Development] ugokind:
news from google code Market

http://www.google.com/support/forum...9f&hl=en&fid=5d85b7a7192f7a9f0004947984d7ea02

I ask you : How can I ask for an escalation to Android Official Team?

I confirm.. in italy with vodafone You can browse anything

so with my older n97 1 month ago I did! why?? ?
[Desire Android Development] daveba:
Read the previous post. Check your logcat. Is your proxy NTLM ? Does it work with wget ?
[Desire Android Development] ugokind:
2nd test

i saw your idead of iptables.. but I'm not agreed with you

because if you do a NAT for output packet to a precise port.. you do few work

and what happens when the packet return?

I'd change your command to

iptables -t nat -A OUTPUT -p tcp --dport 80 -d IP_OF_PROXY -j REDIRECT

that make the following result to IPTABLES

Chain PREROUTING (policy ACCEPT)

target prot opt source destination

Chain POSTROUTING (policy ACCEPT)

target prot opt source destination

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

REDIRECT tcp -- 0.0.0.0/0 10.128.201.76 tcp dpt:80

+that's mean that FOR ALL my traffic the destination is my proxy

that's mean that even if MARKET worlk on a specific port.. that traffic through to the proxy..

but no news!
[Desire Android Development] daveba:
Agree with me or not, please get your facts right. This is not a VPN. There is no need to NAT the packets. We are only redirecting packets destined for 80/443 thru the web proxy. Hence the application MUST speak HTTP(s) protocol or this will NOT WORK.

If you go thru the pages of this thread you will notice that market is not guaranteed to work as it uses non-standard ports so using just a web proxy (port 80/443) will not make it work. Some proxies allow arbitrary ports thru 443, so some people may see it working and others not (hence so many conflicting reports in the thread) because the transparent proxy will attempt to make a proxy connection to a server via port 443. Either you get a friendly proxy, or you use a VPN. This proxy makes some apps work fine like maps, gmail, browser, and others that use 80 or 443, because they speak HTTP(s) but not everything will work. It is NOT A VPN SOLUTION.
[Desire Android Development] melben:
Thanks, I appreciate you taking the time to tell me. It may help you to put something in the first post about what logs you need and how to get them.

I setup the sdk and got logcat going and while I was trying to work it out 3.02 stopped on me too and I think it has been flakey wireless rather than a problem with transproxy.

I am going to flash my old radio version and go back to 3.08 and see how I go.

Many thanks

Ben
[Desire Android Development] cromatico3:
ok thank...but you can help me with the passages to rooted the desire??
[Desire Android Development] daveba:
http://unrevoked.com/recovery/
[Desire Android Development] daveba:
You're right. There is too many pages to wade thru. I will put it in the first page.
[Desire Android Development] .Harshit:
this is what i could read from wildfires logcat as android sdk wont run on my laptop for cause unknown

d/requestqueue(2437):setproxyconfig mproxyhost=null

wifi is available

d/autosetting(183):service-doautosettings() is networkavailable:true,isusewirelessnetworks;false,istimeautostate: true
[Desire Android Development] daveba:
Those messages are not from transproxy which will have messages prefixed with x/tproxy (where x is one of v/i/d).

It seems the wildfire has some other proxy settings for browsing.
[Desire Android Development] kylehase:
Feature request - Selective proxy

Thanks for this proxy. I've been looking for a light weight (albeit less anonymous) alternative to Orbot and this looks perfect.

One of Orbot's best features is the ability to specify which applications are proxied. Any chance of adding a similar feature here?

I'm not sure what your license is but Orbot is open sourced so you can use it's code as long as the licenses are compatible.
[Desire Android Development] .Harshit:
There seems to be no log for tproxy :(
[Desire Android Development] penguinolog:
Is it possible to add proxy for ports: 5222 and 5223? It's Jabber ports for google talk, facebook chat and etc...
[Desire Android Development] .Harshit:
Here is the log attached
[Desire Android Development] iamgpc:
I have some issues on Proxy.

My device is HTC HD2 with Android 2.2 (desire 2.29 base, rooted,kernel is compiling by myself)

My networking is Mobile Internet (3G) with proxy. My operator offers two APN, one is "mms", another is "internet". If i use the internet APN, there is no need to use proxy. However if i use the "mms", i have to set the proxy. (I can provide it work with proxy in Windows Mobile6.5 and Desktop XP and Win7 with Internet Sharing)

I don't know what kind of the proxy is. The proxy address is "10.1.1.2" and the port is "80", i am using your newest version 1.0.8b with correct settings.

Here is my ddms log after Enable, it seems okay, but the network is died after i enable it. (Before enable it, i can using the APN with "mms" + proxy setting in the System->Mobile Connection->APN->the MMS APN->proxy(10.1.1.2:80) )

How can i do for using it? i can do any testing for it.

PS. I try all of your version, no one can work in my device:(

11-11 21:00:08.604: VERBOSE/tproxy(5825): proxy.sh start /data/data/com.hasbox.tproxy/files type=http host=10.1.1.2 port=80 auth=false user= pass=*****
11-11 21:00:09.044: WARN/Parcel(257): Attempt to read object from Parcel 0x506c4de0 at offset 492 that is not in the object list
11-11 21:00:09.124: DEBUG/SuRequest(5696): Sending result: ALLOW for UID: 10110
11-11 21:00:09.124: DEBUG/su(6702): 10110 com.hasbox.tproxy executing 0 /system/bin/sh using shell /system/bin/sh : sh
11-11 21:00:09.144: INFO/BatteryStatsImpl(257): notePhoneSignalStrengthLocked: 2->3
11-11 21:00:09.234: VERBOSE/tproxy(5825): Successfully ran redirect.sh start http
11-11 21:00:09.234: VERBOSE/tproxy(5825): Enabled = true
[Desire Android Development] rot0261:
Will This work on Lee DrOiD_V2,2f

Kernel Versoin : 2.6.32.15-leedroid_2.2f

snq@drone#1

Bild:

2.10.405.2 CL226611 release-keys

Radio:

32.49.00.32U_5.11.05.27

HTC Desire.

I am not abel to check it since Im not at work at the moment. Im working on a ship and we have a simple Http Proxy server.

So Im wondering if this will work , if I have the right Kernel or what rom that I should install who has that.
[Desire Android Development] melben:
I'm using it on a rom that is 99% leedroid 2.2f and it seems to work fine.

Ben
[Desire Android Development] Sergio54:
Hello,

I use the latest version Cyanogen with the proxy function but I'd rather use "Transparent proxy" which should be more convenient.

But ...

I just installed version 3.08 beta and it does not work :(

My Logcat:

11-12 16:33:18.304: INFO/ActivityManager(252): Displayed activity com.hasbox.tproxy/.Main: 1469 ms (total 1469 ms)

11-12 16:33:22.944: VERBOSE/tproxy(5511): proxy.sh start /data/data/com.hasbox.tproxy/files type=http host=xxxxxxxxxxx port=8000 auth=true user=xxxxxxx pass=*****

11-12 16:33:26.384: DEBUG/su(5524): 10094 com.hasbox.tproxy executing 0 /system/bin/sh using shell /system/bin/sh : sh

11-12 16:33:26.434: INFO/ActivityManager(252): Start proc com.noshufou.android.su for broadcast com.noshufou.android.su/.SuNotificationReceiver: pid=5526 uid=10040 gids={1015, 3003}

11-12 16:33:27.104: VERBOSE/tproxy(5511): Successfully ran redirect.sh start http

11-12 16:33:27.124: VERBOSE/tproxy(5511): Enabled = true

11-12 16:33:32.624: INFO/GPSButton(252): Update State

11-12 16:33:32.634: INFO/ActivityManager(252): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher/.Launcher }

11-12 16:33:32.644: DEBUG/ConnectivityService(252): getMobileDataEnabled returning true

11-12 16:33:32.984: INFO/ActivityManager(252): Process com.noshufou.android.su (pid 5526) has died.

11-12 16:33:32.994: INFO/ActivityManager(252): Low Memory: No more background processes.

11-12 16:33:33.094: WARN/InputManagerService(252): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@43f746d0 (uid=10094 pid=5511)

11-12 16:33:38.334: DEBUG/dalvikvm(541): GC_EXPLICIT freed 48 objects / 1984 bytes in 100ms

11-12 16:33:40.884: INFO/ActivityManager(252): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.browser/.BrowserActivity bnds=[163,338][237,417] }

11-12 16:33:40.984: INFO/ActivityManager(252): Start proc com.android.browser for activity com.android.browser/.BrowserActivity: pid=5613 uid=10003 gids={3003, 1015}

11-12 16:33:41.444: INFO/ActivityManager(252): Process com.hasbox.tproxy (pid 5511) has died.

11-12 16:33:41.454: INFO/ActivityManager(252): Low Memory: No more background processes.

11-12 16:33:41.454: INFO/WindowManager(252): WIN DEATH: Window{4404f5d0 com.hasbox.tproxy/com.hasbox.tproxy.Main paused=false}
​

is there incompatibility with my Cyanogen version ?

The proxy cyanogen continues to operate but i really like to use "Transpent Proxy.
[Desire Android Development] cynd_05:
hi all,

I have got an HTC Desire with froyo (unrooted)

I was able to install TransProxy2.04.apk

After entering the host proxy and Port, I still cant get it to work with the phone's default browser and as well as the other apps (market, fb, etc)

I can browse via fennec since proxy is set in the browser too, but the apps will be useless

Any advise on how I can get this working?

btw, how can I use proxy.pac?

it doesn't appear to resolve..

Please help
[Desire Android Development] Matthew Kane:
Doesn't work says no iptable binary found on your ROM. CliQ 2.1.5 Blur.
[Desire Android Development] .Harshit:
Hey man,

any reply to my log?
[Desire Android Development] namz:
same situation like yours , would be nice to get a reply from OP on this..
[Desire Android Development] daveba:
As you see from your log you're in a low memory condition (too many apps running), so you activity manager has murdered tproxy. I'm using this on CM6 and it's working just fine.
[Desire Android Development] daveba:
I don't see any errors here. Seems like the proxy is active so either your settings are wrong, or your authentication is not supported (NTLM or APN style chap/pap)
[Desire Android Development] daveba:
I really honestly don't know how to fix this since my Telco doesn't give me a APN which needs a proxy so i cannot test. I believe the APN proxies do authentication via a CHAP/PAP mechanism which is not supported by standard proxy method. But i don't understand why you cannot just use the proxy from the MMS given by your telco and why you need to use tproxy ?
[Desire Android Development] daveba:
Why did you not try the lastest version ? The old version didn't have much error checking like seeing if your rom had iptables, or su support. Try again with 3.08 beta.
[Desire Android Development] daveba:
Yup as mentioned in first post, your ROM must be rooted with iptables support and have the iptables and su binaries installed as we need to perform privileged tasks to reroute TCP packets.
[Desire Android Development] Sergio54:
thank you daveda, That's what I feared, my HTC-Dream starts to get really old.

But, I'll still try to find a solution. May be by activating the swap...
[Desire Android Development] daveba:
Guys, due to home pressures i've been rarely working on transproxy (and even responding on this thread as people have probably noticed). This doesn't mean development is dead, just very sloooooow (nearly nonexistent at this time). I'm happy to make the source code public (it's not all mine anyhow, just adapted slightly to work on the droids with a android gui ontop of the C source).

If anyone would like to assist for a while we can maybe work together until my free time increases, or until Gingerbread or Honeycomb come up with proper solutions.

We really need at this point someone who is proficient in 'C' and has access to a NTLM proxy at work/uni to develop and test the last barrier in the proxying. If you also have a Telco provider who has a APN that uses proxy settings (since people are asking why this doesn't work) it'd be great.

Again, no NTLM code has been done yet (well actually i'm using the wget NTLM code), but it's failry easy now i think, so i don't only need testers, i need people who have time to look at the code and modify it to add the NTLM support. The Gui as it currently stands works, so we can polish it later.

PM me if you're interested.
[Desire Android Development] anto1208:
Private for you.

By
[Desire Android Development] cynd_05:
Tried installing it but I get the error:

No su binary found on your ROM

only version 2.04 can successfully be installed.

Is there a workaround on this?

I'm not quite familiar with the rooting, etc.. I'm new to Android :D

Please help
[Desire Android Development] cynd_05:
do the other versions work on your phone? or you also get an error?

How I wish there will already be an official update for this issue or an application for this, may it be free or paid as long as we can utilize the phone for business use..
[Desire Android Development] seb1435:
Maps problem

Hi !

I am using Transproxy 3.08beta in Wifi with a http proxy, a HTC Hero with Floyo 1.1.8 (CM6) rom. Everything is working excepts...Google Maps. It's showing "Data connection lost..." every time. If I use my standard 3G connection, it's working. Any clues ? (Gmaps v4.7.0)

Thanks a lot,

Regards,

Seb
[Desire Android Development] BriEE:
Beta doesn't work but the version before does... though I can't connect to the LAN at my home when using the SSH tunnel proxy... I can connect to other web pages but not my LAN, strange?
[Desire Android Development] goddlike:
No su binary found on your ROM

I installed the transparent proxy 3.08beta

but i get the error

"No su binary found on your ROM"

Any solutions?
[Desire Android Development] _anarion_:
You need to have a rooted phone for this to work. It might be good to update the first post to say so. Also, about iptables present in the ROM. Currently first post says:

which might be confusing.
[Desire Android Development] seb1435:
Maps is working with 2.04. Strange...

But thanks for this amazing apps !!
[Desire Android Development] dangrayorg:
Quick question:

Does anyone have an iptables rule to make all computers sharing the internet connection via the wireless AP feature use the proxy transparently? At the moment mine don't seem to.

D.
[Desire Android Development] beterhans:
I need to try this at once.
[Desire Android Development] 48151623421:
A feature you could add, if possible: An activity to de/activate the proxy, without having to open the app itself. In combination with Tasker this feature would be awesome.

Anyway, thanks for the great app :)
[Desire Android Development] BriEE:
If anyone is trying this on their own home ssh server, can you see why we can't connect to local network addresses?

I have a SSH server setup in my home and I use connect bot to do a SSH tunnel. I use the transproxy and it works and shows my ip as my home address but I can't browse on my home network.

Any idea why?
[Desire Android Development] beterhans:
It doesn't work on my HTC Legend :(

but how Can I get those logs for you?
[Desire Android Development] chetankini:
NOOb

Guys im a total noob on this transproxy thing .....could someone explain to me wat iptables are ??? ....ive got se x10 mini pro and i installed transproxy 3.7 and it says ur rom doesnt have iptables binary ......and ive got no clue on this ......

PLEASE HELP ME OUT !!
[Desire Android Development] eref:
Yes, that tasker compatibility would be awesome!
[Desire Android Development] penguinolog:
Transproxy not works on X10 mini, because in standard ROM iptables (firewall, standard for all linux devices) is not supported and alternate ROMs is not accessible.
[Desire Android Development] penguinolog:
What about adding ports for other apps? Jabber for example?
[Desire Android Development] chetankini:
wat is jabber ?? ....... can anyone give me a step by step procedure to access net on my x10 mini pro ......i use a proxy to connect to the net
[Desire Android Development] badboy63:
3.08 beta can't use google map？

I install 3.08beta transproxy, can 't use google map,help me 3Q

but install 2.04 transproxy is OK~~~~
[Desire Android Development] penguinolog:
You need alternative firmware, look in android development tread. Without alternative firmware it's impossible.
[Desire Android Development] gilligullu:
Thanks for the software, it's awesome! I am completely new to this and pretty clueless.

I am able to use internet, markets and facebook. But no luck with Whatsapp and some of the other apps.

Is there something I can do? Thanks!!!
[Desire Android Development] dalfa:
You've got a great idea, thanks!

I've played with your scripts and modified them a little.

Now it works perfectly with my ISP "WAP" (read filtered with a non-transparet proxy) connection (Voda*one IT WAP).

Thanks to redsocks and few iptables rules now I'm able to use a lot of common and uncommon ports (even IMAPS, wow!).

Maybe this hint could help someone: your default config uses http-relay to forward traffic on port 80. My ISP proxy seems to accept just http-connect.

I'm an Android owner since few days but I really love it!

Let me know if you need some help to improve the application! I'm absolutely ignorant about android development but I learn fast! A more powerful gui would be wonderful.
[Desire Android Development] cynd_05:
do you have a rooted phone? which ROM are u using?

I can only get firefox and meebo working with 2.04

cant get the latest transproxy version installed because I get an error
[Desire Android Development] cynd_05:
If I root my phone, can I configure transproxy 3.08 using a configuration script as proxy?

Please advise...
[Desire Android Development] mjg59:
Mobile only?

Is there any chance of being able to choose which network types to have this enabled on?
[Desire Android Development] ElCap13:
im running LeeDroid 2.2f on HTC Desire.

ive installed 3.07 transproxy and i can get internet access to a few apps (maps,gmail,browser) using wireless at work, which is awesome! but when i disconnect the wireless and try to connect via 3g i dont get any data connection?!?!?

im on Telstra NextG which uses a proxy to access the internet...

is there any solution to this?

thanks

Rob
[Desire Android Development] melben:
I think there are 2 options:

1. Easy, but tiresome option - every time you disconnect wireless, open transproxy and disable it.

2. Automate it with Tasker and the Locale Execute plugin:

--Install Tasker

--Install Locale Execute Plugin (tasker is compatible with many Locale plugins)

--Install Transproxy and configure

--Create a new profile in Tasker (mine is named after the wireless network that requires the proxy) with the First Context being a State

--Choose the state "Wifi Connected" and add in the SSID of the network that requires the proxy

--Add a new task "Transproxy On"

--Add an action to the task and select "Plugin" as the type and "Execute" as the plugin

--Edit the configuration of the Execute Plugin Action and type:

!/data/data/com.hasbox.tproxy/files/redirect.sh start http

(not sure if that "http" is needed, I think I put it there when I was troubleshooting. The exclaimation mark is required as that means to run the command as the root user)

--Tap on the "Transproxy On" task and select "Add exit task" and create a "Transproxy Off" task that runs the command:

!/data/data/com.hasbox.tproxy/files/redirect.sh stop

--Now you keep transproxy enabled and tasker will take care of things for you

--The first time each of the "Transproxy On" and "Transproxy Off" tasks run Super User will prompt to allow and remember.

--Each time you reboot the phone, you will need to remember to enable transproxy as it doesn't hold the enabled state through a reboot.

--I had trouble with the things getting messed up that I could quite work out, but when I disabled the gmail account autosyncing, the problems went away.

Hope this helps you or anyone.

Ben
[Desire Android Development] amromun:
Hi my university uses proxy for the internet and what I do is that I enter "proxyserver" in the address field and 8080 in the port using IE when I try to use transproxy I get "cannot resolve hostname proxyserver " is there anyway around this ? thank you
[Desire Android Development] eref:
Great solution! Thanks :)
[Desire Android Development] Dentxinho:
any news about NTLM support?
[Desire Android Development] drizztje:
I suggest you to download and run cntlm on your work pc, and use transproxy to connect to it.
[Desire Android Development] BriEE:
Can someone please help me and why I cannot connect to my LOCAL network when the proxy is enabled as SOCKS, I have connect bot with established port forward dynamic port, the general browsing works and checks my ip as my SSH server but when I try to access local network, it won't let me????:(
[Desire Android Development] Dentxinho:
Hello.

I did this, but it doesn't work.

I can browse using my PC as a proxy running cntlm, but my phone doesn't generate any logs in cntlm verbose mode.

The cntlm configuration is OK.

Can someone give me a hand on it? Thanks
[Desire Android Development] drizztje:
Check your cntlm config, it needs to listen on the correct network interface, by default it listens on 127.0.0.1 I think.
[Desire Android Development] Dentxinho:
I have set the Gateway option to yes, so it listens on 0.0.0.0:3128
[Desire Android Development] drizztje:
Never tried the gateway option, I just edited the "username, password, domain, proxy and listen" fields, and it worked for me. Can you reach the pc from your phone? Maybe there is a ping tool in the market so you can try to ping it first.
[Desire Android Development] net21:
Thanks you work!

The browser and market and Google Translate works perfect, but the Google maps seems don't work with this proxy.
[Desire Android Development] JohnnyGW:
Cannot make transproxy to work in CM6

Hi, sorry if this question was previously answered but I cannot get transproxy to work on Cyanogenmod.

I tried with different versions of transproxy. Now I'm using 3.08beta with CM6.1 RC2.

My problem is that unless I switch on CM own proxy settings I cannot do anything. No browser, no weather, no maps, and so on.

If I turn on CM settings at least I can surf.

Could this be a problem with NTLM authentication?

Thanks in advance and keep up the good work.

Juan
[Desire Android Development] radee85:
Do not work with Teamviewer.apk. help

internet works fine.