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

    Load Balancing / Relayd can not get working …

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 3.1k 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.
    • B Offline
      BenKenobe
      last edited by

      using 2.0-RC3  (i386) built on Mon Sep 5 04:07:51 EDT 2011

      Symptom, trying to configure an internal web server changeover, adding monitor, servers and pool seem to work OK but configuration pages always have a 'blank' line at the top that can not be edited or removed.

      relayd.conf as created from GUI interface of pFSense below

      log updates
      timeout 1000
      table <webpool1>{ 10.100.1.12 retry 1 }
      table <webpool2>{ 10.100.1.252 retry 1 }
      protocol "" {
      }
      redirect "" {
       listen on  port
       forward to <> port  
      }
      redirect "WebSite" {
       listen on 217.155.90.86 port 80
       forward to <webpool1>port 80 check http '/'  code 200
       forward to <webpool2>port 80 check http '/'  code 200
      }

      doesn't look valid to me - protocol missing ??, blank redirect …

      the command /usr/local/sbin/relayd -f /var/etc/relayd.conf results in

      /var/etc/relayd.conf:6: syntax error
      /var/etc/relayd.conf:8: syntax error

      i am assuming that the blank entry is the line 8 error (because it disappears if I remove the blank entry but line 6 isn't ...

      WebPool1 is the primary server pool. WebPool2 is the fallback / failure pool.

      The virtual server status is 'unknown - relayd not running?' but relayd is running and has a detectable processID.

      The system status log entry is

      php: /load_balancer_pool.php: The command '/usr/local/sbin/relayd -f /var/etc/relayd.conf' returned exit code '1', the output was '/var/etc/relayd.conf:6: syntax error /var/etc/relayd.conf:8: syntax error'</webpool2></webpool1></webpool2></webpool1>

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