How to Whitelist these 0-255 ip ranges in Firewall?


#1

I would like to whitelist these ip ranges in the cloudflare’s firewall:
FIXED THANKS

But when I try to add I get this error:

Country, IP address, or ASN not recognized

So how can I whitelist them? Please help me.


#2

Try 64.38.241.0/24

That’s how you specify the full range of your last digit.


#3

But does it cover .0 to .255 ?


#4

What I want to do is whitelisting these IP ranges via cloudflare:

FIXED THANKS

How can I do that?


#5

the /24 means you get 1-254. 0 doesn’t exist, and 255 is a broadcast address, so you don’t need those.

To get all four ranges, just create four /24 whitelist entries.


#6

So I have to put like this ?:

FIXED THANKS
right?


#7

That should do it. Post back if it’s not working.


#8

I think it doesn’t work.


#9

What type of message are you getting?

Also, check Cloudflare’s Firewall tab and scroll to the bottom to see the firewall log for your IP address(es) being blocked.


#10

The problem is payment gateway doesn’t sends data to my server when the Cloudflare activated.
Deactivating Cloudflare solves the problem but I do want to use cloudflare.
The firewall logs shows nothing about this error.


#11

Do you have access to the logs for your payment gateway? How is the gateway trying to connect to your host? A standard HTTP connection? A special port?

One possible solution is to have your payment gateway bypass Cloudflare. If your server supports an alias that points to the same site, you can add that to your DNS as a :grey: entry, then tell the payment gateway to use that subdomain.


#12

FIXED

One possible solution is to have your payment gateway bypass Cloudflare. If your server supports an alias that points to the same site, you can add that to your DNS as a :grey: entry, then tell the payment gateway to use that subdomain.

THANKS FIXED


#13

Hi, Would you please restate steps to whitelist payment gateways such as Square and Amazon Pay? I’m very new at this! Thanks.


#14

Add their IP addresses like this:


#15

One possible solution is to have your payment gateway bypass Cloudflare. If your server supports an alias that points to the same site, you can add that to your DNS as a :grey: entry, then tell the payment gateway to use that subdomain.

this solution was working before i upgrade my server to vps. Now not working, so what made on the server ? pls help