Is the UNIXy Varnish Plugin compatible with Cloudflare?

Yes it compatible. You need to add the Cloudflare IPs to the file /etc/varnish/rpaf.extra.list. All IPs or IP blocks (CIDR) should go on ONE line inside the file. Then run this command as root: sh /scripts/installmodrpaf

Here's one command that will pull and put CF's IPs into /etc/varnish/rpaf.extra.list. Run it as root as one command you copy/paste into the shell then re-run "sh /scripts/installmodrpaf"

curl https://www.cloudflare.com/ips-v4|while read ip; do echo -ne "${ip} "; done > /etc/varnish/rpaf.extra.list

Question: Is Varnish redundant when running behind Cloudflare?

Answer: No, Varnish speeds up page loading even when running behind Cloudflare. This is because Varnish does intelligent "page caching" and "file caching" and works closely with your scripts and Web server.

  • 16 Users Found This Useful
Was this answer helpful?

Related Articles

How do I uninstall the cPanel Varnish Plugin?

Here are the steps to remove the cPanel Varnish Plugin from your server. It's recommended that...

I've installed the cPanel Varnish Plugin, now what?

No action is required from your end. The installation script takes care of installing and...

Where can I download the installer?

The installer is in the Client Area location. Simply login to your account at...