Closed Bug 1974452 Opened 10 months ago Closed 4 months ago

Problem connecting to the TURN server behind a proxy

Categories

(Core :: WebRTC, defect)

Firefox 137
x86_64
Linux
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: sbelondr, Unassigned, NeedInfo)

References

Details

Attachments

(1 file)

Attached file log-firefox.html

Steps to reproduce:

On the host, I installed turnserver with the following configuration:

listening-port=3478
tls-listening-port=5349
listening-ip=0.0.0.0
relay-ip=0.0.0.0
realm=exemple.com
user=web:password
lt-cred-mech
fingerprint
#use-auth-secret
cert=/etc/ssl/turn/turn-cert.pem
pkey=/etc/ssl/turn/turn-key.pem
log-file=/var/log/turnserver.log
verbose
relay-threads=5
no-multicast-peers

sudo turnserver -c ./turnserver.conf -v -r exemple.com

In a VM, I installed mitmproxy and routed Firefox through this proxy.
I used this project to run the tests : https://github.com/webrtc/samples/tree/gh-pages/src/content/peerconnection/trickle-ice

TURN URI: turns:exemple.com:5349?transport=tcp
TURN username : web
TURN password : password

Actual results:

When I try to connect to a TURN server over TCP, behind a proxy, it doesn’t work.
With an older version of Firefox (115) or with the current version of Chromium, it works correctly.
Chromium or Firefox 115:
0.211 relay 3764658602 udp 192.168.1.51 63932 0 | 31 | 255 turns:exemple.com:5349?transport=tcp tls
0.214 relay 3764658602 udp 192.168.1.51 63833 0 | 31 | 255 turns:exemple.com:5349?transport=tcp tls
0.235 Done

In the Firefox 137:
12.864 Done

The Bugbug bot thinks this bug should belong to the 'Toolkit::Password Manager' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Password Manager
Product: Firefox → Toolkit
Component: Password Manager → WebRTC
OS: Unspecified → Linux
Product: Toolkit → Core
Hardware: Unspecified → x86_64

Hi sbelondr, thanks for filing a bug!

With an older version of Firefox (115) or with the current version of Chromium, it works correctly.

This is good news, as far as helping to track down the cause. Would you mind installing and running our https://mozilla.github.io/mozregression/install.html tool ? — This should help pinpoint the exact patch that caused the regression.

Flags: needinfo?(sbelondr)
See Also: → 1863984

Hi,

We apologize for the delay
Here is the result obtained with the tool

15:50.18 INFO: Narrowed nightly regression window from [2024-06-12, 2024-06-14] (2 days) to [2024-06-13, 2024-06-14] (1 days) (~0 steps left)
15:50.18 INFO: Got as far as we can go bisecting nightlies...
15:50.18 INFO: Last good revision: 3448fa7d36a96fffc3aab8d9faf3ac844c2671ee (2024-06-13)
15:50.18 INFO: First bad revision: 97bce31758a53936d3a729ae713d0aead3a53137 (2024-06-14)
15:50.18 INFO: Pushlog:
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=3448fa7d36a96fffc3aab8d9faf3ac844c2671ee&tochange=97bce31758a53936d3a729ae713d0aead3a53137

best regard

Flags: needinfo?(jib)

Which protocol are you configuring Firefox to use (TCP or TLS) with mitmproxy?

Hi

We use

TLS 1.2 en TCP

thanks

So, that bug fixed an issue where we were doing TCP to the TURNS server instead of TLS, when connecting through a proxy. So it would seem that using TCP works fine through a proxy for you, but TLS does not. Have you checked whether the TURNS server you're using works without a proxy?

hi
we'll do the test

Redirect a needinfo that is pending on an inactive user to the triage owner.
:mjf, since the bug has recent activity, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(sbelondr) → needinfo?(mfroman)
Flags: needinfo?(mfroman)

Hi hellosct1, were you able to test whether your TURNS server you're using works without a proxy per comment 7?

Flags: needinfo?(jib) → needinfo?(sbelondr)
Flags: needinfo?(hellosct1)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:mjf, since the bug doesn't have a severity set, could you please set the severity or close the bug?

For more information, please visit BugBot documentation.

Flags: needinfo?(sbelondr) → needinfo?(mfroman)
Status: UNCONFIRMED → RESOLVED
Closed: 4 months ago
Flags: needinfo?(mfroman)
Resolution: --- → INCOMPLETE

Feel free to reopen if/when the question from comment 6 is answered.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: