mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 12:55:48 +03:00
[GH-ISSUE #58] Option to drop privileges after binding to port 53? #19
Labels
No labels
Documentation
Documentation
bug
enhancement
feature request
feature request
help wanted
pull-request
question
security
security
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/acme-dns#19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Daniel15 on GitHub (Mar 18, 2018).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/58
From the readme:
Is it possible to add a config option to drop privileges after starting the app? A daemon running as root scares me :)
@joohoi commented on GitHub (Mar 18, 2018):
Building this in acme-dns would make it very much tied to the underlying operating system.
Acme-dns however allows you to configure the port used for DNS, so you can bind it to an unprivileged port and use iptables rules to handle the portforwarding using the
PREROUTINGchain, for example:to forward public port 53 to unprivileged port 5353. Or do this directly from the edge firewall, depending of your infrastructure of course. This will allow you to run acme-dns as an unprivileged user.
@Daniel15 commented on GitHub (Mar 18, 2018):
Thanks. I ended up just granting the
CAP_NET_BIND_SERVICEcapability to the executable to allow it to bind to ports below 1024: