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

Cannot use Element X with an homeserver behind a VPN. #3558

Closed
Railroad6230 opened this issue Nov 26, 2024 · 2 comments
Closed

Cannot use Element X with an homeserver behind a VPN. #3558

Railroad6230 opened this issue Nov 26, 2024 · 2 comments
Labels

Comments

@Railroad6230
Copy link

Railroad6230 commented Nov 26, 2024

Steps to reproduce

  1. Enable my VPN tunnel (Wireguard) on iOS
  2. Starting in the "Select your server" view, after selecting "Change account provider"
  3. Setting "Homeserver URL" to the URL of my matrix server, only reachable from within my VPN (tried 'matrix.' and 'https://matrix.')

Outcome

What did you expect?

Element X is able to communicate with my homeserver.

What happened instead?

Element X is unable to communicate with my homeserver:

We couldn't reach this homeserver. Please check that you have entered the homeserver URL correctly. If the URL is correct, contact your homeserver administrator for further help.

I also don't see any logs on nginx (I'm using nginx as reverse proxy).

Note that Element (not the X) works perfectly fine.

Your phone model

iPhone 13 Mini

Operating system version

iOS 18.1.1 (not working either on iOS 17.X and 18.0)

Application version

Version: 1.9.6 (137) from TestFlight. Also tried with the one available on the App Store.

Homeserver

Synapse v1.120.0, MSC3861 is used.

Will you send logs?

Yes

Here are some logs. I've redacted our internal domain name.

console.2024-11-26-15.log

@pixlwave
Copy link
Member

pixlwave commented Nov 26, 2024

I've just tested this and I'm unable to reproduce it. My test went as follows:

  • Install Synapse onto a VM and create an account using register_new_matrix_user.
  • Add the VM to Tailscale (wireguard based).
  • Enable UFW on the VM and confirm that Synapse is only available within the VM and not from the host.
  • Add an iPhone to the same Tailscale.
  • Disable WiFi on the iPhone so it is definitely unable to reach the VM directly.
  • Open Element X and enter the server as http://vm.tailscale.address:8008 (I didn't configure a well-known, reverse proxy or any form of TLS).
  • Confirm I was able to sign in to the new account through the VPN.

This sounds like a VPN/server-side configuration issue as far as I can tell, so I'm going to close this issue. Feel free to reopen it if you believe this isn't the case and can provide more information to reproduce the problems you're seeing.

@pixlwave pixlwave closed this as not planned Won't fix, can't repro, duplicate, stale Nov 26, 2024
@Railroad6230
Copy link
Author

You were right. I debugged it using Wireshark, and Element X on iOS does not support TLS 1.3… I had to add TLS 1.2 to my nginx configuration to get it working.

cc #786

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

No branches or pull requests

2 participants