From my observation over the last couple of years, Cloudflare intermittently has issues in Egypt requiring you to turn off the automatic IP assigned by and manually set Cloudflare IPs on your DNS with IPs that actually work.
Although above can let you fix the connection issues between your site users and Cloudflare, youre then going to have an issue with Cloudflare reverse proxying to your origin because the with manual entry of Cloudflare IPs. The solution to overcome that is to then creating another record in your DNS for the origin server IP and then use ResolveOverride to route the traffic in your domain to the IP of the origin server.
Ideally Cloudflare would have sufficient monitoring systems in place to detect such issues and automatically update the DNS of IPs.
you can manually change the IPs as Ive said in a few posts up.
Maybe people arent understanding my post so Ill explain now with an example to help you understand.
Step 1, find the Cloudflare IPs you want to use. Can do this by searching the DNS of another domain using Cloudflare. For this example Ill use 104.24.176.7 which is just one of the IPs from A cdnjs.com
Step 2, update your DNS in Cloudflare.
Add the IP(s) for your Cloudflare as unproxied. And create a new DNS entry for your origin server; make sure your origin DNS entry is proxied to avoid leaking your IP.
Step 3, create a Cloudflare Worker to tie together the traffic on Cloudflare IP to your Origin IP.
Step 4, add the Worker Routes.
Once steps 1-4 have been completed then you can test with different IPs to find better performance and optimise which Cloudflare POPs your users are connecting to on different ISPs.
This is also great for India and China for improving users performance connecting to Cloudflare.
For India sometimes the users ISP will send the traffic outside the country having slow speeds and high latency; changing the IPs they connect on can more often connect them to domestic datacenters.
For China this can also be helpful where 104.x IPs are sometimes blocked and requires changing in order for your customers in China to actually connect.
For Egypt this is useful as per the exact issue this thread is about.
https://community.cloudflare.com/t/i...egypt/420677/8