Skip to content
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

kea-dhcp6: RTNETLINK answers: Operation not permitted #24

Closed
vecinohk opened this issue Feb 27, 2021 · 2 comments
Closed

kea-dhcp6: RTNETLINK answers: Operation not permitted #24

vecinohk opened this issue Feb 27, 2021 · 2 comments

Comments

@vecinohk
Copy link

Please anyone have a tip on how I can solve this problem?

kea-dhcp6: RTNETLINK answers: Operation not permitted

I am using:
https://github.com/zorun/kea-hook-runscript/blob/master/examples/ipv6_prefix_delegation/ipv6-routes.sh
+
https://code.ffdn.org/zorun/kea-hook-runscript/-/jobs/243/artifacts/file/kea-hook-runscript-kea-1-8-debian-buster.so
+
isc-kea-dhcp6-server 1.8.2-isc0001520201206093433 amd64 ISC Kea IPv6 DHCP server

My setup: Debian 11 + kernel 5.10.0-3-amd64

many thanks

@zorun
Copy link
Owner

zorun commented Feb 27, 2021

Is it possible that Kea is not running as root in your setup? In that case, the script will also not run as root, and you won't be able to add/remove routes.

@vecinohk
Copy link
Author

Yep - you're right. Kea is running as "_kea".

Resolved: install sudo + _kea ALL=(ALL) NOPASSWD: /bin/ip -6 route *

All is working now - many thanks @zorun good job

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

No branches or pull requests

2 participants