Browse Source

fix some typos in the default configuration file.

discussed with reyk@
OPENBSD_4_1
pyr 18 years ago
parent
commit
7f85a072e2
2 changed files with 12 additions and 8 deletions
  1. +6
    -4
      src/etc/hoststated.conf
  2. +6
    -4
      src/etc/relayd.conf

+ 6
- 4
src/etc/hoststated.conf View File

@ -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 # Macros
# #
@ -15,12 +15,14 @@ webhost2="10.0.0.2"
# Each table will be mapped to a pf table. # Each table will be mapped to a pf table.
# #
table webhosts { table webhosts {
real port http
check http "/" code 200 check http "/" code 200
host webhost1
host webhost2
host $webhost1
host $webhost2
} }
table fallback { table fallback {
real port http
check icmp check icmp
host 127.0.0.1 host 127.0.0.1
} }
@ -29,7 +31,7 @@ table fallback {
# Services will be mapped to a rdr rule. # Services will be mapped to a rdr rule.
# #
service www { 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 every packet that goes thru the rdr rule with HOSTSTATED
tag HOSTSTATED tag HOSTSTATED


+ 6
- 4
src/etc/relayd.conf View File

@ -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 # Macros
# #
@ -15,12 +15,14 @@ webhost2="10.0.0.2"
# Each table will be mapped to a pf table. # Each table will be mapped to a pf table.
# #
table webhosts { table webhosts {
real port http
check http "/" code 200 check http "/" code 200
host webhost1
host webhost2
host $webhost1
host $webhost2
} }
table fallback { table fallback {
real port http
check icmp check icmp
host 127.0.0.1 host 127.0.0.1
} }
@ -29,7 +31,7 @@ table fallback {
# Services will be mapped to a rdr rule. # Services will be mapped to a rdr rule.
# #
service www { 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 every packet that goes thru the rdr rule with HOSTSTATED
tag HOSTSTATED tag HOSTSTATED


Loading…
Cancel
Save