Removing Varnish Server, Routing Directly?
-
Hi all - apologies if this is a noob question, I am very definitely a noob to all this.
We have a Pfsense box, which directs all traffic wanting to hit one of our internally hosted sites to a Varnish server, which steers sites by url requested to one of our web servers.
We'd like to remove one of these servers from Varnish and just route directly to it, but leave the others (couple of those) to be steered by Varnish still.
Is this easy enough done? If so, could anyone walk me through the rule to make this happen?
Thanks so much, sorry if this is painful!
-
So you only have the 1 public IP, and all these sites area accessed via same standard port(s) 80/443 ?
You do understand pfsense has its own built in reverse proxy, that does caching as well haproxy.. Just a package you add - that would allow you to not even use varnish.
Just setup the reverse proxy on pfsense and send the domains to whatever behind pfsense, be the same IP or different IPs, etc.
-
@johnpoz Literally did not know that, my goodness, that'll solve a raft of problems in future!
Just to be cheeky, but you don't happen to have a link to and a noob guide for it do you?
My word, thanks!
-
There is a whole section of the forum related to using the proxy if you have questions
https://forum.netgate.com/category/52/cache-proxyIt includes squid proxy and such but any questions you have about haproxy would go there as well.
Here is some more info on the package
https://www.netgate.com/docs/pfsense/packages/haproxy-package.html