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

Snowflake tor bridges don't work on Linux #37896

Closed
fmarier opened this issue Apr 26, 2024 · 6 comments · Fixed by brave/brave-core#23316
Closed

Snowflake tor bridges don't work on Linux #37896

fmarier opened this issue Apr 26, 2024 · 6 comments · Fixed by brave/brave-core#23316
Assignees
Labels
Milestone

Comments

@fmarier
Copy link
Member

fmarier commented Apr 26, 2024

Both @linhkikuchi and I have found that enabling tor bridges with snowflake on Brave for Linux no longer works: https://bravesoftware.slack.com/archives/C85NV6NSG/p1713828994844299

I get this error:

Apr 26 14:15:51.000 [notice] Managed proxy "../../apfggiafobakjahnkchiecbomjgigkkn/1.0.3/tor-snowflake-brave": offer created
Apr 26 14:15:51.000 [notice] Managed proxy "../../apfggiafobakjahnkchiecbomjgigkkn/1.0.3/tor-snowflake-brave": broker failure Unexpected error, no answer.

Steps:

  1. Open brave://settings/privacy and scroll down to the Tor section
  2. Click Use Bridges
  3. Change from obfs4 to snowflake in Select a built-in bridge
  4. Click Apply changes
  5. Open a new private window with Tor
  6. Wait for the connection to be successful and then open https://brave.com.

If you can connect to brave.com, then it's working, otherwise it's not.

@fmarier fmarier added this to Untriaged in Tor and Private Windows via automation Apr 26, 2024
@fmarier
Copy link
Member Author

fmarier commented Apr 26, 2024

cc @boocmp

@rebron rebron added feature/tor priority/P2 A bad problem. We might uplift this to the next planned release. QA/Yes release-notes/include regression labels Apr 26, 2024
@MadhaviSeelam
Copy link

MadhaviSeelam commented Apr 26, 2024

@fmarier Could not reproduce the issue in Win 11 x64 with following build using above STR due to failing Tor connection issues. Initially it was slow, eventually failing the connection. Tried few times at various intervals but still seeing same connection issue. Seeing same issue in 1.66.x as well. However, If Use Bridges/ Snowflake disabled, Tor network is slow but connected successfully couple of minutes later.

Brave | 1.65.123 Chromium: 124.0.6367.91 (Official Build) (64-bit)
-- | --
Revision | dd88871b12997b018e3acb2f589713a3ea10338b
OS | Windows 11 Version 23H2 (Build 22631.3527)

