-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DHCP Server do not works when running AdGuard with non-priviledged user #4760
Comments
Apologies for the delay. Can you configure AdGuard Home to collect logs by setting |
No problem!
Sure, will do this later.
I suppose no, because if it were firewall, blocking will occur with either user as AdGuard do not mess with firewall |
Might be related (whild guess): #4728 |
I am reinstalling my Proxmox server. At the moment DHCP server is running on my router but I will reinstall and activate DHCP on AdguardHome to try to get more info with the logs. Obviously I will disable DHCP on my router to conduct the tests. |
Just tried "Check for DHCP servers" and got "operation not permitted". Nothing on log file.
Using AdGuardHome v0.107.16. |
I'm not sure what could be the reason, sorry. It's most likely some setting in the system. I've added the |
Yes, I am curious about what can be the problem. I think that is not a firewall problem because only variable is the user (root / not root) and this do not change firewall rules. I suspect something about the I will also ask in Proxmox forum -> AdGuardHome running alongside Proxmox 7.2 |
You need But DHCP additionally requires a raw socket (I'm unsure whether this is always the case or just specific to AGH). These require But I want to add another thing: systemd allows setting capabilities within the AmbientCapabilities=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_RAW With these, I was able to resolve the problem. For me, the pointer was the MAC address in your screenshot, where you'd normally expect an IP address (due to it mentioning sockets). |
I found some tips to run AdGuard Home with non-priviledged user.
After install it with
curl -s -S -L https://raw.githubusercontent.com/AdguardTeam/AdGuardHome/master/scripts/install.sh | sudo sh -s -- -v
I accessed the web interface, made all configurations and then
sudo chown -R admin:admin /opt/AdGuardHome /var/log/AdGuardHome*
followed by changing
/etc/systemd/system/AdGuardHome.service
toRebooted and everything works fine except the DHCP server. None of my devices can get an IP address.
I reverted to the original
/etc/systemd/system/AdGuardHome.service
because I need the DHCP server working.Any ideas of what can be the problem?
The text was updated successfully, but these errors were encountered: