Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy doesn't work #1098

Closed
RedSteel-1 opened this issue Oct 8, 2023 · 16 comments
Closed

Proxy doesn't work #1098

RedSteel-1 opened this issue Oct 8, 2023 · 16 comments

Comments

@RedSteel-1
Copy link

Was really looking forward to being able to route the traffic to Tor/localhost:9050.
And finally Rethink got this feature.

However, it doesn't work.

Proxy -> Orbot:
the "Setup Orbot" entry is grayed out.

Proxy -> Other -> Setup SOCKS5 Proxy:

  • App: None (grayed out)
  • Hostname: 127.0.0.1
  • Port: 9050
  • pressing Set.
    Result: nothing on the phone can connect to the internet.

Could you make the proxy work?

I'm running GrapheneOS / AOSP 13.

@ignoramous
Copy link
Collaborator

ignoramous commented Oct 8, 2023

Could you make the proxy work?

Install Orbot, start it, then make sure it is setup to accept incoming SOCKS5 over 9050. Select "App" as Orbot in that dropdown in Rethink.

And finally Rethink got this feature.

Rethink has had this feature for 3 years now.

@RedSteel-1
Copy link
Author

Select "App" as Orbot in that dropdown in Rethink.

As mentioned, "App" is set to "none" and this "none" is grayed out. It is impossible to change it.

@ignoramous
Copy link
Collaborator

Cannot forward connections to another app if VPN is in lockdown mode ("Block connections without VPN" is turned ON).

@RedSteel-1
Copy link
Author

So, this means either turning off lockdown mode and possibly make some programs and system components access internet while bypassing Rethink with all its blocklists and other privacy/security hardenings (thus compromising privacy/security), or keeping lockdown mode but having no way to route the traffic to Orbot, is this correct?

@ignoramous
Copy link
Collaborator

ignoramous commented Oct 8, 2023

Yep. This is an Android limitation. Android won't let Orbot connect (without being tunneled through Rethink) if Rethink is put in VPN Lockdown mode.

some programs and system components access internet while bypassing Rethink

Unless Configure -> Network -> Enable network visibility is turned ON, installed apps cannot bypass the VPN tunnel Rethink setup regardless of whether it is in VPN Lockdown mode or not.

System apps may (not that they do) bypass any VPN tunnel regardless of whether the VPN is Lockdown. See: #224

@RedSteel-1
Copy link
Author

Hm, I thought VPN lockdown system setting is for forcing all network-facing programs (installed and system) to the selected VPN.

In this case what is the point of this setting at all?

@ignoramous
Copy link
Collaborator

ignoramous commented Oct 8, 2023

In this case what is the point of this setting at all?

This setting is for the end user to ensure that no installed app can bypass the VPN tunnel even if the VPN tunnel implementation had provisions to let apps do so. For example, apps like Blokada, Intra (and perhaps NetGuard?) may let installed apps bypass their tunnels, by default. VPN Lockdown ensures that those apps can't despite that.

As far as Rethink is concerned, it doesn't let any apps bypass by default. Enable network visibility and Exclude are ways for users to explicitly instruct Rethink to let certain apps through. And both these settings won't be honoured by Rethink if VPN is put in Lockdown.

@RedSteel-1
Copy link
Author

RedSteel-1 commented Oct 8, 2023

Ok, thanks a lot for clarification :-)

@RedSteel-1
Copy link
Author

What are the use case differences for TCP Proxy and HTTP Proxy?
In the description, the difference is the "HTTP connect tunnel to Orbot" for HTTP proxy, while "only TCP connections of included apps" part applies to both

@ignoramous
Copy link
Collaborator

For the end user, HTTP Connect and TCP-only SOCKS5 tunnels into Orbot are one and the same. It is but an implementation detail. Since Rethink supports both, it exposes both.

@RedSteel-1
Copy link
Author

@ignoramous ,

I found an unfortunate difference between with and without VPN Lockdown.

When Rethink is not active, "not protected", everything on the phone has direct access to the internet when VPN is not in Lockdown mode.
But when it is in Lockdown and Rethink is not active, nothing can access internet.

This is compromises privacy/security when Rethink has to be temporarily disabled, or (most importantly) if Rethink fails to start with the OS (this happens sometimes).

In order to use Rethink without Lockdown mode and without compromising privacy/security, its startup with system must be bulletproof, and it must start up first, before any other programs (early start).

@ignoramous
Copy link
Collaborator

Always-on VPN is enough to start any VPN app on reboots. Rethink had a bug in the previous version where it wouldn't start despite being set to Always-on, but I think it's fixed in v055a.

But like you say, VPN Lockdown offers much better protection, for when the VPN app may crash or not start, installed apps won't be able to connect.

@RedSteel-1
Copy link
Author

RedSteel-1 commented Oct 10, 2023

I know one competitor-software, InviZible Pro, it has Tor and I2P modules built-in, and their settings (ports, entry/exit node country selection, etc) are available in InviZible's settings.
If Rethink had built-in Tor and its settings like InviZible, it would be possible to keep Rethink VPN in Lockdown while running the built-in Tor module and being able to route all or selected programs' traffic to it.
Thus there would be no need to compromise something and no choosing between Lockdown and the ability to route stuff to Tor.

Could Rethink get this?

@ignoramous
Copy link
Collaborator

ignoramous commented Oct 10, 2023

I know one competitor-software, InviZible Pro,

Don't consider it competition, tbh. Targets a very different usecase, though there's some overlap.

If Rethink had built-in Tor and its settings like InviZible,

We may never bundle Tor because we don't want that additional maintenance burden.

Thus there would be no need to compromise something and no choosing between Lockdown and the ability to route stuff to Tor.

We're experimenting with network namespaces #393, and if we can make it sing, then proxying to Tor via Orbot would work even if Rethink is VPN Lockdown.

Could Rethink get this?

It can get everything under the sun; the problem is, who's going to fund its development and maintenance? ;)

@RedSteel-1
Copy link
Author

It can get everything under the sun; the problem is, who's going to fund its development and maintenance? ;)

In our corrupted stupid world not many, sadly. Funding awesome and anti-mafia tools is the last priority on this planet :-/

We're experimenting with network namespaces #393
if we can make it sing, then proxying to Tor via Orbot would work even if Rethink is VPN Lockdown.

This sounds hyper-promising!

We may never bundle Tor because we don't want that additional maintenance burden.

Well, in the worst case if it ends up with nothing else working, maybe this could be considered?
Functioning traffic routing to Tor with no leakage brought by VPN Lockdown - isn't it worth it? :-)

@ignoramous
Copy link
Collaborator

Functioning traffic routing to Tor with no leakage brought by VPN Lockdown - isn't it worth it? :-)

Hopefully network namespaces work, and this isn't required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants