oznu / docker-cloudflare-ddns

A small amd64/ARM/ARM64 Docker image that allows you to use CloudFlare as a DDNS / DynDNS Provider.
https://hub.docker.com/r/oznu/cloudflare-ddns/
GNU General Public License v3.0
1.08k stars 219 forks source link

Add a firewall rule to whitelist the current public IP that is being used. #12

Closed onedr0p closed 4 years ago

onedr0p commented 6 years ago

Thanks for this image, it's very helpful...

It would be nice to have a firewall access rule update to whitelist current public IP.

Use case: I run a homelab and sometimes my rate limits get tripped and bans my home dynamic IP.

onedr0p commented 6 years ago

An example curl to whitelist would be:

curl -s -X GET -H "X-Auth-Email: <email>" -H "X-Auth-Key: <api_key>" -H "Content-Type: application/json" \
    "https://api.cloudflare.com/client/v4/user/firewall/access_rules/rules?page=1&per_page=5&mode=whitelist&configuration.target=ip&configuration.value=<ip>&notes=Whitelisted by ddns updater&match=all&order=configuration.value&direction=desc"
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

onedr0p commented 4 years ago

Bump

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

onedr0p commented 4 years ago

RIP