Block all traffic except white list

Am i correct that to block all except IPs in a white list, all we need is 1 rule:
not ip.src in $litespeed


Thank you for asking.

Yes, if you are using Firewall Rule. Hopefully you aren’t blocking Cloudflare itself? :thinking:

@fritex How could the source in the packet be Cloudflare itself !!!

what confused me is all these replies here:

all of them said, it is not possible. While to my understanding it is achievable with the rule i mentioned above

Pretty sure that @cs-cf guybsaidnotncoild be done. The thread though is 3+ years old and new features have been introduced since then. With lists and advanced firewall rules it can indeed be done the way you describe.