yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] winnipeg:
Fails on wakeup from standby

Thank you for a really useful App very nice.

All works well so far except I experience one issue.

My setup is Advent Vega Stock Rom base – Added Modaco R8 and Buzz_Vega_0.3_SLAVE_HOST Kernel.

Autoproxy works 100% on first connect.

If it goes to sleep I get an error as below.

If I reboot it’s OK again and works until next sleep.

(A separate issue is loss of time and date on some reboots).

The error is:

Failed to start proxy.sh ([: permission denied 1307972722.812063 redsocks.c:699 redsocks_init_instance(…)bind Address already in use)

I don’t know enough to say much but guess the first allocation locks the resource then next time when the Vega wakes up it tries to connect (Vega shuts down Wi-Fi in sleep mode) and finds the resource locked by the previous use.

I have not tried anything other than a reboot which clears the problem until next sleep and turning off and on Wi-Fi which did not help.

Where there is a direct wifi connection and no proxy everything is OK and works from sleep mode.

Thanks for any help or ways to solve this.
[Android Apps and Games] flame10:
Thanks for this.. using it without any bugs ..
[Android Apps and Games] Moronig:
Hello winnipeg, if you open Autoproxy after your device wakes up, does it show connected or disconnected? If it shows connected, you can touch the button on the top right to disconnect, and try to connect again (manually).

Can you send me the logs for the time that error happens? They are: redsocks.log and tproxy.log (can be found on /data/data/net.moronigranja.tproxy/files).
[Android Apps and Games] winnipeg:
Fails on wakeup from standby

Hi Moronig,

Thank you for your answer.

I have done a few tests and checks as you suggest, results:

Wakeup from sleep – shows connected (no notification happens as on first connect).

The button top right is green but touching it = no effect.

Removed the proxy – still shows connected – re-added – the same.

Using Astro file manager from the market set to show hidden files etc

(/data/data/net.moronigranja.tproxy/files) folder /data/data/ - empty

Did a search from root for redsocks.log and tproxy.log nothing found - So sorry no logs to send for now. I was looking forward to reading them myself to.

Error on wakeup same as previous post.

I am happy to flash back to Stock ROM and try or some other configuration if needed. At this stage I though best not to change anything unless you think it advisable.

For information I visit a few sites all on slightly different subnets / gateways but all via the same proxy address back at the Centre. The proxy is also hidden does not respond to pings.

I don’t know Andriod / Linux very well so I am not sure if I have missed anything did the searches from the root and include sub directories. I don’t know how good Astro is also.

Have just been using this Vega for a short few weeks and become addicted to forums on it for now. Looks like lots to learn :)

Thanks for your help with this.
[Android Apps and Games] Fixup:
Just want to say that I am still waiting for the next version that can select port(s) and block local destinations. Thank you.
[Android Apps and Games] bringonblink:
Plus one! Keep up the good work
[Android Apps and Games] Moronig:
Hi! I will be on vacation soon, and I'll have some free time. I expect to clear the list of planned updates soon.
[Android Apps and Games] bringonblink:
Sweet
[Android Apps and Games] mgmate:
Hi Mororing,

When will be next update? Waiting for proxy pac support.

Enviado desde mi HTC Desire usando Tapatalk
[Android Apps and Games] Zuecho:
Hi,

found an error in v0.25:

i cant send emails with htc mail in version 3.10.000.037285.405

would be great, if you can fix this

chears
[Android Apps and Games] Homer_S_xda:
Finally!

I have a functional proxy on my Nook Color, sniff.

Thanks!

Homer
[Android Apps and Games] Bradshort:
Great work! Was a big fan of Transproxy (my main reason to originally root was for proxy access) and now I'm loving Autoproxy!
[Android Apps and Games] tsukaza:
Same here, been using transparant proxy on my NC Phiremod v7. Autoproxy works great. You tube app have issue but it could be the proxy server blocking.
[Android Apps and Games] bringonblink:
I have something embaressing to admit Moronig...

Remember a few posts back i was talking about how XDA app was not working, only broswer and a few apps were working for me.

Anyhow i just assumed it was a problem with the app, didnt think much about it.

Today however, i was thinking and i realized our school has two subnets, one DHCP which is has URL filtering and most ports blocked etc....

