--- On Tue, 4/21/09, FRLinux <[email protected]> wrote:
> From: FRLinux <[email protected]>
> Subject: Re: OpenBSD relayd and public addresses
> To: "James Peltier" <[email protected]>
> Cc: [email protected]
> Received: Tuesday, April 21, 2009, 6:20 PM
> On Tue, Apr 21, 2009 at 9:32 PM,
> James Peltier <[email protected]>
> wrote:
>
> I hate to say this but correction to your syntax attached
> to your
> response would also be a nice addition to the list :)
>
> Steph
>
Here is the final working configuration
ext_addr="1.2.3.4"
#
# Global Options
#
interval 2
timeout 1000
prefork 5
table <rthosts> { 1.2.3.5 1.2.3.6 }
http protocol "http_rt" {
header append "$REMOTE_ADDR" to "X-Forwarded-For"
header append "$SERVER_ADDR:$SERVER_PORT" to "X-Forwarded-By"
# Performance related options
tcp { nodelay, sack, socket buffer 65536, backlog 128 }
}
relay "rt" {
listen on $ext_addr port 80
protocol "http_rt"
forward to <rthosts> port 80 mode loadbalance check http "/" code 200
}
---
James A. Peltier [email protected]