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

Support for Socks/Http Proxy? #488

Open
GammaPi opened this issue Aug 14, 2019 · 10 comments
Open

Support for Socks/Http Proxy? #488

GammaPi opened this issue Aug 14, 2019 · 10 comments

Comments

@GammaPi
Copy link

GammaPi commented Aug 14, 2019

Since synapse is in it's early stage, a built-in proxy support (no matter it's socks or http) is necessary to keep the server safe from attackers.

#1234 related
element-hq/riot-android#1234

@GammaPi
Copy link
Author

GammaPi commented Aug 14, 2019

It seems that riot-android(the old app) use matrix-android-sdk to communicate with matrix server. And matrix-android-sdk uses okhttp3 to send http request. Am I correct on this?

https://github.com/matrix-org/matrix-android-sdk/search?q=import+okhttp3.OkHttpClient%3B&unscoped_q=import+okhttp3.OkHttpClient%3B

I'm wondering if I can configure proxy for okhttpclient in matrix-sdk/src/main/java/org/matrix/androidsdk/RestClient.java and then do some UI adjustments to solve this issue?

I'm looking for proxy support because it seems that Synapse (the only availabe option for Matrix home server) is still in its early stage and it may have some security vulnerbilities (Is my concern right?). Though restricting outer access to matrix home server may limit federation, this can be solved by using firewall whiltelist policy and only allow trusted federation server to access local server. Normal users have to access the server through proxy.

Since riot.im desktop apps use electronic. I can enable proxy simply by setting cmd arg "--proxy-server". For android apps, solutions like tun2socks or system-wide proxy do work, but users have to open proxy all the time which is not very decent. If riot android have a built-in proxy, then it would be a lot easier.

@dklimpel
Copy link

See also: matrix-org/matrix-android-sdk#519

@ghost
Copy link

ghost commented Feb 15, 2020

SOCKS support would pair well with Orbot. Orbot does support a VPN mode, but that's not a great solution for some configurations.

@GammaPi
Copy link
Author

GammaPi commented Feb 16, 2020

Looking forward to this

@JJohnGreenSr
Copy link

I feel the same, Gamma

@reg3xp
Copy link

reg3xp commented Feb 1, 2021

SOCKS5 would be great

@seth586
Copy link

seth586 commented Feb 15, 2021

yeah as an experiment I set up a onion_address:443 routed to my syanpse_server:8008, but the clients just dont seem to want to resolve onion addresses.

Adding a simple SOCKS5 proxy to pair with orbot would be a good first step in bringing anonymity to the matrix protocol!

@cm157
Copy link

cm157 commented Mar 12, 2021

Please add socks5 / Orbot support so can access synapse server running as hidden service

@CalunVier
Copy link

Although we have many alternatives, the built-in proxy function can make our access to martix more convenient. As we all know, not all parts of the world can easily connect with the outside world.

@RedSteel-1
Copy link

See this issue is quite old.
It is essential for pro-privacy/security messengers to have proxy setting, so that one can route the traffic to Tor/Orbot.

Dear devs, could you add this setting?

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

8 participants