[BACK]Return to relayd.conf CVS log [TXT][DIR] Up to [local] / src / etc

File: [local] / src / etc / Attic / relayd.conf (download)

Revision 1.2, Tue Feb 13 10:16:05 2007 UTC (17 years, 3 months ago) by pyr
Branch: MAIN
Changes since 1.1: +6 -4 lines

fix some typos in the default configuration file.
discussed with reyk@

# $OpenBSD: relayd.conf,v 1.2 2007/02/13 10:16:05 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 {
	real port http
	check http "/" code 200
	host $webhost1
	host $webhost2
}

table fallback {
	real port http
	check icmp
	host 127.0.0.1
}

#
# Services will be mapped to a rdr rule.
#
service www {
	virtual ip 192.168.1.1 port http interface trunk0

	# tag every packet that goes thru the rdr rule with HOSTSTATED
	tag HOSTSTATED

	table webhosts
	backup table fallback
}