and a nother Static IP that ports aren't blocked etc..

I'm sure you can guess which subnet i had assigned to my phone... *facepalm*

Basically changed to static and everything works! Great job dude
[Android Apps and Games] Moronig:
Good to know, one less thing to worry about! Thanks for sharing.
[Android Apps and Games] Moronig:
Hey Zuecho,

What type of mail server are you trying to use? Pop3 or Imap? Does Smtp work? You're having problems to receive, send, or both? Does your server require SSL or TLS?
[Android Apps and Games] namz:
Problem description : Getting Error "The Server Failed to Communicate" while trying to access Internet though Android Browser

Phone make/model : HTC Desire

Android version : Ace S 2.50.405.2 WWE base, Gingerbread 2.3.3 android

Version of the app you're running : Autoproxy v0.25

Error messages(if any) : The Server Failed to Communicate

Logs: redsocks.log and tproxy.log (can be found on /data/data/net.moronigranja.tproxy/files) : Checked in Data Folder, No logs file there.

Proxy : HTTP with Authentication

I can use my current ROM's WIFI feature and add a proxy address there and connect but that only allows me to access web via browser. I am interested in accessing others apps like FB, Maps etc.

Thanks,
[Android Apps and Games] Zuecho:
Hi,

receiving mail via pop3 and IMAP is working, but sending via SMTP and TLS does not work.

Thanks
[Android Apps and Games] bringonblink:
Hi Moronig,

Just thought i would let you know of a bug i think i have found.

First i'll explain mysetup, at home i use DHCP, then at work i switch to a static ip with the proxy.

On the way to work i disable wireless and enable 3G.

Now when i get to work and turn on wireless and connect to the network, i would assume the autoproxy would automatically start up and connect to the proxy.

Not the biggest of problems by any means, just thought you may want to know!

Also do you have plans to get this up on the market anytime?
[Android Apps and Games] magdap:
Please check if your proxy provider has blocked the outgoing port. please check if your mail provider supports other(ssl) ports.

Thanks to Daveba and moronig
[Android Apps and Games] Zuecho:
Hi, it does not work with SSL and my try to connect via port 25 without encryption failed, too. Using 3G all is working fine.

Thanks!
[Android Apps and Games] magdap:
You have to make sure, that ports like 995, are not blocked! Look through google which ports are allowed. I think gmx.de or web.de supports ports like 465 for ssl too. Just google the ports and find them on the faq pages of these providers. I don't think that this an auto proxy problem. Your university had just blocked a few ports more!
[Android Apps and Games] n710c:
I found some app will not work after proxy on but work after proxy off.

For example, my gtalk will not work after auto proxy on but it works if auto proxy off.

How about a function, liked black/white list? we can list some apps to ignore the proxy setting rather than all go through the proxy?

Thanks for creating this "must have" app.
[Android Apps and Games] bringonblink:
This is a good idea

Sent from my Nexus S
[Android Apps and Games] capslock66:
I am the author of another tools that forward android localhost communication

to the windows PC using USB.

This is useful if your "client" android application want to connect a "server" windows application using socket. (opposite is easy).

I can then forward firefox or opera communications to the host and call a proxy.

User must configure browsers to set proxy to localhost.

Another solution is Transproxy or AutoProxy.

Browsers communications are forwarded to android local host (8080) then forwarded to the host using my tool.

That work fine !

In the next version, I want to incorporate IpTables to forward directly communications (for root user) without any other specific tool.

Here is the link to my tool :

http://www.codeproject.com/KB/android/UsbPortForwarding.aspx

The Question :

Is the the source code (based on TransProxy) published somewhere ?

I am interested by the Iptable calls.
[Android Apps and Games] ezechiel1917:
Hello, is this supposed to work for IMAPS (port 993) ? I just noticed today that it uses my default connection instead of selected proxy.

Which ports are supported in current version?
[Android Apps and Games] Moronig:
Hey capslock66, your project sounds interesting. Have you seen this article on reverse tethering?

You mentioned there the idea of installing a local proxy. I would suggest using polipo rather than squid. It's much easier to install and configure on windows, it has a portable version, and you can set a parent proxy (you can do that with squid too, polipo is just easier).

