mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-04 08:13:38 +00:00
- Using public DNS servers leads to user's domain queries being known to the servers, violating privacy. However, it is necessary to address many corner cases when DNS servers are not known to systemd-resolved but internet connectivity is working. Allow users to disable fallback DNS servers. Tests: - After upgrade to latest version of FreedomBox, the setting is on by default. - Disabling removes the /etc configuration file and resolvectl shows no fallback DNS entries. - Enabling add the /etc configuration file and resolvectl shows fallback entries. After removing existing DNS servers using resolvectl, one can still query using fallback servers. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
33 lines
1.4 KiB
Python
33 lines
1.4 KiB
Python
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
"""FreedomBox privacy app."""
|
|
|
|
from django import forms
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from plinth import cfg
|
|
from plinth.utils import format_lazy
|
|
|
|
|
|
class PrivacyForm(forms.Form):
|
|
"""Privacy configuration form."""
|
|
|
|
enable_popcon = forms.BooleanField(
|
|
label=_('Periodically submit a list of apps used (suggested)'),
|
|
required=False, help_text=format_lazy(
|
|
_('Help Debian/{box_name} developers by participating in the '
|
|
'Popularity Contest package survey program. When enabled, a '
|
|
'list of apps used on this system will be anonymously submitted '
|
|
'to Debian every week. Statistics for the data collected are '
|
|
'publicly available at <a href="https://popcon.debian.org/" '
|
|
'target="_blank">popcon.debian.org</a>. Submission happens over '
|
|
'the Tor network for additional anonymity if Tor app is enabled.'
|
|
), box_name=_(cfg.box_name)))
|
|
|
|
dns_fallback = forms.BooleanField(
|
|
label=_('Allow using fallback DNS servers'), required=False,
|
|
help_text=_(
|
|
'Use well-known public DNS servers to resolve domain names in '
|
|
'unusual circumstances where no DNS servers are known but '
|
|
'internet connectivity is available. Can be disabled in most '
|
|
'cases if network connectivity is stable and reliable.'))
|