My scenario is this:
ifconfig sis0 10.0.0.1 netmask 255.255.255.0
ifconfig carp0 10.0.0.10 netmask 255.255.255.0 vhid 1
ifconfig carp1 10.0.0.20 netmask 255.255.255.0 vhid 2 (two carp
interfaces because I can't have carp with 2 or more IP addresses)
ifconfig sis1 172.16.0.1 netmask 255.255.255.0
hoststated.conf:
table webhosts {
real port http
check http "/" code 200
host 172.16.0.200
host 172.16.0.201
}
service www {
virtual host 10.0.0.10 port http interface carp0
virtual host 10.0.0.20 port http interface carp1
# tag every packet that goes thru the rdr rule with HOSTSTATED
tag HOSTSTATED
table webhosts
}
first question:
Why can't carp have multiple addresses?
second question:
Why hoststated can't support tables like in pf.conf?
third question:
Is there another way to do this with hoststated? (I wanted to have a
status check on the hosts)
Thanks in advance!
On 10/3/07, JosC) Costa <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is it possible to configure hoststated.conf with IPs in a <table> {
> ip1, ip2} and virtual host <table> ... ?