summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-02-13 10:16:06 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-02-13 10:16:06 +0000
commit9fa1c314f12520ec894a0ce586d06a2472198d8a (patch)
tree7b521e472416470a5ad11d880a271d3c196e9c9c
parentb2ad8fdc56cbca6d6764d0e8847a8977ef775d41 (diff)
fix some typos in the default configuration file.
discussed with reyk@
-rw-r--r--etc/hoststated.conf10
-rw-r--r--etc/relayd.conf10
2 files changed, 12 insertions, 8 deletions
diff --git a/etc/hoststated.conf b/etc/hoststated.conf
index 800ce69e4ea..42918fea6c6 100644
--- a/etc/hoststated.conf
+++ b/etc/hoststated.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: hoststated.conf,v 1.1 2007/01/31 08:32:16 pyr Exp $
+# $OpenBSD: hoststated.conf,v 1.2 2007/02/13 10:16:05 pyr Exp $
#
# Macros
#
@@ -15,12 +15,14 @@ webhost2="10.0.0.2"
# Each table will be mapped to a pf table.
#
table webhosts {
+ real port http
check http "/" code 200
- host webhost1
- host webhost2
+ host $webhost1
+ host $webhost2
}
table fallback {
+ real port http
check icmp
host 127.0.0.1
}
@@ -29,7 +31,7 @@ table fallback {
# Services will be mapped to a rdr rule.
#
service www {
- virtual ip www.example.com port http interface trunk0
+ virtual ip 192.168.1.1 port http interface trunk0
# tag every packet that goes thru the rdr rule with HOSTSTATED
tag HOSTSTATED
diff --git a/etc/relayd.conf b/etc/relayd.conf
index 99193237233..320603b6536 100644
--- a/etc/relayd.conf
+++ b/etc/relayd.conf
@@ -1,4 +1,4 @@
-# $OpenBSD: relayd.conf,v 1.1 2007/01/31 08:32:16 pyr Exp $
+# $OpenBSD: relayd.conf,v 1.2 2007/02/13 10:16:05 pyr Exp $
#
# Macros
#
@@ -15,12 +15,14 @@ webhost2="10.0.0.2"
# Each table will be mapped to a pf table.
#
table webhosts {
+ real port http
check http "/" code 200
- host webhost1
- host webhost2
+ host $webhost1
+ host $webhost2
}
table fallback {
+ real port http
check icmp
host 127.0.0.1
}
@@ -29,7 +31,7 @@ table fallback {
# Services will be mapped to a rdr rule.
#
service www {
- virtual ip www.example.com port http interface trunk0
+ virtual ip 192.168.1.1 port http interface trunk0
# tag every packet that goes thru the rdr rule with HOSTSTATED
tag HOSTSTATED