8
NEWS FORUM WIKI XDA TV Type To Find Your Device... Search All Forums Like Tweet +1 NEW TO XDA? STAR FIND YO Ex: Nexus 5 OR STAR Apps an Show Of Guide: G TOTAL MEMBE ONLINE NOW Search this thread MOST THANKED I ALL-TIME 4 FAQ/Trouble not … Moroni 2 Version 0.75 Moronig 2 (quote) I'm so Moronig 2 (quote) jaker4 Moronig

[APP] Autoproxy for Android Http(s), Socks, Proxy.pac Ntlm [24.Aug

Embed Size (px)

Citation preview

  • 12/3/2014 [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13] - xda-developers

    http://forum.xda-developers.com/showthread.php?t=1083284 1/8

    5,542,129 MEMBERS

    [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13]

    17th May 2011, 02:03 PM (Last edited by Moronig; 25th August 2013 at 03:24 AM.) Reason: Added info about update 0.75, g+ community link

    #1

    Page 1 of 43 1 2 3 11 > >>

    > Android Development and Hacking > Android Apps and Games > [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13]

    Tip us?

    Moronig

    >

    Senior Member - OP

    Thanks Meter 190

    Posts: 365Join Date: Dec 2010Location: Curitiba

    MORE INFO

    DONATE TO ME

    [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm[24.Aug.13]

    Autoproxy creates a transparent/intercepting proxy running on yourphone, and redirects web traffic through it, so other apps don't have tobe aware there is a proxy. All outgoing traffic is captured, formattedand transmitted through your network's proxy. That means it workswith other browsers, gmail and maps. The core of this app is theredsocks proxy redirector, and cntlm. It now works with proxy.pacfiles.

    WARNING: Your phone must be rooted and have an iptables binarywith nat support.

    Download links at the bottom, scroll down to see

    This app is based on the TransProxy app by daveba (link).

    I have modified it, and added to the basic funcionality. Please try it and let me know what you think.Bug reports/suggestions are welcome. (keep in mind this is the first app I release!)

    What's new:

    Version 0.75 beta[24.Aug.2013]:

    I ain`t dead!Several bugfixesUpdated holo layoutOption to check if proxy is at specified address before connectionExpanded notification shows sent bytes through proxy (Android > 4.1)option on notification to disconnect (Android > 4.1)Lite version now auto-connects as well (no need to open app)

    Get newest beta from XDA or directly from Play Store. Must join G+ CommunityLogs now saved to sdcard

    Please report bugs, they will be fixed as soon as possible

    Version 0.57 [02.Dez.2011]:

    Added Thai translationFixed SQlite errors caused by multiple simultaneous access to the database

    Version 0.56 [28.Nov.2011]:

    Added compatibility to Honeycomb (Android 3.x)Added compatibility to Ice Cream Sandwhich (Android 4.0)Fixed a bug that prevented app from running on Donut (Android 1.6)Added polish translation (thanks Devastator)

    Version 0.54 [23.Nov.2011]:This version and the future ones will be available on the market. Check it out here.

    Fixed a bug where app would crash if you changed notification options while connectedFixed a bug where it would falsely show as connected if superuser permission given to redsocks, but not to iptables.Updated german and french translations. Thanks elec.ted and AtomuskAdded lite version (free, ad-supported) in market.

    Version 0.53 [22.Nov.2011]:

    Fixed a bug where authentication info was not savedChanged package name, you should uninstall the old version before installing this one.

    Version 0.5 [21.Nov.2011]:

    Forward custom ports (Note: your proxy must allow connection through the ports)Added support for proxy.pac files

    NEWS FORUM WIKI XDA TV

    Type To Find Your Device... Search All Forums

    Like Tweet +1

    NEW TO XDA? START HERE.

    FIND YOUR DEVICE

    Ex: Nexus 5, Galaxy S4, HTC One

    OR START EXPLORINGApps and Games by XDA MembersShow Off Your HomescreenGuide: Getting Started on XDA

    TOTAL MEMBERSONLINE NOW

    Search this thread

    MOST THANKED IN THIS THREAD

    ALL-TIME

    4FAQ/Troubleshootingnot

    Moronig

    2Version 0.75 beta is out! What`s new:

    Moronig

    2(quote) I'm sorry, I didn't

    Moronig

    2(quote) jaker44, I got your error

    Moronig

  • 12/3/2014 [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13] - xda-developers

    http://forum.xda-developers.com/showthread.php?t=1083284 2/8

    Added support for proxy.pac filesAdded support for not proxying connections to a host (for use with connectbot)Connections to local network now go directly (not through proxy)Added connection progress infoFixed a bug where autoproxy would not disconnect when it had FC during connectionLogging is now turned off by defaultConnection now done in background threadNow available in spanish! (thanks stefano.pazzaglia)Now available in italian! (thanks stefano.pazzaglia)Now available in german! (thanks pulverJohnny)

    If you wish to see autoproxy in your language, you can help here.

    Version 0.33 [14.Nov.2011]:

    Added localization in french (thanks to mobilis2009)! If you wish to see autoproxy in your language, you can helphere.Fixed reconnection bug. Autoproxy will ask for root permissions a lot less now.Streamlined native command execution. Connect/disconnect faster.More stable when autoconnecting to proxy on mobile networks. (Thanks adsl17910 for help testing this)

    Version 0.3 [11.Nov.2011]:

    Added localization in portuguese! If you wish to see autoproxy in your language, you can help here.

    Minor bugfixes

    Version 0.289 [10.Nov.2011]:

    Added option to always show notification icon, even when disconnectedFixed error "Failed to start proxy.sh () bind Address already in use)Fixed error that made Autoproxy ask for root permissions on every network state changeFixed error where autoproxy was connected, but the disconnect button was not enabledChanged command to stop redsocks: manually creating symlink for killall no longer necessaryAdded another redirect method, will now work for people that had an error "No chain/target/match"Updated redsocks binary (reduced app size)Stops the service when you close the app (by pressing the back key) to save memory. Will not affect functionalityMinor UI tweaks

    Version 0.27 [4.Nov.2011]:

    Made it backward compatible with Android 1.6 Donut (api 4)Attempted fix for error "Failed to start proxy.sh () bind Address already in use)Moved log files to app-logs folder, under the app path, so that android doesn't auto-delete it.Minor UI changes

    Version 0.25 [31.May.2011]:

    Fixed issue: Error when starting proxy:log_preopen(file:/data/data/net.moronigranja.tproxy/files/../cache/redsocks.log,...): No such file or directoryAdded limit to cache files, cache will be limited to 1Mb

    Version 0.24 [31.May.2011]:

    Fixed issue: Sometimes doesn't reconnect proxy when rebooting phoneFixed issue: Iptables fails when a hostname is used if the dns lookup returns more than one ip addressAdded option to disable logImproved log information, to help issue resolution.Added new redsocks binary, with better buffer support

    Version 0.2 [19.May.2011]:

    Fixed FC issuesAdded SSID/mobile network field in network listAdded log option to redsocks (see updated faq)Back button from network list now returns to preferences

    Version 0.1 [17.May.2011]:

    http, https, socks4, socks5, http(s) with ntlm auth supportedMultiple proxy settings supportedAuto connect to proxy. It will detect your network settings, and connect you automatically when the network isdetected (Wifi and Mobile networks)Recognizes a network even through Access Points (APs) with different namesntlm support (not tested with Microsoft ISA or forefront) testers needed!Notifications when proxy is turned on (can be disabled in settings)New, shiny icon.

    Known issues:

    Planned updates:

    Support for manually setting Wifi networkApply changes to a connected proxy automaticallyAllow selection of apps to go through proxyWPAD support (proxy auto-detect)x86 support (on alpha, coming soon!)

    Screenshots:

  • 12/3/2014 [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13] - xda-developers

    http://forum.xda-developers.com/showthread.php?t=1083284 3/8

    XDA PORTAL POSTS

    [APK] Google Maps 7.7 BringsEvent Data o Places, YouTubeGets Curious New Dog Bone Iconand Developer Settings Menu

    Just when we thought

    [APK] Google Wallet v2 BringsOrder Tracking, Translate 3.0.5with 13 More HandwritingRecognition Languages, andChrome Beta Gets Crash Fixes

    Its

    Get Your Daily Dose of Gasolinewith Autohub

    We Android users also have manyother hobbies aside fromtechnology, rooting, and messingaround

    Development Arrives on theMediaTek 6589T-Powered WikoStairway

    Due to their bargain basementprices and high apparent value, itshould come

  • 12/3/2014 [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13] - xda-developers

    http://forum.xda-developers.com/showthread.php?t=1083284 4/8

    If you want to help translate Autoproxy to your language, you can help at http://www.getlocalization.com/Autoproxy/

    Autoproxy is now on the android market, SlideMe Store, Amazon appstore and getjar(lite only). It's $2.95. For allthose who have helped in finding bugs, making suggestions or translating, I'll give you a refund on the market ifyou email me about it.

  • 12/3/2014 [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13] - xda-developers

    http://forum.xda-developers.com/showthread.php?t=1083284 5/8

    REPLY

    Ads by Google

    17th May 2011, 02:04 PM (Last edited by Moronig; 4th November 2011 at 12:21 PM.) #2

    Lite Version:

    ATTACHED FILES

    AutoProxy_lite_0.75.0.apk - [Click for QR Code] (1.70 MB, 2720 views)

    The Following 45 Users Say Thank You to Moronig For This Useful Post: [ Click to Expand ]

    advertisement

    xda-developers Fast VPN Proxy for BrazilUnblock Any Site, Try it Risk Free. 100% Secure, High-Speed Guaranteed! expressvpn.com/Proxy

    Moronig

    >

    Senior Member - OP

    Thanks Meter 190

    Posts: 365

    Join Date: Dec 2010

    Location: Curitiba

    MORE INFO

    DONATE TO ME

    FAQ/Troubleshooting

    Q. The proxy is not starting automatically when I connect to my network, what do I do?A. The proxy will auto-start when it detects the network that you were connected to when the setting was created. If you werenot connected to the right network at the time, you must connect manually to the proxy once. Then the app will remember toautostart when connected to that network from now on. It should show "Associated with 1 networks" (1 or more) in the proxyinfo.

    Q. The proxy is turning on when I'm connected to another network, what goes?A. Perhaps you were connected to this network when you added your proxy settings? If you open the app and click ondisconnect, it will know not to autostart the proxy for this network again. You just need to manually start the proxy

    Q. How do I root my phone?A. There are several ways to do it. Search this forum. I personally used z4root, and I've heard good things about Universal 1-click root.

    Q. Is this compatible with my phone?A. If you have root access, and iptables with nat, it should be. I haven't tested it on anything below android 2.1, though, soreport if it works for you.

    Q. The app says iptables binary was not found in my rom, what can I do?A. Maybe your rom does have it, but it's on another path. So try this:go to a shell (either on your phone or adb)Type: su (your phone must be rooted)Type: iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to 8123Type: iptables -L -n -t natIf that doesn't work, then you don't have iptables on you rom. Check out this post or PM me and I will try to assist you withthis problem.

  • 12/3/2014 [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13] - xda-developers

    http://forum.xda-developers.com/showthread.php?t=1083284 6/8

    REPLY

    17th May 2011, 04:38 PM #3

    REPLY

    17th May 2011, 06:11 PM #4

    REPLY

    17th May 2011, 06:51 PM #5

    Q. Market is not working, it hangs at 'Starting Download'. Is there a way around that?

    A. Sorry, but I can't help you there. This is often caused by port 5228, used by market to authenticate, being blocked by yourproxy. Apparently this causes issues with gtalk as well. You'd have to redirect through somewhere else, using VPN or anSSH tunnel.

    Q. I'm getting an error "Failed to start proxy.sh () bind Address already in use" when my phone wakes from sleep.

    A. This problem was most likely caused by some roms not having killall linked. (Thanks @Misato-chan). Update to version0.27 or later to fix it.

    Q. It's not working for me!A. Let's try and fix it, post your problem with at least the following:Problem descriptionPhone make/modelAndroid versionVersion of the app you're runningError messages(if any)Logs: redsocks.log and tproxy.log (can be found on /data/data/net.moronigranja.tproxy/app-logs)

    Warning Will contain some private information (eg: ip address of sites you tried to access) so you may email them to meinstead of posting here (moronigranja at ymail dot com)

    Type of proxy

    The Following 4 Users Say Thank You to Moronig For This Useful Post: [ Click to Expand ]

    wallla

    >

    Senior Member

    Thanks Meter 12

    Posts: 100

    Join Date: Jun 2010

    MORE INFO

    Thank you a lot. I will try it for sure.

    One little "bug" I've already discovered:In preferences, click on "View Networks", then go back via the hardware-back-button. Normally I would expect to get back tothe preferences-screen, but instead I land on the main activity.

    Motorola Milestone || Stock Elcair 2.1 (not rooted)Nexus S GT-i9023 || Matr1x 15 CFS || Stock ICS 4.0.3 - rooted

    ryteng

    Junior Member

    Thanks Meter 1

    Posts: 6

    Join Date: Nov 2009

    Hi Moronig,Good Job!! Finally your version work for me!! Thank you very much!Perhaps previous version by daveba might work, I followed your guide in http://forum.xda-developers.com/show...766569&page=76 Post #752. with your version and the magic happen! You should include the iptablesissues in your FAQ since many phone doesnt come with it.

    BTW, I am testing with China tablet M701 Telechip TCC8902 base. Gingerbread 2.3.1. Browser work, will continue to testMarket.

    Keep up the good job!

    Cheers!

    Moronig

    >

    Senior Member - OP

    Thanks Meter 190

    Posts: 365

    Join Date: Dec 2010

    Location: Curitiba

    MORE INFO

    DONATE TO ME

    Quote:

    Originally Posted by wallla

    Thank you a lot. I will try it for sure.

    One little "bug" I've already discovered:In preferences, click on "View Networks", then go back via the hardware-back-button. Normally I would expect to getback to the preferences-screen, but instead I land on the main activity.

    Thanks walla. I will take a look, it will be fixed on the next release.

    Quote:

    Originally Posted by ryteng

    Hi Moronig,Good Job!! Finally your version work for me!! Thank you very much!Perhaps previous version by daveba might work , I followed your guide in http://forum.xda-developers.com/show...766569&page=76 Post #752. with your version and the magic happen! You should include theiptables issues in your FAQ since many phone doesnt come with it.

    BTW, I am testing with China tablet M701 Telechip TCC8902 base. Gingerbread 2.3.1. Browser work , will continue to testMarket.

    Keep up the good job!

    Cheers!

    Good idea, I will do that.

  • 12/3/2014 [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13] - xda-developers

    http://forum.xda-developers.com/showthread.php?t=1083284 7/8

    REPLY

    17th May 2011, 07:21 PM #6

    REPLY

    18th May 2011, 12:46 AM #7

    REPLY

    18th May 2011, 08:00 AM (Last edited by XZQ't; 18th May 2011 at 10:12 AM.) #8

    REPLY

    18th May 2011, 11:14 AM #9

    REPLY

    18th May 2011, 02:10 PM #10

    REPLY

    Find my apps: AutoProxy

    The Following User Says Thank You to Moronig For This Useful Post: [ Click to Expand ]

    Valantur

    Member

    Thanks Meter 22

    Posts: 67

    Join Date: Aug 2010

    Thanks for taking this project forward.

    One small request that I'd like to make is to include a way for assigning proxies depending on the SSID of the network. Thatfeature would allow me to configure different proxies for different networks beforehand, and also is less traumatic if thenetwork changes the ip address and gateway that assigns to each connection.

    Thanks!!

    ivkom

    >

    Junior Member

    Thanks Meter 1

    Posts: 4

    Join Date: May 2011

    Location: Mirny, Yakutia

    MORE INFO

    Goo job!But not all apps working, for example Market..

    XZQ't

    >

    Senior Member

    Thanks Meter 9

    Posts: 129

    Join Date: Jan 2010

    MORE INFO

    It's not working for me. Here's the information.

    Problem description : internet not working - all appsPhone make/model : Samsung Galaxy S II , rooted, kernel version XWKE1Android version : 2.3.3Version of the app you're running : 0.1Error messages :

    Logcat trace : http://pastebin.com/BYf3PvcZType of proxy : http without authentication

    ryteng

    Junior Member

    Thanks Meter 1

    Posts: 6

    Join Date: Nov 2009

    Quote:

    Originally Posted by ivkom

    Goo job!But not all apps work ing, for example Market..

    It works on My Gingerbread. Browsing and downloading no problem at all.

    blakeg

    >

    Junior Member

    Thanks Meter 0

    Posts: 4

    Join Date: Mar 2011

    Location: Liberty Center

    MORE INFO

    Quote:

    Originally Posted by ryteng

    It works on My Gingerbread. Browsing and downloading no problem at all.

    This proxy rocks. It works perfectly with all my apps (including Market) on my NookColor running CM7.1 (2.6.32 kernelbeta3.1).

  • 12/3/2014 [APP] Autoproxy for android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13] - xda-developers

    http://forum.xda-developers.com/showthread.php?t=1083284 8/8

    Ads by Google

    Search this thread

    Previous Thread | Next Thread

    More Info: Contact | Rules | Change Log | Suggest Content | Privacy Policy | XDA App

    Copyright xda-developers. Powered by Searchlight 2014 Axivo Inc. Hosted by Leaseweb.

    advertisement

    xda-developers Esconda seu IP de graaWifi Protector vai esconder o seu endereo IP de graa. Download. br.wifiprotector.com

    TAGS

    iptables, netw ork, ntlm, proxy, socks

    1 2 3 11 > >> Page 1 of 43

    > Android Development and Hacking > Android Apps and Games > [APP] Autoproxy for

    android Http(s), Socks, Proxy.pac Ntlm [24.Aug.13]

    XDA Developers was founded by developers, for developers. It is

    now a valuable resource for people who want to make the most of

    their mobile devices, from customizing the look and feel to adding

    new functionality. Are you a developer?

    -- XDA 2013 Beta

    + POST REPLY SUBSCRIBE