fenix icon indicating copy to clipboard operation
fenix copied to clipboard

DNS over HTTPS

Open jawadalkassim opened this issue 6 years ago • 28 comments

Why/User Benefit/User Problem

As a user i want to Protect myself while browsing the web From Man-in-the-middle attack and make sure Attackers cannot trick users into visiting a fake website by manipulating DNS responses for domains that are outside their control.

What/Requirements:

Secure DNS: To ensure your DNS queries remain private, you should use a resolver that supports secure DNS transport such as DNS over HTTPS (DoH) or DNS over TLS (DoT). DNSSEC: DNSSEC allows a user, application, or recursive resolver to trust that the answer to their DNS query is what the domain owner intends it to be. TLS 1.3 : is Supported In Firefox Fenix 👍 Encrypted SNI: Encrypted SNI keeps the hostname private when you are visiting an Encrypted SNI enabled site on Cloudflare by concealing your browser’s requested hostname from anyone listening on the Internet.

Acceptance Criteria (how do I know when I’m done?)

Dns-over-Https option in the settings or in about:config like Fennec browser. You can test your browser here: https://www.cloudflare.com/ssl/encrypted-sni/

┆Issue is synchronized with this Jira Task

jawadalkassim avatar Aug 07 '19 12:08 jawadalkassim

Why not use DoT instead? It is less complex and has less overhead.

genodeftest avatar Nov 08 '19 22:11 genodeftest

In Firefox Android, we do have support for DoH, but there is no UI to easily configure DoH settings like Firefox Quantum, we've to configure it from about:config settings which make things harder for novice FF users; although from Android 9 pie, we've support for DoT, but using DoH has its own pros like our DNS traffic is hidden inside HTTPS traffic.

@vesta0, Do we've plans for implementing an UI for DoH configuration?

etanot avatar Dec 20 '19 19:12 etanot

@finn0 yes this is something we will be looking into later this year!

vesta0 avatar Jan 06 '20 05:01 vesta0

ESNI works well in latest Firefox Beta 75.0.0-beta.6

ha-nso-li avatar May 05 '20 16:05 ha-nso-li

I would like the opposite (ability to turn off the DoT or DoH) as I pihole everything via VPN and my own VPS and I definitely do not trust cloudflare or whoever with my DNS data.

SergeiFranco avatar Jul 29 '20 22:07 SergeiFranco

