SaaShup/netbox-docker-plugin

Add `NET_RAW` to the Cap add capability list

Open

#234 opened on Apr 28, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Python (12 forks)auto 404
V4enhancementgood first issuehelp wanted

Repository metrics

Stars
 (78 stars)
PR merge metrics
 (PR metrics pending)

Description

When creating a new container via the plugin UI (/plugins/docker/containers/add/), the Cap add dropdown does not include NET_RAW. The list currently exposes capabilities such as NET_ADMIN, CHOWN, DAC_OVERRIDE, DAC_READ_SEARCH, FOWNER, FSETID, etc., but NET_RAW is absent.

CAP_NET_RAW controls the use of RAW and PACKET sockets and the ability to bind to any address for transparent proxying. It is required by tools such as ping, tcpdump, raw-socket-based health checks, and various network-diagnostic / VPN workloads.

While NET_RAW is part of Docker's default capability set, the standard hardening pattern is:

cap_drop:
  - ALL
cap_add:
  - NET_RAW

Without NET_RAW exposed in the Cap add picker, this pattern cannot be expressed through the NetBox UI or API

Steps to reproduce

  1. Navigate to Docker → Containers → + (Add a new container).
  2. Open the Cap add dropdown.
  3. Observe that NET_RAW is not present in the list.

Contributor guide