summaryrefslogtreecommitdiff
path: root/etc/hoststated.conf
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-01-31 08:32:17 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-01-31 08:32:17 +0000
commit15936e0f59bf8973e0519448b27fdb48905e1786 (patch)
tree2d2e0d13af08da610b40a935be91a6974c03ea41 /etc/hoststated.conf
parent7d0b5f192449e80a103f5e37564d71502405f911 (diff)
link hoststated to the builds.
ok miod@, henning@
Diffstat (limited to 'etc/hoststated.conf')
-rw-r--r--etc/hoststated.conf39
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
+}