Hi All,
I'm trying to setup an OpenBSD HTTP load balancer and am failing miserably. I
think this is because I am trying to setup a load balancer that uses public IP
addresses for all the hosts including the load balancer which is not supported.
Is this true? Can I not use public IP addresses with OpenBSD relayd?
I've basically taken the supplied relayd.conf and modified it to use
ext_if="em0"
ext_addr="1.2.3.4"
webhost1="1.2.3.5"
webhost2=1.2.3.6"
table <webhosts> { $webhost1 $webhost2 }
and tried to configure a relay using modified the protocol and relay options
but it didn't work.
http protocol httpbalance {
header append "$REMOTE_ADDR" to "X-Forwarded-For"
header append "$SERVER_ADDR:$SERVER_PORT" to "X-Forwarded-By"
header change "Connection" to "close"
# Various TCP Performance Options
tcp { nodelay, sack, socket buffer 65536, backlog 128 }
}
relay wwwbalance {
listen on $ext_if port 80
protocol httpbalance
# forward to real host in <webhosts> table
forward to <webhosts> port http mode loadbalance check http "/" code 200
}
---
James A. Peltier [email protected]
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/