Add `NET_RAW` to the Cap add capability list
#234 opened on Apr 28, 2026
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
- Navigate to Docker → Containers → + (Add a new container).
- Open the Cap add dropdown.
- Observe that
NET_RAWis not present in the list.