[GH-ISSUE #458] "--net=none" equivalent for profiles #327

Closed
opened 2026-05-05 05:36:18 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @Fred-Barclay on GitHub (Apr 19, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/458

When starting a program from the command line, we have the option to disallow all network access:
firejail --net=none some_programme
But what if we wanted to integrate this with the programme profile so that networking was automatically disabled? Is there a option for this?
So for example:
...
seccomp
caps.drop all
NO NETWORK
noroot
...

Is this possible?

Originally created by @Fred-Barclay on GitHub (Apr 19, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/458 When starting a program from the command line, we have the option to disallow all network access: `firejail --net=none some_programme` But what if we wanted to integrate this with the programme profile so that networking was automatically disabled? Is there a option for this? So for example: `...` `seccomp` `caps.drop all` `NO NETWORK` `noroot` `...` Is this possible?
Author
Owner

@nick75e commented on GitHub (Apr 19, 2016):

Hi!

Simply use net none.

EDIT:

net none
              Enable  a new, unconnected network namespace. The only interface
              available in the new namespace is a new loopback interface (lo).
              Use  this  option  to deny network access to programs that don't
              really need network access.
<!-- gh-comment-id:211973356 --> @nick75e commented on GitHub (Apr 19, 2016): Hi! Simply use `net none`. EDIT: ``` net none Enable a new, unconnected network namespace. The only interface available in the new namespace is a new loopback interface (lo). Use this option to deny network access to programs that don't really need network access. ```
Author
Owner

@Fred-Barclay commented on GitHub (Apr 19, 2016):

Thanks!
Where did you find that? I looked on the man page and poked around netblue's blog a little but couldn't find it.

<!-- gh-comment-id:211985448 --> @Fred-Barclay commented on GitHub (Apr 19, 2016): Thanks! Where did you find that? I looked on the man page and poked around netblue's blog a little but couldn't find it.
Author
Owner

@nick75e commented on GitHub (Apr 19, 2016):

here: https://firejail.wordpress.com/features-3/man-firejail-profile/
It's on his blog at the top, mouse over "FEATURES" then "MAN FIREJAIL-PROFILE".

<!-- gh-comment-id:211987771 --> @nick75e commented on GitHub (Apr 19, 2016): here: https://firejail.wordpress.com/features-3/man-firejail-profile/ It's on his blog at the top, mouse over "FEATURES" then "MAN FIREJAIL-PROFILE".
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#327
No description provided.