mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3605] DNS requests fail in jailed Firefox with IPv6 resolver #2261
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#2261
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @In-line on GitHub (Aug 28, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3605
When using system
/etc/resolv.confDNS requests fail in Firefox. Commenting
nameserver ::1solves issue.This doesn't happen in non-jailed firefox and using
digin Firefox joined (--join=) sandbox.IPv6 is disabled in Linux commandline
ipv6.disable=1, didn't test with enabled IPv6.Resolver in
127.0.0.1is dnscrypt-proxy.Firejail 0.9.62.4
Mozilla Firefox 79.0
DNSCrypt Proxy 2.0.44
Distribution: Arch Linux
@In-line commented on GitHub (Aug 28, 2020):
Seems to be the same issue https://www.reddit.com/r/archlinux/comments/5uh2y5/firejail_doesnt_use_archs_default_dns_server_need/
@bbhtt commented on GitHub (Aug 30, 2020):
This does not happen for me, I'm using nm-manager+systemd-resolved on Arch:
/etc/resolv.conf -> /run/systemd/resolve/resolv.conf@rusty-snake commented on GitHub (Oct 1, 2020):
Any progress here?
@sak96 commented on GitHub (Feb 7, 2022):
looks like something is wrong with dns via sytemd-resolved in firefox profile.
@sak96 commented on GitHub (Feb 7, 2022):
any know fixes @rusty-snake
@rusty-snake commented on GitHub (Feb 7, 2022):
Does
firejail --noprofile /usr/bin/firefoxfirejail --ignore=whitelist /usr/bin/firefoxfirejail --ignore=whitelist --ignore=blacklist /usr/bin/firefoxfirejail --ignore=dbus-user --ignore=dbus-system /usr/bin/firefoxwork?
@sak96 commented on GitHub (Feb 7, 2022):
dns works with all of them.
@rusty-snake commented on GitHub (Feb 7, 2022):
firejail --ignore=dbus-system /usr/bin/firefoxfirejail --ignore="dbus-system none" --dbus-system=filter --dbus-system.talk=org.freedesktop.resolve1 /usr/bin/firefoxfirejail --ignore="include whitelist-run-common.inc" /usr/bin/firefoxfirejail --whitelist=/run/systemd /usr/bin/firefoxfirejail --whitelist=/run/systemd/resolve /usr/bin/firefoxfirejail --whitelist=/run/systemd/resolve/io.systemd.Resolve /usr/bin/firefox@rusty-snake commented on GitHub (Feb 7, 2022):
ignore include …?whitelist /run/systemd/…work?@sak96 commented on GitHub (Feb 7, 2022):
interesting all of the above works settling to adding the following.
Thanks @rusty-snake
@rusty-snake commented on GitHub (Feb 7, 2022):
Just to confirm,
firejail --ignore="dbus-system none" --dbus-system=filter --dbus-system.talk=org.freedesktop.resolve1 --blacklist=/run/systemd/resolve/io.systemd.Resolve /usr/bin/firefox(i.e. D-Bus) works too.@rusty-snake commented on GitHub (Feb 7, 2022):
What does
grep "^hosts" /etc/nsswitch.confshow?@sak96 commented on GitHub (Feb 8, 2022):
firejail --ignore="dbus-system none" --dbus-system=filter --dbus-system.talk=org.freedesktop.resolve1 --blacklist=/run/systemd/resolve/io.systemd.Resolve /usr/bin/firefoxdoes not help.grep "^hosts" /etc/nsswitch.confshows the same result in both with fix (mentioned in last msg by me) and without@rusty-snake commented on GitHub (Feb 8, 2022):
But
firejail --ignore=dbus-system --ignore=dbus-user [--blacklist=/run/systemd/resolve/io.systemd.Resolve] /usr/bin/firefoxworks?Let me think
@sak96 commented on GitHub (Feb 8, 2022):
firejail --ignore=dbus-system --ignore=dbus-user [--blacklist=/run/systemd/resolve/io.systemd.Resolve] /usr/bin/firefoxdoes not work@rusty-snake commented on GitHub (Feb 8, 2022):
Related #3492
Maybe we should remove
resolve [!UNAVAIL=return]from nsswitch.conf inside the sandbox.