How can I setup IPtables so that only CloudFlare traffic will be allowed?

Server & Coding ForumCategory: QuestionsHow can I setup IPtables so that only CloudFlare traffic will be allowed?
ranandstimpy asked 5 months ago PPU : 5

I want to set up my firewall so that only traffic from CloudFlare is allowed. All other ports should be closed so that even in the case that some hacker reveal the origin IP of the servers they can not hack ports or do some other damage.

How can I set up IPtables torestrict all other traffic beside the CloudFlare traffic?