favonia / cloudflare-ddns

🌟 A small, feature-rich, and robust Cloudflare DDNS updater
Apache License 2.0
643 stars 24 forks source link

Feature Request: Add support for Cloudflare Access #684

Open Gamerou opened 4 months ago

Gamerou commented 4 months ago

I would love the option to whitelist my ip in a policy for an App in cloudflare Access. I have made a script to do that for me but it works not so well.

favonia commented 4 months ago

@Gamerou Thank you. I'm super ignorant about the API for Cloudflare Access (even though I'm using it...). Is it possible to create a policy based on a list? If so, I will feel very motivated to resolve #646 and this one by implementing the mechanism to maintain a Cloudflare list.

Gamerou commented 4 months ago

@Gamerou Thank you. I'm super ignorant about the API for Cloudflare Access (even though I'm using it...). Is it possible to create a policy based on a list? If so, I will feel very motivated to resolve #646 and this one by implementing the mechanism to maintain a Cloudflare list.

Yes, I think that should work. Have a look here: https://github.com/Gamerou/cloudflare_access_ip_whitelist/blob/main/cloudflare_access_ip_whitelist_normal.sh This is how I solved it, but of course it would be much nicer if it were integrated

favonia commented 6 days ago

Hi @Gamerou I'm working on Cloudflare lists (#646) and discovered that they only support IPv6 /64 ranges instead of individual IPv6 addresses. Would the limitation be an issue for you?

Gamerou commented 6 days ago

Hi @Gamerou I'm working on Cloudflare lists (#646) and discovered that they only support IPv6 /64 ranges instead of individual IPv6 addresses. Would the limitation be an issue for you?

No problem, and cool that you're working on it!