Skip to content

Two firejail instances through two separate network interfaces - is it possible? #4144

Answered by kris7t
transpetaflops asked this question in Q&A
Discussion options

You must be logged in to vote

You can try the --net option to specify the network interface in conjunction with the --ip dhcp and possibly --ip6 dhcp options to configure the network inside the firejail sandbox. However, if you do this directly, I think your network interface will be (termporarily) moved into the sandbox. So if you want to continue using the network interface (e.g., for other sandboxes or virtual machines) you should instead pass a bridge interface to --net (while keeping --ip dhcp and --ip6 dhcp), which will add a new interface to the bridge for the sandbox.

Using --ip dhcp or --ip6 dhcp requires dhclient (the ISC DHCP client) to be installed. Alternatively, you can use simply omit the '--ipargument …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rusty-snake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants