AdguardTeam / AdguardTeam/AdGuardHome

Add CAP_NET_ADMIN to systemd unit

Open
#6,000 5 comments 0 reactions 0 assignees View on GitHub
feature request
Dominant language
TypeScript
Stars
36.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

### Prerequisites

- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions) and found no answer

- [X] I have searched other issues and found no duplicates

- [X] I want to request a feature or enhancement and not ask a question

### The problem

The user has to manually edit `/etc/sysctl.conf` values to get rid of the quic-go warning and benefit from improved QUIC performance.

### Proposed solution

quic-go v0.35.0+ uses `SO_RCVBUFFORCE` and `SO_SNDBUFFORCE` which doesn't require tinkering with sysctl limits. The only downside is that the process must be executed with the `CAP_NET_ADMIN` capability to do this.

Adding the following line to the systemd unit should fix this:

```
AmbientCapabilities=CAP_NET_ADMIN
```

### Alternatives considered and additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.