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

    Load Balancing - Two Web Servers - relayd Error

    Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
    5 Posts 3 Posters 3.3k 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.
    • T
      TimmZahn
      last edited by

      Once again I bow down to the pfSense genius that haunts these forums -

      Here's the setup:
      One WAN into two identical web servers
      Both servers are on the same internal network - two different physical machines
      WAN rules wide open for testing purposes

      9 Virtual IPs & One-To-One NAT turned on for 8 of them
      The IP I am attempting to use for this pool is not in the NAT forwarding or One-To-One

      I can create the pool just fine, and I don't appear to be having any issues with the Virtual Servers either. Screenshots attached.

      The System Logs show the following error after hitting apply once the Virtual Servers have been created:
      php: /load_balancer_virtual_server.php: The command '/usr/local/sbin/relayd -f /var/etc/relayd.conf' returned exit code '1', the output was 'relayd: unknown user _relayd'

      And when you check on the status of the Load Balancer, it states "Unknown - relayd not running?" See screenshot.

      Here is the contents of relayd.conf:
      log updates
      table <memapweb_80>{ 10.0.XX.38, 10.0.XX.39 }
      table <memapweb_443>{ 10.0. XX.38, 10.0.XX.39 }
      redirect "MEMAPWEB_80" {
        listen on 97.65.XX.63 port 80
        forward to <memapweb_80>port 80 check icmp timeout 1000
      }
      redirect "MEMAPWEB_443" {
        listen on 97.65.XX.63 port 443
        forward to <memapweb_443>port 443 check icmp timeout 1000
      }

      How do I correct the error?

      Thanks,
      Timm
      screenie1a.png
      screenie1a.png_thumb
      screenie2a.png
      screenie2a.png_thumb</memapweb_443></memapweb_80></memapweb_443></memapweb_80>

      1 Reply Last reply Reply Quote 0
      • W
        wallabybob
        last edited by

        pfSense 2.0 BETA is still having a lot of changes. It would probably be helpful if you said what build you are using.

        1 Reply Last reply Reply Quote 0
        • T
          TimmZahn
          last edited by

          Excellent point.

          2.0 Beta 5
          12-28 Snapshot

          1 Reply Last reply Reply Quote 0
          • B
            bajt
            last edited by

            User _relayd is missing.
            Add user _relayd and restart relayd.

            1 Reply Last reply Reply Quote 0
            • T
              TimmZahn
              last edited by

              That worked. However, why wasn't that user created when the virtual server was established, if that user ID is required to make the pools work?

              Needing to create that user should be part of the documentation on building a load balancing pool, in the version 2.0 documentation, if that's not planned already.

              Not having ever created a load balance pool in version 1, was it necessary to create that user there too? I never read that in any of the how-to's.

              Thanks,
              Timm

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