Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Removing Varnish Server, Routing Directly?

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 357 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JRA
      last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        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.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        J 1 Reply Last reply Reply Quote 1
        • J
          JRA @johnpoz
          last edited by JRA

          @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!

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by johnpoz

            There is a whole section of the forum related to using the proxy if you have questions
            https://forum.netgate.com/category/52/cache-proxy

            It 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

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.8, 24.11

            1 Reply Last reply Reply Quote 1
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.