diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-01-31 08:32:17 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-01-31 08:32:17 +0000 |
commit | 15936e0f59bf8973e0519448b27fdb48905e1786 (patch) | |
tree | 2d2e0d13af08da610b40a935be91a6974c03ea41 /etc/hoststated.conf | |
parent | 7d0b5f192449e80a103f5e37564d71502405f911 (diff) |
link hoststated to the builds.
ok miod@, henning@
Diffstat (limited to 'etc/hoststated.conf')
-rw-r--r-- | etc/hoststated.conf | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/etc/hoststated.conf b/etc/hoststated.conf new file mode 100644 index 00000000000..800ce69e4ea --- /dev/null +++ b/etc/hoststated.conf @@ -0,0 +1,39 @@ +# $OpenBSD: hoststated.conf,v 1.1 2007/01/31 08:32:16 pyr Exp $ +# +# Macros +# +webhost1="10.0.0.1" +webhost2="10.0.0.2" + +# +# Global Options +# +# interval 10 +# timeout 200 + +# +# Each table will be mapped to a pf table. +# +table webhosts { + check http "/" code 200 + host webhost1 + host webhost2 +} + +table fallback { + check icmp + host 127.0.0.1 +} + +# +# Services will be mapped to a rdr rule. +# +service www { + virtual ip www.example.com port http interface trunk0 + + # tag every packet that goes thru the rdr rule with HOSTSTATED + tag HOSTSTATED + + table webhosts + backup table fallback +} |