[GH-ISSUE #5000] Firejail not giving IP with --ip=dhcp #2850

Open
opened 2026-05-05 09:30:16 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @BlackRNG on GitHub (Mar 2, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5000

Description

The Dhcp client doesn't seems to work, like when using the --ip option, it probably only happens on wireless interfaces (I haven't tested it on wired connections).

Steps to reproduce

firejail --net=wlan0 --ip=dhcp

What happens?

The shell hangs for 2-3 minutes, it gives up and the resulting sandbox ends with no internet connection because of the lack of an IP

Expected behavior

To give the interface an IP using DHCP

Firejail version: firejail version 0.9.68

Compile time support
- always force nonewprivs support is disabled
- AppArmor support is enabled
- AppImage support is enabled
- chroot support is enabled
- D-BUS proxy support is enabled
- file transfer support is enabled
- firetunnel support is enabled
- networking support is enabled
- output logging is enabled
- overlayfs support is disabled
- private-home support is enabled
- private-cache and tmpfs as user enabled
- SELinux support is enabled
- user namespace support is enabled
- X11 sandboxing support is enabled

Linux distribution: Debian 11

Other

  • I have isc-dhcp-client installed with its default config
  • --noprofile doesn't make any difference

Is there something I missed?

Originally created by @BlackRNG on GitHub (Mar 2, 2022). Original GitHub issue: https://github.com/netblue30/firejail/issues/5000 ### Description The Dhcp client doesn't seems to work, like when using the --ip option, it probably only happens on wireless interfaces (I haven't tested it on wired connections). ### Steps to reproduce firejail --net=wlan0 --ip=dhcp ### What happens? The shell hangs for 2-3 minutes, it gives up and the resulting sandbox ends with no internet connection because of the lack of an IP ### Expected behavior To give the interface an IP using DHCP ### Firejail version: firejail version 0.9.68 Compile time support - always force nonewprivs support is disabled - AppArmor support is enabled - AppImage support is enabled - chroot support is enabled - D-BUS proxy support is enabled - file transfer support is enabled - firetunnel support is enabled - networking support is enabled - output logging is enabled - overlayfs support is disabled - private-home support is enabled - private-cache and tmpfs as user enabled - SELinux support is enabled - user namespace support is enabled - X11 sandboxing support is enabled ### Linux distribution: Debian 11 ### Other - I have isc-dhcp-client installed with its default config - --noprofile doesn't make any difference Is there something I missed?
gitea-mirror added the
networking
label 2026-05-05 09:30:16 -06:00
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#2850
No description provided.