[4716:3228:0426/161122.733:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[4716:13852:0426/161124.930:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[4716:13852:0426/161124.980:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[4716:13852:0426/161124.980:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[4716:13852:0426/161124.981:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[4716:13852:0426/161124.983:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[4716:13852:0426/161124.983:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
example example example
2024-04-26_16h29_12 2024-04-26_16h29_58 2024-04-26_16h30_33

@fmarier
Copy link
Member Author

fmarier commented Apr 27, 2024

Interesting. You get a different error message than me. In fact, I'm not sure what you're seeing is a snowflake error message. It sounds like it might be a more general tor failure. However you're seeing it's fine (but slow) without bridges so 🤷‍♂️

@boocmp
Copy link

boocmp commented Apr 27, 2024

Built-in configuration is outdated. I'll fix it.
Provide this manually
snowflake 192.0.2.4:80 8838024498816A039FCBBAB14E6F40A0843051FA fingerprint=8838024498816A039FCBBAB14E6F40A0843051FA url=https://snowflake-broker.torproject.net.global.prod.fastly.net/ fronts=cdn.yelp.com,www.shazam.com,www.cosmopolitan.com,www.esquire.com ice=stun:stun.l.google.com:19302,stun:stun.antisip.com:3478,stun:stun.bluesip.net:3478,stun:stun.dus.net:3478,stun:stun.epygi.com:3478,stun:stun.sonetel.net:3478,stun:stun.uls.co.za:3478,stun:stun.voipgate.com:3478,stun:stun.voys.nl:3478 utls-imitate=hellorandomizedalpn

@GeetaSarvadnya
Copy link

@fmarier: Verified the steps from the description #37896 (comment) on the following brave version. The issue is reproducible.

Brave | 1.65.124 Chromium: 124.0.6367.91 (Official Build) (64-bit)
-- | --
Revision | af639d0b172be01f63a6b8b0187ba24870fa04f7
OS | Windows 10 Version 22H2 (Build 19045.4291)

When Use Bridges default settings is changed from obfs4 to snowflake, Open a new tor windows says Still connecting... initially but eventually fails to connect tor network and says Tor connection Failed. I have closed Tor window and opened a new windows shows the same error.

Example Example Example
image image image

Console logs:

c:\Program Files\BraveSoftware\Brave-Browser\Application>brave.exe --enable-logging=stderr

c:\Program Files\BraveSoftware\Brave-Browser\Application>[15312:10208:0430/133219.231:ERROR:chrome_browser_cloud_management_controller.cc(161)] Cloud management controller initialization aborted as CBCM is not enabled. Please use the `--enable-chrome-browser-cloud-management` command line flag to enable it if you are not using the official Google Chrome build.
[15312:10208:0430/133219.306:WARNING:browser_management_service.cc(128)] EnterpriseLogoUrl fetch failed with error code -1 and MIME type
[15312:10208:0430/133219.307:WARNING:external_provider_impl.cc(514)] Malformed extension dictionary for extension: odbfpeeihdkbihmopkbjmoonfanlbfcl.  Key external_update_url has value "", which is not a valid URL.
[15312:10208:0430/133219.582:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:10208:0430/133227.817:INFO:CONSOLE(0)] "Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: chrome://resources/brave/fonts/third_party/poppins/Poppins_400_normal_latin_v20.woff2", source: chrome://settings/privacy (0)
[15312:10208:0430/133227.929:WARNING:CONSOLE(1)] "Could not find style data in module named null", source: chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js (1)
[15312:10208:0430/133227.966:WARNING:CONSOLE(1)] "Could not find style data in module named null", source: chrome://resources/polymer/v3_0/polymer/polymer_bundled.min.js (1)
[15312:10208:0430/133228.159:INFO:CONSOLE(0)] "Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: chrome://resources/brave/fonts/third_party/poppins/Poppins_300_normal_latin_v20.woff2", source: chrome://settings/privacy (0)
[15312:10208:0430/133228.187:INFO:CONSOLE(0)] "Slow network is detected. See https://www.chromestatus.com/feature/5636954674692096 for more details. Fallback font will be used while loading: chrome://resources/brave/fonts/third_party/poppins/Poppins_500_normal_latin_v20.woff2", source: chrome://settings/privacy (0)
[15312:10208:0430/133735.626:WARNING:browser_management_service.cc(128)] EnterpriseLogoUrl fetch failed with error code -1 and MIME type
[15312:10208:0430/133735.733:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:8876:0430/133740.596:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[15312:8876:0430/133740.660:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[15312:8876:0430/133740.662:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[15312:8876:0430/133740.665:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[15312:10208:0430/134034.173:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:10208:0430/134113.125:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:10208:0430/134116.125:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:10208:0430/134134.771:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:10208:0430/134141.537:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:10208:0430/134149.262:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:10208:0430/134151.960:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:10208:0430/134159.395:WARNING:browser_management_service.cc(128)] EnterpriseLogoUrl fetch failed with error code -1 and MIME type
[15312:10208:0430/134159.507:WARNING:CONSOLE(5)] "crbug/1173575, non-JS module files deprecated.", source: chrome://resources/js/load_time_data_deprecated.js (5)
[15312:8876:0430/134159.525:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[15312:8876:0430/134159.588:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[15312:8876:0430/134159.589:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie
[15312:8876:0430/134159.590:INFO:tor_file_watcher.cc(183)] tor: failed to open control auth cookie

Tor and Private Windows automation moved this from Untriaged to Completed May 3, 2024
@brave-builds brave-builds added this to the 1.67.x - Nightly milestone May 3, 2024
@stephendonner
Copy link

stephendonner commented May 8, 2024

Verified PASSED using

Brave	1.67.74 Chromium: 125.0.6422.26 (Official Build) nightly (64-bit) 
Revision	8abe16ff01716bd4851b1dcc432ec3c662d121c9
OS	Linux

Steps:

  1. installed 1.67.74
  2. launched Brave
  3. set Use bridges to Snowflake
  4. clicked Apply changes
  5. clicked on the "hamburger" menu
  6. chose "New Private window with Tor`
  7. typed brave.com and pressed Enter
  8. waited

Confirmed brave.com loaded over the Snowflake bridge type, as well as its .onion address

example example example example
Screen Shot 2024-05-07 at 6 18 14 PM Screen Shot 2024-05-07 at 6 17 17 PM Screen Shot 2024-05-07 at 6 17 39 PM Screen Shot 2024-05-07 at 6 19 31 PM

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

Successfully merging a pull request may close this issue.

7 participants