Building the Network You Need with OpenBSD's PF: BSDCan, Ottawa May 6th, 2009
Prev |  | Next

# Basic hoststated config (cont)

In your `hoststated.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 {
          check http "/status.html" code 200
          timeout 300
          real port 80
          host $web1
          host $web2
          host $web3
          host $web4
    }