Two firejail instances through two separate network interfaces - is it possible? #4144
-
I have two network interfaces on my host connected to two separate ISPs. The second one is a backup and normally not configured or used. Using firejail on the first interface, which is the default for the host, works perfectly as expected but I struggle to get a second firejail instance to run using the second interface. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can try the Using If you want IPv6 support in the sandbox, you'll need to use As for my setup, I run a DHCP server ( |
Beta Was this translation helpful? Give feedback.
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
requiresdhclient
(the ISC DHCP client) to be installed. Alternatively, you can use simply omit the '--ipargument …