From nathan at freitas.net Mon Apr 4 14:52:21 2022 From: nathan at freitas.net (Nathan Freitas) Date: Mon, 4 Apr 2022 10:52:21 -0400 Subject: [tor-talk] Using Orbot standalone In-Reply-To: <8edb5e59-a55d-9b7c-112c-d6c707fe59df@ieee.org> References: <8edb5e59-a55d-9b7c-112c-d6c707fe59df@ieee.org> Message-ID: <706C5F1B-56BF-4563-8F79-15C08D3B75D1@freitas.net> > On Mar 30, 2022, at 10:36 AM, Alessandro Donnini via tor-talk wrote: > > Hi, > > I apologize in advance if this question (see below) was asked (and answered) previously. I could not find any information on it. > > I would like to incorporate a proxy server in my Androd app to perform gate keeping and toll taking functions. > > Orbot is described as > > "... and also provides an HTTP Proxy for connecting web browsers and other HTTP client applications into the Tor SOCKS interface. ..." > > Could (a modified) Orbot be used as a device-based proxy server without interfacing with the Tor network? It isn?t really meant for that, and would be overkill. Running a local proxy server in an Android Service isn?t that difficult. Alternatively, you could use the VPNBuilder interface, which would make "gate keeping and toll taking functions? work quite well. I would look at NetGuard for that: https://github.com/M66B/NetGuard +n From great123456 at mail.com Fri Apr 1 22:10:18 2022 From: great123456 at mail.com (David Niklas) Date: Fri, 1 Apr 2022 18:10:18 -0400 Subject: [tor-talk] Using Orbot standalone In-Reply-To: References: Message-ID: <20220401181010.55e7dc4a@Zen-II-x12.niklas.com> On Wed, 30 Mar 2022 10:36:18 -0400 Alessandro Donnini wrote: > Hi, > > I apologize in advance if this question (see below) was asked (and > answered) previously. I could not find any information on it. > > I would like to incorporate a proxy server in my Androd app to perform > gate keeping and toll taking functions. > > Orbot is described as > > "... and also provides an HTTP Proxy for connecting web browsers and > other HTTP client applications into the Tor SOCKS interface. ..." > > Could (a modified) Orbot be used as a device-based proxy server without > interfacing with the Tor network? > > Thanks for any thoughts and suggestions about this, > > Alex Donnini > This message tells you everything about Orbot without having to ask. It provides an http->socks interface. Your first problem is that the user-agent (browser) will not be able to use https. The second is that a proxy server is different from a proxy client. This just forwards http connections to a socks proxy -- it probably could be modified to go to other socks proxies than tor. So, it's a proxy-client-glue-layer for old SW; or it sounds like that. Here's a diagram to make it more clear: Firefox->tor->tor-proxy->tor-proxy->tor-proxy->main-Internet->server Firefox->Orbot->tor->tor-proxy->tor-proxy->tor-proxy->main-Internet->server Now if all you want is an http proxy on your local computer, Android or any other, I'd suggest sparing yourself the trouble of modifying Orbot and going with privoxy. https://www.privoxy.org/ I hope it helps, David From alexdonnini at ieee.org Mon Apr 4 16:52:49 2022 From: alexdonnini at ieee.org (Alessandro Donnini) Date: Mon, 4 Apr 2022 12:52:49 -0400 Subject: [tor-talk] Using Orbot standalone In-Reply-To: <706C5F1B-56BF-4563-8F79-15C08D3B75D1@freitas.net> References: <8edb5e59-a55d-9b7c-112c-d6c707fe59df@ieee.org> <706C5F1B-56BF-4563-8F79-15C08D3B75D1@freitas.net> Message-ID: <45f6116c-aac7-c1f4-82da-f5f637ef6650@ieee.org> Hi Natahn, Thanks for getting back to me. Well, I am having a few problems incorporating littelproxy (https://github.com/mrog/LittleProxy - a proxy server running on Android) code into my app. Not that simple, at least for me. "Every Proxy" from Gorilla Software uses littleproxy as its foundation. It seems to work reasonably well on Android. This gives me hope that I will be able to resolve my problems. I have netguard. It's not designed to be used as part of another app. There is a lot of "stripping" to be done. It's an option I have not ruled out. I would still prefer to use a proxy server. I think that in the end it would give me more flexibility and control. Thanks, Alex Donnini P.S. I have tried a few other open source proxy servers none of them successfully (e.g. https://github.com/mileraheel/android-proxy-app) Nathan Freitas wrote: > >> On Mar 30, 2022, at 10:36 AM, Alessandro Donnini via tor-talk wrote: >> >> Hi, >> >> I apologize in advance if this question (see below) was asked (and answered) previously. I could not find any information on it. >> >> I would like to incorporate a proxy server in my Androd app to perform gate keeping and toll taking functions. >> >> Orbot is described as >> >> "... and also provides an HTTP Proxy for connecting web browsers and other HTTP client applications into the Tor SOCKS interface. ..." >> >> Could (a modified) Orbot be used as a device-based proxy server without interfacing with the Tor network? > It isn?t really meant for that, and would be overkill. > > Running a local proxy server in an Android Service isn?t that difficult. > > Alternatively, you could use the VPNBuilder interface, which would make "gate keeping and toll taking functions? work quite well. > > I would look at NetGuard for that: https://github.com/M66B/NetGuard > > +n > > >