[GH-ISSUE #140] Can't set --defaultgw while using --interface option #96

Closed
opened 2026-05-05 05:01:37 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @xmikos on GitHub (Nov 16, 2015).
Original GitHub issue: https://github.com/netblue30/firejail/issues/140

I want to be able to pass my own veth device to firejail by using --interface=veth_b option, but I am unable to set default gateway in sandbox. When I use --defaultgw=some_address, firejail exits with this error:

Error: option --defaultgw requires at least one network to be configured
Originally created by @xmikos on GitHub (Nov 16, 2015). Original GitHub issue: https://github.com/netblue30/firejail/issues/140 I want to be able to pass my own _veth_ device to firejail by using `--interface=veth_b` option, but I am unable to set default gateway in sandbox. When I use `--defaultgw=some_address`, firejail exits with this error: ``` Error: option --defaultgw requires at least one network to be configured ```
gitea-mirror 2026-05-05 05:01:37 -06:00
Author
Owner

@xmikos commented on GitHub (Nov 16, 2015):

I suppose there will be similar problem with --ip option (but at least I can set ip on veth interface before adding it to sandbox, this is not possible with routes).

<!-- gh-comment-id:156986095 --> @xmikos commented on GitHub (Nov 16, 2015): I suppose there will be similar problem with `--ip` option (but at least I can set ip on _veth_ interface before adding it to sandbox, this is not possible with routes).
Author
Owner

@netblue30 commented on GitHub (Nov 23, 2015):

Fixed --defaultgw. I put --ip and a number of other options on my todo list to go into an future release. Thanks.

<!-- gh-comment-id:158954980 --> @netblue30 commented on GitHub (Nov 23, 2015): Fixed --defaultgw. I put --ip and a number of other options on my todo list to go into an future release. Thanks.
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#96
No description provided.