I haven't changed the iptables calls from the original (except when the target proxy server is listening on port 80, then I had to add a "! -d proxy-address" to the call.) Here they are:

iptables -F -t nat
iptables -t nat -A OUTPUT -p tcp --dport 80 ! -d proxy-address -j REDIRECT --to 8123
iptables -t nat -A OUTPUT -p tcp --dport 443 ! -d proxy-address -j REDIRECT --to 8124
iptables -t nat -A OUTPUT -p tcp --dport 5228 ! -d proxy-address -j REDIRECT --to 8124

If you need it, the source for transproxy is here. I haven't released the source for autoproxy yet.

PM if you want help with iptables.

Regards,

Moroni
[Android Apps and Games] Moronig:
The current version is only forwarding ports 80(http) 443 (https) and 8443 (market)

If you have access to a root shell on your phone, you can run this command after Autoproxy has connected to the proxy:

iptables -t nat -A OUTPUT -p tcp --dport 993 -j REDIRECT --to 8124

See if that works for you. I'm adding support to other ports at the moment. Making a clean, simple UI for it is proving difficult.
[Android Apps and Games] xdamonition:
Hi Moronig, I have the same error, tried those command above resulting :

# cat /proc/net/ip_tables_targets
ULOG
REJECT
MASQUERADE
LOG
DNAT
SNAT
ERROR
# cat /proc/net/ip_tables_names
nat
mangle
filter
# cat /proc/net/ip_tables_matches
state
owner
mac
conntrack
conntrack
icmp
multiport
udplite
udp
tcp
#

I'm using commtiva Z71 device + cyanogenmod 7.0.3 stable, iptables version 1.3.7 and autoproxy 0.25.

Any suggestions?
[Android Apps and Games] capslock66:
Hi Moroni.

Thanks for the links. Effectively reverse tethering on windows is not very easy. The solution proposed in that site is too complex for users.

Also thanks for "polipo", I will integrate it natively on my solution.

what do you means by "PM" if you want help with iptables. Private Mail ?

I am now able to use Iptables now, with direct forward to my port, but I don't really understand the use of redsocks...
[Android Apps and Games] Moronig:
You don't have the REDIRECT target, so that's your problem. But you are in luck, you can use DNAT. Try this command:

iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to 127.0.0.1:8123

Let me know if that works, so I can incorporate that in the next version as an option.

The warning "FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378" doesn't make much difference, so don't worry about it.
[Android Apps and Games] Crusoe86:
Hello Moronig,

thank you for this really great app!!!!!

I've tried it with a Vodafone DialUp Connection and it works great. Even the Market is working... Nomally I had to use OpenVPN to get full Access with my Internet flat!!!
[Android Apps and Games] xdamonition:
Thank you for your response, however when i tried the command, and then issued a second command : # iptables -L -n -t nat resulting :

# iptables -L -n -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
DNAT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 to:127.0.0.1:8123

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

But still no luck, i cannot browse anything.

FYI : My office use http proxy on port 4480.

Anyway, what command do i have to issue in order to revert the iptables back to its default state?

Thank you so much for your help. :)
[Android Apps and Games] Moronig:
I'm sorry, that didn't work because the redsocks is not running. I'll make a test version for you.

to clear the rules for iptables do a flush:

iptables -F -t nat
[Android Apps and Games] zenom619:
hi...

i am using rooted x10 i ,

Wolf break tw009(cm6)

Custom zkernel with iptables/netfilter/tethering support.....

my college wifi uses a proxy........

i installed transproxy,,, and added host and ports.......

and it got connected....

how do i redirect the apps,market,browser.... to go through the proxy....

where do i have o configure??

pls help.....
[Android Apps and Games] zKsPOWERHOUSE:
I bet this app's great, i just dont have any idea where i can find some good proxies i could use ;o Anyone who can point me in the right direction? ^^
[Android Apps and Games] zKsPOWERHOUSE:
Actually, i found some proxies now, but when i try to connect to them it gives me some error msg with redsocks or smt in it? :P lol

Edit: all i need is to make it work with Miren browser really. Thats all that matters. If someone can help me figure that out, ill be most grateful :$

Edit2: but how do i find out if my phone even has iptables binary with nat support? :E i have an SGS, running darky's 5.6 or w/e, havent updated my rom in ages ;x

