In your relayd.conf
web1="192.0.2.214" web2="192.0.2.215" web3="192.0.2.216" web4="192.0.2.217" webserver="192.0.2.227" sorry_server="192.0.2.200" interval 5 # check hosts every 5 seconds table <webpool> { $web1, $web2, $web3, $web4, } table <sorry> { $sorry_server } redirect "www" { listen on $webserver port http forward to <webpool> check http "/status.html" code 200 timeout 300 forward to <sorry> timeout 300 check icmp }
enable with rc.conf.local entry
relayd_flags="" # for normal use: ""#