--- On Tue, 4/21/09, FRLinux <frli...@gmail.com> wrote:

> From: FRLinux <frli...@gmail.com>
> Subject: Re: OpenBSD relayd and public addresses
> To: "James Peltier" <james_a_pelt...@yahoo.ca>
> Cc: misc@openbsd.org
> Received: Tuesday, April 21, 2009, 6:20 PM
> On Tue, Apr 21, 2009 at 9:32 PM,
> James Peltier <james_a_pelt...@yahoo.ca>
> 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     james_a_pelt...@yahoo.ca

Reply via email to