mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #480] Moving veth in new network namespace and setting default gateway #340
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#340
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @irregulator on GitHub (Apr 24, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/480
Hello there,
I'm experimenting with firejail and veth interfaces. My goal is to create a veth interfaces pair, create a separate network namespace with firejail, move one veth in it and assign a default gateway to that namespace.
This is the script that I use to create a veth pair and assign IPs to them.
Running it results in:
I then run firejail like so:
The extra output is some dummy debug messages I've added,
07f2c74fe4The veth pair is successfully moved in the namespace but no default route is set:
But I'm actually able to manually set a default route from within the namespace:
Is the
--defaultgwparameter just not compatible with--interface?I've also discovered that I can normally create the network namespace:
Then use
--join-networkfrom the outside to inject the default route in the namespace:result:
Still, a sigle command, for example using
--defaultgwwhen creating the namespace, would be much more convenient.Thanks for developing firejail.
@netblue30 commented on GitHub (Apr 25, 2016):
Problem on my side. Somehow I was attempting to configure the default gateway before setting the ip address, so the kernel refused the gateway. I put a fix in the master branch, it should work now. Thanks for the bug.