Edit3: i guess what im asking is is there a way to access my shell without connecting my phone to a computer and using adb?

sent from a submarine
[Android Apps and Games] Blissful Choreography:
Are you looking for a terminal emulator? There's a free one called terminal emulator on the market.
[Android Apps and Games] xdamonition:
Thank you very much, i'll be waiting anxiously. :)
[Android Apps and Games] zKsPOWERHOUSE:
How do I see if redsocks is running? Since when I try to connect to a proxy it gives me some error message with something about redsocks in it, but I can't find any redsocks.log anywhere :f

Samsung Galaxy S

Darky's 5.6 (Android 2.2)

AutoProxy 0.25
[Android Apps and Games] JugglerLKR:
Custom port forwarding - is that means i can choose which ports to proxy and which not?

When do you plan to make it?
[Android Apps and Games] xdamonition:
Is there any updates on this?
[Android Apps and Games] brisk5181:
How to get autoproxy working on Darkyrom 10.2?

Flashed my I9000M to darky's rom 10.2.

Wanted to install autoproxy to work with Speakout wireless in Toronto.

Autoproxy requires iptables, when I run:

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

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

If i use the iptables from this post: http://xdaforums.com/showpost.php?p=13574036&postcount=752

I got:

# ./iptables -L -n -t nat
./iptables -L -n -t nat
Chain PREROUTING (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:80 redir ports 8123
REDIRECT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 redir ports 8123

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
# ./iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to 8123
./iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to 8123
FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:378
#

so can i install autoproxy?

thanks
[Android Apps and Games] denzel09:
Hi, someone can help me to add more last iptables version that i alteay download? What must i do?

Thanks
[Android Apps and Games] Moronig:
Yeah, it should work for you. If not, let me know and I can help you.
[Android Apps and Games] denzel09:
Can you help me? Download iptables also from this thread..
[Android Apps and Games] Moronig:
You have to replace the new iptables binary with the one on your /system/bin folder (if you have one)

Put the new iptables binary on your sdcard root (/sdcard)

Try the following commands, on a root shell or adb:

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

cd /system/bin

mv iptables iptables.old (skip this line if you have no iptables binary already installed)

cp /sdcard/iptables /system/bin/iptables

chmod 755 iptables

mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system

Then reboot, just to be on the safe side.
[Android Apps and Games] denzel09:
Thanks ;)

Now i have this output

# cd /system/bin

# iptables -L -n -t nat

Chain PREROUTING (policy ACCEPT)

target prot opt source destination

Chain OUTPUT (policy ACCEPT)

target prot opt source destination

Chain POSTROUTING (policy ACCEPT)

target prot opt source destination

#

What must i do now? Its good?
[Android Apps and Games] Moronig:
Just install Autoproxy, configure your proxy on it and connect! Let me know how it works for you.
[Android Apps and Games] denzel09:
It works flawlessy with my s5570.

Thank you for help.

Great peace of software, 5 stars

+1 ;)
[Android Apps and Games] brisk5181:
Thanks! So which iptables to use? the stock one or the one from you?

thanks
[Android Apps and Games] Moronig:
Run this command, it should show the process number if it's running.

ps | grep redsocks
[Android Apps and Games] Moronig:
The one from stock. Looks like there won't be a problem, but if there is, try the other one ;)
[Android Apps and Games] brisk5181:
Thanks, the stock one just works! couldn't be happier!

thanks!!!
[Android Apps and Games] Moronig:
Just to clarify for anyone reading the thread at this point: You generally DON'T need to install iptables. Most roms/kernels already have it. If you install Autoproxy and there is an error related to iptables, then you can go ahead and install/update it.
[Android Apps and Games] xdamonition:
Hi Moronig,

I'm just curious, are there any updates on my issues on previous page?
[Android Apps and Games] nakulp:
I installed the application but on running got an error message.So i went to the terminal and after the usual sudo command i typed the previously mentioned commands in the thread like iptables -t nat -A OUTPUT -p etc and then got the following error message

*"Fix ME! implement getprotobyname()

Bionic/libc/bionic /stubs: c:37D

iptables v.1.3.7 cant initialize

iptables table 'nat' :iptables who?

(do you need to insmod?)

