I hate it when I have to reply to my own e-mail.  I was able to get it to work
and it was due to syntax.  I've now gotten it working and am very excited at
the possibilities. 


---
James A. Peltier     [email protected]


---
On Tue, 4/21/09, James Peltier <[email protected]> wrote:

> From:
James Peltier <[email protected]>
> Subject: OpenBSD relayd and public
addresses
> To: [email protected]
> Received: Tuesday, April 21, 2009, 2:12 PM
> 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/
> 
>
__________________________________________________________________
The new
Internet Explorer. 8 - Faster, safer, easier.  Optimized for Yahoo!  Get it
Now for Free! at http://downloads.yahoo.com/ca/internetexplorer/

Reply via email to