yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] [deXter]:
Edit: Nvm, please delete this post.
[Desire Android Development] JadespawRJ:
NTLM testing results

Hi Dave,

Attached is a text file with the results of testing with a Nexus One with my work ISA proxy.

Cheers,

Richard
[Desire Android Development] daveba:
Nice!

If you go to the same web address (http://checkip.dyndns.com) from your desktop/laptop browser do you get the same IP address (203.

100.252.177). If so then i think we have a working NTLM proxy...
[Desire Android Development] JadespawRJ:
Yes - the same ip address!
[Desire Android Development] Quemeros:
I try v3.07/8... doing uninstall before install the new versions.

Again the same.

It could be superuser version?

What can i do, or help, to found the problem? :(

Thanks anyways!:)
[Desire Android Development] daveba:
I thought i already answered that ?

The message "iptables: No chain/target/match by that name" means your

kernel doesn't have iptables NAT support. Please ask on your respective ROM thread. If you run the command 'iptables -L -n -t nat' you'll probably get an error right ?
[Desire Android Development] sharky34:
It looks like we have had the same idea. :)

In fact, my proxy is NTLM and I have tested cntlm against it. It works great (I tested the magic feature and it returned me the type of my corporate proxy).

But, as I told you in my previous post, if I use iptable to route 80, 443, 5228 to redsocks and then to cntlm browsing is OK but the other apps cannot request on DNS.

I will have a look at it and give you a feedback.

During my tests, I pushed cntlm in my package location. Any use to push it in /data/local/ ?

I dn't know what I did with NDK but my cntlm module is much bigger than yours. It is 0.35 version.
[Desire Android Development] sharky34:
Here is the result of the test for wget:

Do not look to port, it is the default one in CNTLM.

The result is not surprising for me. I already tested it for 2 weeks on my Magic and it does connect very well to the NTLMv2 proxy of my company. But it does not all the job because CNTLM does not allow transparent proxy.

If I set "proxy setting" in the phone settings (my test phone is under Cyanogen) to point to CNTLM (127.0.01:3128), I get my browser running.

But all the other applications fail to get DNS.

It is the same if I use iptables to route the packet to Redsocks but I think the problem comes from Redsocks:
[Desire Android Development] daveba:
Yes, HTTP(s) requests will work, but other apps will need local request before getting out. We can tunnel DNS tcp request perhaps but as i mentioned before, most upstream proxies will only let you tunnel 443 so you're hosed. If your local network doesn't resolve DNS correctly apps will fail even though a connection would succeed thru redsocks.

I guess only a VPN in this case would work, or SOCKS.
[Desire Android Development] Quemeros:
Sorry if you answer me before, but i don't saw it :(

When i do iptables -L -n -t nat i don't recived any error, and i use DroidWall, that use iptables and works perefctly :confused:

