[GH-ISSUE #3274] firejail netns netstat shows /tmp/.X11-unix/X0 #2055

Closed
opened 2026-05-05 08:43:34 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @alextrekov3307 on GitHub (Mar 11, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3274

firejail latest stable

firejail --net=none netstat -a | grep X11

Displays nothing.

firejail --netns=something netstat -a | grep X11

unix 3 [ ] STREAM CONNECTED 15800928 /tmp/.X11-unix/X0

The namespace contains lo and wg0.

Cannot use --net with --netns.

Is there a way to specify an interface within another network namespace to --net?

Originally created by @alextrekov3307 on GitHub (Mar 11, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3274 firejail latest stable `firejail --net=none netstat -a | grep X11` Displays nothing. `firejail --netns=something netstat -a | grep X11` `unix 3 [ ] STREAM CONNECTED 15800928 /tmp/.X11-unix/X0` The namespace contains lo and wg0. Cannot use --net with --netns. Is there a way to specify an interface within another network namespace to --net?
gitea-mirror 2026-05-05 08:43:34 -06:00
Author
Owner

@rusty-snake commented on GitHub (May 6, 2020):

Maybe you can use ip netns something exec firejail --net=....

<!-- gh-comment-id:624731733 --> @rusty-snake commented on GitHub (May 6, 2020): Maybe you can use `ip netns something exec firejail --net=...`.
Author
Owner

@rusty-snake commented on GitHub (Jun 4, 2020):

I'm closing here due to inactivity, please fell free to reopen if you have more questions.

<!-- gh-comment-id:638794427 --> @rusty-snake commented on GitHub (Jun 4, 2020): I'm closing here due to inactivity, please fell free to reopen if you have more questions.
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#2055
No description provided.