• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 361 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 Feb 5, 2019, 8:24 AM

    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
    • J
      johnpoz LAYER 8 Global Moderator
      last edited by Feb 5, 2019, 11:24 AM

      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 Feb 5, 2019, 11:28 AM Reply Quote 1
      • J
        JRA @johnpoz
        last edited by JRA Feb 5, 2019, 11:30 AM Feb 5, 2019, 11:28 AM

        @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
        • J
          johnpoz LAYER 8 Global Moderator
          last edited by johnpoz Feb 5, 2019, 11:37 AM Feb 5, 2019, 11:29 AM

          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
          1 out of 4
          • First post
            1/4
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received