mirror of
https://github.com/acme-dns/acme-dns.git
synced 2026-04-27 04:45:48 +03:00
[GH-ISSUE #45] Registration with allowfrom set does not work? #15
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#15
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 @MrBMT on GitHub (Mar 1, 2018).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/45
Unless I'm doing something really stupid here, I don't seem to be able to be able to update domains when allowfrom has been set during registration.
I use
ip addrto retrieve all the CIDR ranges assigned to my server, then register as follows:Note: IP addresses have been partially replaced with XXX/XXXX, the real values however are used for the commands.
I then attempt to update that sub-domain:
However the update fails. acme-dns displays the following:
If I register without seting allowfrom, everything works fine:
Am I missing something here, or is it broken?
@joohoi commented on GitHub (Mar 1, 2018):
All I can think of is using reverse proxy in front of acme-dns and / or corresponding configuration values of:
For debugging reasons I think adding the IP address that we're matching against would be beneficial to have in the error message.
@MrBMT commented on GitHub (Mar 1, 2018):
Thanks for the quick reply!
Is how my configuration is currently set, I also tried switching
use_headerto true, but then quickly realised you could do something like this to bypass it, which completely defeats the point of enabling it in the first place:As you mentioned, putting a reverse proxy in front of it then setting the config that way is a potential workaround however.
I agree, having the IP address you're matching against in the debug message would definitely be very beneficial here.
Thanks for the work you've put in to this project by the way!
@joohoi commented on GitHub (Mar 1, 2018):
I just added logging for the IP address being matched in #46 . It's now available in
masterbranch. This should help us to debug your issue.@MrBMT commented on GitHub (Mar 1, 2018):
Awesome, thank you!
I just tried running the same request again, both on the server locally and from an external permitted location, and it seems the IP isn't being retrieved:
I'd assumed that when
use_headerwas set tofalseit would use the IP address that the POST request was sent from, but is this perhaps not the case?Cheers
@joohoi commented on GitHub (Mar 1, 2018):
This seems to be a bug indeed. acme-dns is supposed to use the request.RemoteAddr if
use_header = false. I'll fix it in the coming days.