I use: Samdroid 1.3.1.d - LK2.09.6 (ECLAIR.XXJH1) - Kernel: 2.6.29 (leshak-udev7-7 #53)

It could be the superuser? I have v2.3.5 (DB v5)... I try to update by apk when 3.03 don't ask for root rights, but now your script ask for rights, but don't work.

Thanks a LOT!... and i'm don't asking for use MSN, i can't send mails, etc, in my university -.-
[Desire Android Development] daveba:
Then it's likely that the netfilter REDIRECT is not in your kernel. Can you do

adb shell
zcat /proc/config.gz |grep CONFIG_IP_NF_TARGET_REDIRECT

What does it give you ?
[Desire Android Development] mistahd33:
Transproxy requires root because it accesses Android settings that only a root access account is allowed to change. Root = administrator.

Sent from my Atari 2600 using a big scary looking, extremely modified double dragon cartridge.
[Desire Android Development] jairrab:
I run the following command and get the following error:

iptables v1.3.7: can't initialize iptables table `nat': iptables who? (do you ne
ed to insmod?)
[Desire Android Development] magdap:
hey... I haven't been here for quite a while... Maps was working with v3.01 but isn't with v3.08...
[Desire Android Development] daveba:
Your ROM clearly doesn't support NAT (CONFIG_NF_NAT is not set in /proc/config.gz).
[Desire Android Development] daveba:
Works for me. Check your logcat.
[Desire Android Development] jairrab:
is there a way for me to enable it?
[Desire Android Development] daveba:
Yup, recompile the kernel with the option enabled and install it.
[Desire Android Development] mitiok2002:
if there are any news about widget for the app?
[Desire Android Development] Dentxinho:
Any news about NTLM too? :D
[Desire Android Development] chesus05:
The maps dont work for me either.
[Desire Android Development] Quemeros:
Yep, your'e right! :)

CONFIG_IP_NF_TARGET_REDIRECT is not set

:(
[Desire Android Development] chesus05:
3.08 works with gmail, market, twetdroid, browser, dropbox, calendar, gtalk, youtube ramdom

But does not work with maps, operamini, or tapatalk (in loggin).

# iptables -L -n -t nat
iptables -L -n -t nat
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

I don't know how to fix it, and i can't find older version to try it.
[Desire Android Development] daveba:
I'm trying to intergrate it into a single binary as i don't want to maintain cntlm as a separate process.
[Desire Android Development] daveba:
Check logcat again. Are you getting DNS failure in logcat. Just

adb logcat

from your PC when your phone is connected via USB and then start up maps. Any obvious errors ?
[Desire Android Development] Dentxinho:
\o/

Thanks!
[Desire Android Development] razovets-cinjaj:
Any idea?

I'm enable to start TransProxy3.07.apk(for 3.08 same thing)

Error starting proxy.sh (/data/data/com.hasbox.tproxy/redsocks: 1: Syntax error: word unexpected (expecting ")"))
[Desire Android Development] Quemeros:
There is some way to fix this?

Can load module with insmod, or something?

Thanks for your'e time!
[Desire Android Development] elbrujo69:
Hi, the last day I had installed "Transparent Proxy" app in my desire(froyo). My surprise is that now I can't connect through http(market and other apps are running ok) in dolphyn, skyfire and in the default navigator with the connection 3G/HDSPA.

Curiosly I can connect with opera.

Could you help me? I'm desperated.

Thank You
[Desire Android Development] ChrisDownunder:
Not working on HTC Desire

I have tried the most recent 2 versions of the Transparent Proxy app (3.07 & 3.08 Beta) and when I try to turn the proxy on, I get this error:

Failed to start redirect.sh (FIX ME! implement

getprotobyname() bionic/libc/bionic/stubs.c:378

iptabels v1.3.7: can't initialize iptables table 'nat':iptables

who? (do you need to insmod?)

Perhaps iptables or your kernel need to be upgraded

.. the message repeats.

I am using an HTC Desire, FroYo 2.2, using the ROM AuraxTSense 7.9 FroYp FRF91 by NeoPhyTe, which is found on this website.

Can this be made to work?

Many thanks.
[Desire Android Development] daveba:
Sure, get your ROM creator to add CONFIG_NF_NAT to his kernel build.
[Desire Android Development] daveba:
Well if you're ROM has the redirect target build as a module why not.
[Desire Android Development] daveba:
That's expected. It posts your location every few minutes. Doesn't expect a response to come back. It just updates your location.

Even on my machine (Pc/laptop) the DNS addresses changes for mobilemaps.clients.google.com depending if i'm looking up from the local machine via nslookup or via my proxy in the USA, so this is not relevant to the debugging this issue.

I will try maps myself again tonite and diagnose. I've been very busy with work so slow progress on even NTLM where people are desperate.

EDIT: Maps working fine for me for the last hour.. No issues here. What is not working for you guys ? Updating your location on latitude or google maps not updating when panning ?
[Desire Android Development] rfgamaral:
Does the new UI come with a better app icon? Will the new new UI come with one? If not, maybe you could consider using this one:

http://www.iconfinder.com/icondetails/18317/128/connect_internet_network_icon

It's similar to the current one but looks better designed. I believe the license attached allows you to use it if you want.

Just a suggestion...
[Desire Android Development] netomx:
It seems that it doesnt make DNS proxies... is there any fix for this?

My ISP has a problem, I need to use HTTPS proxies, so I can wget using http but it marks a proxy error (acces denied), because I just can use HTTPS proxies, like flyproxy. Any advice?

The proxy uses the port 8080

Thanks!
[Desire Android Development] javaaobo:
How can I add CONFIG_NF_NAT by myself ?
[Desire Android Development] snark_be:
You have to build the kernel with the options you want included. Not for the faint of heart.
[Desire Android Development] fonix232:
I like that icon, but one problem. I am intended to use the icon as the main switch for the proxy (just like in the tether apps - the big image switches stuff on/off), and for that, I need at least a 256^2px huge version. What is clearly not available.
[Desire Android Development] melben:
Hi Dave

3.02 seems to work perfectly with Tasker and the Locale Execute plugin, just executing the redirect script, but 3.07 and 3.08 don't always seem to work. I often have to open transproxy and toggle it off and on again.

Is there anything different in regards to the script that would make it work differently?

I had been using 3.02 on android 2.1 for quite a while. Just recently I installed android 2.2 and while installing all my apps I opted for 3.08 of transproxy. I had issues and then went to 3.07, then to 3.02. So I didn't try 3.07 or 3.08 on android 2.1 and I haven't tried 3.02 on android 2.2 for very long.

Thanks

Ben
[Desire Android Development] rfgamaral:
Why not use a different icon for that? IMO, it would look better if the app's icon was one thing and the switch image something different, something like a switch really.
[Desire Android Development] cromatico3:
ho scaricato transproxy e installato su desire tramite htc sync soltato che mi esce un messaggio con scritto che non è stato trovato sulla rom...cosa devo fare..???
[Desire Android Development] Dentxinho:
english please =P
[Desire Android Development] AlanPoon:
When I want to enable the proxy

It pop up a box said that "Cannot resolve hostname brock-isa1"

How can I fix it?

THZ

Alan
[Desire Android Development] malebolge2:
Hi,

I have instaled app TransProxy3.08beta.apk but when I try to run it the systems pop ups next error message: "No su binary on your ROM !"

Any clue around this error and how to sort it out?

Thanks in advance
[Desire Android Development] fabulon46:
Hello guys.

I'm french, so excuse my poor english.

I'd tried to surf with my htc wildfire (rom openfire v2.3) at my school, which is behind à proxy (slis).

I'm connected by wifi, and i know the adress and the port of the proxy. No authentification is needed.

I've installed transparent proxy, but i've got no connection.

If somebody can help me...

Thanks.
[Desire Android Development] snark_be:
You need your phone to be rooted for TransProxy to work. As part of the rooting process, the su binary is installed.

If your phone is rooted, maybe the su binary is not at the place TransProxy expects to find it.
[Desire Android Development] snark_be:
What kind of error do you get?
[Desire Android Development] fabulon46:
No special error... only that there is no connection to netword.
[Desire Android Development] ugokind:
zero

this was my last try.. because I cannot use any android program.. market. gmail.. if I disable wifi.

that's because vodafone give access with apn and a proxy inside..

with this apn I can browse internet.. but no way to use any applet that require a connection!

so I tried your beautiful program.. no way .. idem as before!

thanks and bye
[Desire Android Development] fonix232:
Umm.... root your phone? Permanently?

No problem with your english :D

So basically, be sure that currently you are connected to the network (through WiFi I suppose). Then when you're done, start up transproxy, type the address (the best would be the internal IP of the proxy server) and the port, and try to activate after all of these. It should work!
[Desire Android Development] chesus05:
I still have problems with The maps, opera mini, busybox, tapatalk. YouTube works since i installed The last update.

I think The problem comes when The programme tries to log in, but i can't prove this, taking into account that The 443 port is forwarded and that gtalk works perfectly.

I tried to forward other ports by editing the scripts in data/data, but didn't work because when restarting the proxy, my modifications were deleted.

From where can i download old versions? I want them in order to try them and see if they solve any problem.

Does anyone have any experience on this and could work it out or managed to know which is the real problem? I'll appreciate any help

Thank you
[Desire Android Development] ugokind:
my opinion is different

I think is not a must to have a proxy program

If I have linux I'll knew hot do to. I would use iptables to forwarding a packet

so the fact that all the programs except the browser CANNOT surf the net if you have a proxy APN for me is very simple. that mean that a programmer never use routines to verify what kind of connection you have.. is very heavy to manage it.. those programs use themselves a sort of socket connection, opening the tcp each one.

so we have to move in a different way, in order to see if those programs search a gateway or a proxy to exit. We cannot teach into a program finished and built as is.. to run differently. but we can manage the o.s.

I bought the galaxy in order to have and open o.s.... isn't it?

and I must learn a lot of it, before comprehend in what way it's managing the network.

in linux we have resolv.conf, iptables, network srvices..

and here?

2°nd: all the suggestions here and in the net refer to software that install proxy..

but in linux/unix the forwarding is not a softwar but is a software that CALL a slice of IPTABLES that RESIDES in a KERNEL.

so, the 1st way to think on how to resolv our problem is to search or compile a NEW KERNEL with a method that manage proxy
[Desire Android Development] wallla:
Android isn't as open as you might think.

On the Motorola Milestone (the European equivalent of the Droid 1) Motorola uses a signed bootloader that checks for changes of the Kernel and won't let it boot, unless it has the right signature.

You can trust me by saying that enough people tried a very long time to boot custom kernels, but nobody succeeded.
[Desire Android Development] daveba:
No, your DNS resolver must resolve external hosts or else the proxy will fail. You can't easily proxy DNS unless your proxy allows it (thru port 443 perhaps) and not many do. I have a simple stub to transproxy that sets up a udp listener on 8053 which i then forward DNS queries to that and this stub resolves it via a HTTP request to my private test server. I'm unsure whether to let this slip out into the wild however. I don't know how else to proxy DNS other that getting a list of hostnames to ip address mappings in a static list for sites that we know apps connect to. If someone collects a list of host/ip pairs i can have a 'fake dns' option for that. Any other ideas i'm open to.
[Desire Android Development] daveba:
I'm not sure why the script should fail intermittently. Either it should work, or not. Always check you logs. People reporting errors without logs are getting silently ignored since i can't do much.
[Desire Android Development] daveba:
Put an ip address for your proxy server, or put in a FQDN hostname. However just looking at the name (isa1) makes me think it's a NTLM based proxy so will not currently work. The shortened hostname is working in your environment as it's resolving thru netbios and not DNS. So provide a DNS hostname or a IP address.
[Desire Android Development] daveba:
NTLM authentication proxy perhaps ?
[Desire Android Development] daveba:
Usually APN proxies use CHAP/PAP auth which is not supported (since we're not really talking to a web proxy server here from what i gather, but rather a auth server).
[Desire Android Development] cromatico3:
I have download transproxy by the pc and instaled (app TransProxy3.07.apk) with htc sync but when I try to run it the systems pop ups next error message: "No su binary on your ROM !"Please help me...
[Desire Android Development] snark_be:
Your phone must be rooted. The su binary is installed as part of the rooting process.
[Desire Android Development] Kalkoen06:
Versions 3.05 till 3.07 work great here.

But 3.08beta doesn't really work like the previous versions, it still works with a normal HTTP proxy. But a SOCKS proxy doesn't.

I use connectbot to create a dynamic portforward so i can use it as a local socks proxy. This all works great till 3.07, but when i use 3.08 only Google Maps is sometimes working. Other network related apps don't get a connection anymore.

Still a great App, but then again Google should have implemented proper proxy support some time ago i think.

Some thoughts of my to improve this app:

- Like some others already said a on/off widget would be great!

- Some kind of proxy profiles based on the SSID of the wireless network? Or even automatically turn on the specific proxy when connected to a specific SSID? Don't know if this could be implemented, just ideas!

Keep up the good work :)
[Desire Android Development] ugokind:
uhmm

but all the kernel in the net.. voodoo etc etc.. my kernel is a

uname -a

Linux localhost 2.6.29 #JAC xMOD OCUV_v.1.1_Voodoo Sat Oct 2 15:24:43 MST 2010 a

rmv7l GNU/Linux
[Desire Android Development] .Harshit:
I rooted my Wildfire running original 2.1 OS and installed 3.08Beta Transproxy.apk using HTC Sync then entered my hostname and port to the settings and enabled transproxy allowed Super user request

Then went to default browser and nothing still internet wont work

then ran command

iptables -L -n -t nat

gives

# iptables -L -n -t nat

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

What are settings should i do under iptables for suppose i use 10.3.2.20:80 as my settings

Waiting for reply
[Desire Android Development] daveba:
Well i did make a small subtle change in the redirect.sh script for socks in 3.08beta which was just to tunnel ALL ports thru the proxy so in my limited testing things should be better for SOCKS, but you are reporting otherwise. I'm surprised. The previous version has 2 listeners even for socks on port 8123 and 8124, but now i cleaned up the script to only use 8123. Maybe i messed something else up.. Will check.

You should be able to just use the proxy.sh and redirect.sh from the previous version and copy it to /data/data/com.hasbox.tproxy/files and change the permissions or rezip and install.
[Desire Android Development] t4kiko:
how do i check whether my rom supports iptables? is it located in a folder?
[Desire Android Development] daveba:
You can check your original ROM file but usually it is in /system/bin/iptables. I'm explicitly specifying that path in the start/stop script. Try running this commands:

adb shell
which iptables

but i can change that fixed path if required.

I'm working on the next version which is much simpler and has user/pass auth and SOCKS support (via chaining to polipo). Works well so far...
[Desire Android Development] magdap:
Not working on a rooted nexus one... Doesn't seem to take any effects.... I have the original rom...just rooted my phone with one click root app.
[Desire Android Development] 48151623421:
worked for me today in school. Just tried browser though, I'll try the rest tomorrow.

Thanks!
[Desire Android Development] magdap:
Which phone do you have?
[Desire Android Development] daveba:
You get no errors when running or enabling the proxy ?

With adb in a console can you run the following and tell me what you get

iptables -L -n -t nat
ps |grep proxy
which iptables

When it runs do you get a super user permission request also ?
[Desire Android Development] t4kiko:
sadly my phone does not support iptables. is there anything i can do to install it or whatsoever? i'd appreciate ur help
[Desire Android Development] daveba:
What rom are you using ? Ask you rom developer to support it as it needs kernel support apart from the userland iptables command. You should be able to just copy the binary from another ROM if it's supported inkernel. Post to your ROM thread and find out first.
[Desire Android Development] magdap:
sure I get a superuser request . But that ' s all . No error or

anything like it . I don' t know anything about those abd

stuff . But I have a terminal app . Would that help if I

would type it in there too ?

Edit: this is what I get with my terminal app:

export PATH=/data/local/bin:$PATH

$ $abd shell

abd: permission denied

$adb shell

adb: permission denied

$ adb shell

adb: permission denied

$ su#adb shell

adb: not found

# adb shell

adb: not found

#i p t a b l e s - L - n - t n a t

i: not found

# iptables -L -n -t nat

getsockopt for multiport failed strangely: No such file or directory

getsockopt for multiport failed strangely: No such file or directory

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

#ps|grepproxy

grepproxy: not found

# which iptables

which: not found

#
[Desire Android Development] daveba:
Ok so it seems you do have iptables, but perhaps elsewhere. Also there is a space between the 'grep' and the 'proxy' in the last command, so could you type this in again in your console and tell me what you get.

/system/bin/iptables
ps | grep proxy

I wonder if nexus has the iptables command elsewhere since it seems that the forwarding didn't work...
[Desire Android Development] magdap:
export PATH=/data/local/bin:$PATH

$ $su

# /system/bin/iptables

getsockopt for multiport failed strangely: No such file or directory

getsockopt for multiport failed strangely: No such file or directory

iptables v1.3.7: no command specified

Try `iptables -h' or 'iptables --help' for more information.

#ps | grep proxy

grep: not found

#
[Desire Android Development] daveba:
Ah just check that that you don't have the first version of transproxy.apk i uploaded. It had a bug with su that made it not work correctly. I reuploaded it, but kept the name the same so you won't know. Please deinstall (you must deinstall first) and then reinstall the one on the first post. In App manager you should see the version as 1.01 not 1.0. The 1.0 vesrion is broken. I will provide an 'About' screen in the next version with auth/proxy support included.
[Desire Android Development] 48151623421:
HTC Tattoo, with the Custom HCDR ROM from Jacob.
[Desire Android Development] woti23:
you need a newer iptables binary, ie 1.4.7

works here with proxymator, droidwall ... on modaco r8

binary zip flashed to /system/bin

no extra module required
[Desire Android Development] magdap:
i reinstalled it, and saw that i had 1.01 already on my phone. after the install no success...
[Desire Android Development] magdap:
and how do i get newer iptables?
[Desire Android Development] woti23:
extract it from an other rom, look at /system/bin in the zip file

(think i have it from an oClock custom rom, can't remember)
[Desire Android Development] magdap:
sounds simple :-D

i am not sure i can do that. i googled and i didnt find an apk or an installation guide...

need more a bit more help ... :-)