Annotation of src/etc/hoststated.conf, Revision 1.1
1.1 ! pyr 1: # $OpenBSD$
! 2: #
! 3: # Macros
! 4: #
! 5: webhost1="10.0.0.1"
! 6: webhost2="10.0.0.2"
! 7:
! 8: #
! 9: # Global Options
! 10: #
! 11: # interval 10
! 12: # timeout 200
! 13:
! 14: #
! 15: # Each table will be mapped to a pf table.
! 16: #
! 17: table webhosts {
! 18: check http "/" code 200
! 19: host webhost1
! 20: host webhost2
! 21: }
! 22:
! 23: table fallback {
! 24: check icmp
! 25: host 127.0.0.1
! 26: }
! 27:
! 28: #
! 29: # Services will be mapped to a rdr rule.
! 30: #
! 31: service www {
! 32: virtual ip www.example.com port http interface trunk0
! 33:
! 34: # tag every packet that goes thru the rdr rule with HOSTSTATED
! 35: tag HOSTSTATED
! 36:
! 37: table webhosts
! 38: backup table fallback
! 39: }