As of 79.0.0 (Build #2015753875) even the ability to turn on this feature without GUI is no longer available since about:config is no longer accessible and essentially completely locked out of using this feature, which is very unfortunate :-(

hsaito avatar Jul 30 '20 09:07 hsaito

Launching on Chrome in 85 https://blog.chromium.org/2020/09/a-safer-and-more-private-browsing.html

yoasif avatar Sep 02 '20 21:09 yoasif

Hi all,

The settings are available in about:config, so is this just a UI thing or is there more to it? I have enabled it in about:config and according to about:networking#dns it's working.

Cheers 🙂

madb1lly avatar Sep 03 '20 13:09 madb1lly

hsaito is correct; this functionality is not available in v80 as about:config is no longer available.

madb1lly: As I understand it, this bug is abiut the UI. https://github.com/mozilla-mobile/fenix/issues/14261 is not a duplicate; it is a regression - please reopen it.

andrew-aitchison avatar Sep 06 '20 13:09 andrew-aitchison

I'm bit surprised why they've decided to disable about:config, it's a very powerful feature that makes Firefox very flexible. Some of the other tuning including enterprise trust, etc., are currently only accessible through about:config. If that's not feasible to bring back about:config for any reason., I would at least want to see prefs.js somewhere that users can edit.

hsaito avatar Sep 06 '20 23:09 hsaito

I'm bit surprised why they've decided to disable about:config, it's a very powerful feature that makes Firefox very flexible. Some of the other tuning including enterprise trust, etc., are currently only accessible through about:config. If that's not feasible to bring back about:config for any reason., I would at least want to see prefs.js somewhere that users can edit.

Yeah, I'm also couldn't understand why they dicide to disable about:config, what an awful decision!

0x391F avatar Sep 09 '20 15:09 0x391F

I'm bit surprised why they've decided to disable about:config, it's a very powerful feature that makes Firefox very flexible. Some of the other tuning including enterprise trust, etc., are currently only accessible through about:config. If that's not feasible to bring back about:config for any reason., I would at least want to see prefs.js somewhere that users can edit.

Yeah, I'm also couldn't understand why they dicide to disable about:config, what an awful decision!

You can still use about:config on the Nightly channel.

valenting avatar Sep 09 '20 15:09 valenting

You can still use about:config on the Nightly channel.

Or beta, if you prefer less possible breakage. :smile:

yoasif avatar Sep 09 '20 17:09 yoasif

You can still use about:config on the Nightly channel.

Or beta, if you prefer less possible breakage. 😄

Hmm... How about stable release? Will about:config still exist?

0x391F avatar Sep 10 '20 02:09 0x391F

see also https://bugzilla.mozilla.org/show_bug.cgi?id=1664878

cadeyrn avatar Sep 14 '20 18:09 cadeyrn

cool

ghost avatar Oct 18 '20 17:10 ghost

If you roll this out, please make it an optional Opt-In and not an Opt-Out feature! I'm more concerned about privacy with using DoH with Cloudflare or Google as with using my provider's regular DNS (Germany has more strict rules about privacy as Cloudflare or Google could offer)

lordgurke avatar Nov 09 '20 12:11 lordgurke

@lordgurke Mozilla made it opt-out for US and opt-in for everybody else. US ISPs are really bad with privacy. It's looking into adding more DoH providers. Currently nextdns is an option on desktop. https://wiki.mozilla.org/Security/DOH-resolver-policy

andreicristianpetcu avatar Nov 09 '20 19:11 andreicristianpetcu

There must be a UI option to configure secure dns or dns resolver like other chromium browser.. Esni feature is removed from about:config in latest nightly....not sure why😡😒

revolutionaryking7 avatar Dec 15 '20 04:12 revolutionaryking7

ESNI has been deprecated in favour of ECH: https://blog.cloudflare.com/encrypted-client-hello/

valenting avatar Dec 15 '20 08:12 valenting

ESNI has been deprecated in favour of ECH: https://blog.cloudflare.com/encrypted-client-hello/

Thanks for the info... As per article the feature is still in testing and not ready to be deployed.. It also says esni will be supported by cloudflare till ech is ready.. So can you please enable the feature again till ech is fully ready?

Screenshot_20201215-135831561~2

revolutionaryking7 avatar Dec 15 '20 08:12 revolutionaryking7

This issue is not the proper place for these discussions. https://bugzilla.mozilla.org/show_bug.cgi?id=1667743

valenting avatar Dec 15 '20 09:12 valenting

+1 need this

ghost avatar Jan 12 '21 05:01 ghost

    [ Quote etanot @ CE 2019-12-23 01:37:34 UTC: https://github.com/mozilla-mobile/fenix/issues/4584#issuecomment-568064713     ... have support for DoH, but there is no UI to easily configure DoH settings ... ] <.>    [ Quote cadeyrn @ CE 2020-09-09 10:52:39 UTC: https://github.com/mozilla-mobile/fenix/issues/4584#ref-issue-696705690     Add UI to turn on DNS over HTTPS support (TRR) ] <^>    A somewhat clumsy but working workaround:     .     Adding below to Bookmarks: [     |*| Name: \..     |*| URL: about:config?filter=^(?:d(?:evice%5C.sensors|om%5C.(?:event%5C.c(?:lipboardevents|ontextmenu)|select_events))%5C.enabled|font%5C.size%5C.systemFontScale|general%5C.useragent%5C.override|intl%5C.accept_languages|javascript%5C.enabled|network%5C.(?:http%5C.referer%5C.spoofSource|cookie%5C.cookieBehavior|trr%5C.(?:mode|uri))|security%5C.(?:ssl%5C.disable_session_identifiers|tls%5C.version%5C.enable-deprecated)|webgl%5C.disabled)%24 ]

    Related:     |*| https://github.com/mozilla-mobile/fenix/issues/16287     |*| https://regex101.com/?regex=^(?:d(?:evice%5C.sensors|om%5C.(?:event%5C.c(?:lipboardevents|ontextmenu)|select_events))%5C.enabled|font%5C.size%5C.systemFontScale|general%5C.useragent%5C.override|intl%5C.accept_languages|javascript%5C.enabled|network%5C.(?:http%5C.referer%5C.spoofSource|cookie%5C.cookieBehavior|trr%5C.(?:mode|uri))|security%5C.(?:ssl%5C.disable_session_identifiers|tls%5C.version%5C.enable-deprecated)|webgl%5C.disabled)%24&flags=i

MasterInQuestion avatar Jul 16 '22 00:07 MasterInQuestion

This is there in all chromium browsers (Vivaldi, brave, kiwi etc) should be added in firefox!

revolutionaryking7 avatar Jul 16 '22 02:07 revolutionaryking7

    A few notes on the subject:     .     At the moment:     [ https://www.cloudflare.com/ssl/encrypted-sni/ ] seems to only support ESNI but not ECH.     [ https://crypto.cloudflare.com/cdn-cgi/trace ] seems to be one of the very few (if not the only) sites that support ECH.

    Additional info: [     |*| ECH / ESNI related (Firefox inclined) (in French)     |*| https://lafibre.info/cryptographie/encrypted-sni/24     |*| Google Translate: https://translate.google.com/translate?hl=en&sl=fr&tl=en&u=https://lafibre.info/cryptographie/encrypted-sni/24 ]     , [     |*| [Question] Is such DoH (DNS over HTTPS) implementation a brilliant folly?     |*| https://github.com/curl/curl/issues/9160 <.>    |*| Note: Similar behavior also in Chrome, Firefox, etc. . ]

MasterInQuestion avatar Jul 16 '22 05:07 MasterInQuestion

It seems the DoH and DoT are getting more important since some "countries" are now tampering the DNS results deliberatly. This is in addition to the privacy concerns already mentioned in this issue.

Using DoH with firefox desktop is straightforward but for android this option is not available. The about:config page is blocked and there's no way to enable DoH for android below 9 system-wide.

Chrome already has DoH option accessible. But I want to stick to firefox for nostalgic reasons.

Also enabling DoH system-wide has it's own disadvantages.

I agree with the people that say this is not a feature request any more. It's getting more like a reggresion.

Just like the HTTPs-everywhere was implemented and is important, DoH and DoT should be considered the same in matters of security and privacy

danyhm avatar Aug 11 '22 06:08 danyhm

    I suppose Firefox without Nightly is unusable.

    And I'd suggest doing more research before making rash conclusions.

MasterInQuestion avatar Aug 11 '22 07:08 MasterInQuestion

The about:config page is blocked

you could switch to fennec from f-droid: it's compiled from firefox stable release, and enables about:config. it also enables custom extension collections (so you can install any extension you want) and disables some mozilla telemetry.

https://f-droid.org/en/packages/org.mozilla.fennec_fdroid/

lazymonkey2 avatar Aug 12 '22 07:08 lazymonkey2

This bug is tracked in Bugzilla here: https://bugzilla.mozilla.org/show_bug.cgi?id=1664878

DoH is not enabled by default in Firefox on Android yet due to performance issues.

cpeterso avatar Dec 24 '22 08:12 cpeterso