[Context]
So I’m building a learning platform where I create a subdomain for every student that gets logged. I’m using the rest api to enable the user and domain creation as well as ssl management. I have succesfully created a working script locally ( added my personal ip to the whitelist ) but my app is deployed on cloudflare pages.
The number of ips owner by cloudflare is in the millions so it can’t be written one by one. So my question is if there is a way to add ip ranges. or if it allows the use of domain names. Disabling it is also an option, it means I should be more carefull with the implementation but it’s worth it I think.
Yes I meant exporting all the 1,561,840 ips into a single txt file with a shell script. But No worries I will just bypass the ip restiction as scaning all those ips will probably slow the api’s response. Thank you for your time <3
You don’t want 15M records in hestia.conf… It will slow everything down by a ton to reading that from disk every time a hestia script is called.
The system was never designed you can whitelist the Cloudflare ips in Hestia firewall for port 2083 and block everything else but then the are forced to always access Hestia via Cloudflare…
I think there is a problem with the handling script so I will raise an issue on github and I will take a look and see if I can spot the error. ( don’t count on me tho I’m not a senior dev yet haha )
But thank you for your time and dedication, sir. I am not trying to disrespect you or something, you are clearly giving a lot of time and effort for this project and just making sure newcomers don’t go through this repetitive search to find the “allow-list” keyword. That’s what contributions are for after all.