mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6430] Cannot use tap device with --net= #3271
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#3271
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 @ghost on GitHub (Aug 2, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6430
And the browser cannot use the proxy. But if I use:
And input the same proxy settings again, it can use the proxy. 192.168.5.1 is the address of ta0 tap device.
@rusty-snake commented on GitHub (Aug 2, 2024):
I do not get what you want. However it sounds XY to me. So can you rephrase it, start with the problem you want to solve and then your suggested fix.
@ghost commented on GitHub (Aug 2, 2024):
Firejail will not try to configure the interface inside the sandbox. Besides
--ip, you'll need to specify--netmaskand--defaultgw. Have you tried that yet?@ghost commented on GitHub (Aug 4, 2024):
I added a tap device using ip command
Ping says missing cap_net_raw+p capability or setuid. @glitsj16 @rusty-snake
@ghost commented on GitHub (Aug 4, 2024):
If your kernel allows
unprivileged userns clone:Otherwise, you can try:
HTH
@ghost commented on GitHub (Aug 20, 2024):
What's the solution for web browsers?
@ghost commented on GitHub (Aug 20, 2024):
If this needs the net_raw, setgid and setuid
capabilities, you can apply similar 'logic' as above cfr. ping. firefox-common.profile drops all caps viacaps.drop all, so an override would look like:@ghost commented on GitHub (Aug 24, 2024):
Will you let firejail automatically apply these settings for --net parameter?
@ghost commented on GitHub (Sep 26, 2024):
Doesn't work on
Parabola is based on ArchLinux, so it may not work on Arch too.