Perhaps iptables or your kernal needs to be upgraded."*
[Android Apps and Games] nakulp:
Is there any way I can get this app to work?(maybe install iptables?) because seriously,I need this one app to be able to use a faster internet apn in my xperia which i currently cannot because it is based on proxy connection. *crosses fingers*
[Android Apps and Games] brisk5181:
Thanks for the great tool.

Tested it for a few days, works for 80% of the applications!

Now the only thing left is voip. Is there a way to get VOIP/SIP working using this app?

thanks
[Android Apps and Games] basketthis:
Great app here! Took some searching to find, but worth it! :D
[Android Apps and Games] inunxelex:
froyo 2.2.1/kernel 2.6.34/ ramos tablet :(

# chmod 700 /data/data/iptables

chmod 700 /data/data/iptables

# /data/data/iptables -L -n -t nat

/data/data/iptables -L -n -t nat

iptables v1.4.7: can't initialize iptables table `nat': Table does not exist (do

you need to insmod?)

Perhaps iptables or your kernel needs to be upgraded.

# chmod 700 /data/data/iptables

chmod 700 /data/data/iptables

# /data/data/iptables -L -n -t nat

/data/data/iptables -L -n -t nat

iptables v1.3.7: can't initialize iptables table `nat': iptables who? (do you ne

ed to insmod?)

Perhaps iptables or your kernel needs to be upgraded.
[Android Apps and Games] Moronig:
Looks like your kernel has no support for the NAT table, the only known solution is to upgrade the kernel. Sorry.
[Android Apps and Games] inunxelex:
this may be help...? :(

http://users.ninthfloor.org/~inunxelex/backup/Troy_V2.14.rar
[Android Apps and Games] Moronig:
Is that a copy of your rom? It may help if someone wants to use it as a base for a custom rom, and add the nat support. I don't have a device to try it on... Try searching for a custom rom for your tablet.
[Android Apps and Games] inunxelex:
that is the original rom of my tablet, try searching moded rom but not found, and i dont know how to mod rom/kernel :(
[Android Apps and Games] kaianuar:
I've installed Autoproxy, configured the proxy and successfully connected to the proxy.

However, I've not been able to get any apps to connect through the proxy. There are no log files and when I run ps | grep redsocks nothing is returned. So what should I do next to troubleshoot?
[Android Apps and Games] cfelicio:
Hi Moronig,

I got the same issue reported by Winnipeg. Here is the original description:

Autoproxy works 100% on first connect.

If it goes to sleep I get an error as below.

If I reboot it’s OK again and works until next sleep.

(A separate issue is loss of time and date on some reboots).

The error is:

Failed to start proxy.sh ([: permission denied 1307972722.812063 redsocks.c:699 redsocks_init_instance(…)bind Address already in use)

My phone is a Samsung Gio 5560M. Happens if I switch between wifi and 3g, and also if I use a battery saver to disable the 3g when Im not using it. I found one of the logs, but the other one is nowhere to be found :(

Please let me know if you need any more info to help fix this issue, great app by the way! :)

Cheers,

Carlos
[Android Apps and Games] Dt6:
Hi,

I also have the same problem,

at first it works fine, than if I lose the signal or if the phone go to sleep I get the error message. I have tried to killed Autoproxy or disconnect it without any success. If I reboot it works again.

Thanks for your help!
[Android Apps and Games] xtrm_xtrm:
I have the same issue with it, it shows a message when awaking from sleep. Seems the connection is lost and the port handle is not being closed correctly. There should be a close port call on start up and clear handles variables to avoid the port problem. Dont know if the following has been already done at the source code, but NULL checks for all Handles and nullifing after freeing them should help on these problems.
[Android Apps and Games] gamgamus:
Failed to start proxy.sh (==: unknown operand)

Hi All,

After installing and configuring the IP/Port of a local network Proxy I get the following error:

Problem description: Error trying to connect to porxy

Phone make/model: ViewSonic ViewPad 7 (3G/WiFi)

Android version: 2.2.1

Version of the app you're running: Version 0.25 [31.May.2011]

Error messages: "Failed to start proxy.sh (==: unknown operand)"

Logs: redsocks.log and tproxy.log: no logs are generated

Any help will be very much appreciated,

Thanks,

Gam Gamus