mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1076] Cannot ping my machine when I use --ip option #735
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#735
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 @kadogo on GitHub (Jan 28, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1076
Hello everyone.
I need to test something from 2 differents IP on a virtualbox machine.
I want avoid running 2 VMs so I would use my computer and an instance with firejail.
My vbox interface is vboxnet0 (192.168.10.1).
I run the following command.
firejail --noprofile --net=vboxnet0 --ip=192.168.10.2 bashping 192.168.10.1When I do my ping it says my host is unreachable.
Maybe I missed something, so I come here to ask some help ^^
Thanks
@netblue30 commented on GitHub (Jan 29, 2017):
It is by design, from inside the sandbox you cannot reach the host. An exploit would be for a crook to take control of the sandbox and then starting a dictionary attack on the host ssh server.
This happens only if --net is an Ethernet interface, for bridge interfaces the host is still accessible on the IP address of the bridge interface.
@kadogo commented on GitHub (Jan 29, 2017):
Ok thanks for the information.
I will look how do it with a bridge interface then ^^
@netblue30 commented on GitHub (Jan 30, 2017):
The bridge is quite easy, take a look here: https://firejail.wordpress.com/documentation-2/basic-usage/#routed
You only enable ip forwarding and set netfilter if you need to forward traffic from your sandboxes out on the network.