Skip to content

Conversation

@graysky2
Copy link

CAP_NET_RAW is only required when running AdGuard Home with DHCP server enabled. Split the setcap instructions to show:

  • DNS-only mode: requires only CAP_NET_BIND_SERVICE
  • DHCP+DNS mode: requires both CAP_NET_BIND_SERVICE and CAP_NET_RAW

Verified running as non-root with just CAP_NET_BIND_SERVICE and DNS-only works fine.

% lsof -i :53
COMMAND   PID        USER FD   TYPE  DEVICE SIZE/OFF NODE NAME
adguardho 183 adguardhome 12u  IPv6 1469109      0t0  UDP *:domain
adguardho 183 adguardhome 23u  IPv6 1469110      0t0  TCP *:domain (LISTEN)

Copy link
Contributor

@windsurf-bot windsurf-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 To request another review, post a new comment with "/windsurf-review".

CAP_NET_RAW is only required when running AdGuard Home with DHCP
server enabled. Split the setcap instructions to show:
- DNS-only mode: requires only CAP_NET_BIND_SERVICE
- DHCP+DNS mode: requires both CAP_NET_BIND_SERVICE and CAP_NET_RAW

Verified running as non-root with just CAP_NET_BIND_SERVICE and
DNS-only works fine.

% lsof -i :53
COMMAND   PID        USER FD   TYPE  DEVICE SIZE/OFF NODE NAME
adguardho 183 adguardhome 12u  IPv6 1469109      0t0  UDP *:domain
adguardho 183 adguardhome 23u  IPv6 1469110      0t0  TCP *:domain (LISTEN)

Signed-off-by: John Audia <therealgraysky@proton.me>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant