From owner-freebsd-ports@FreeBSD.ORG Sun Aug 8 21:46:21 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7FDF16A4CE; Sun, 8 Aug 2004 21:46:21 +0000 (GMT) Received: from mclaren.corenetwork.ca (h65-255-229-37.gtcust.grouptelecom.net [65.255.229.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 677B643D46; Sun, 8 Aug 2004 21:46:21 +0000 (GMT) (envelope-from rjohnson@corenetwork.ca) Received: from rjohnsonlt (h24-65-200-246.sbm.shawcable.net [24.65.200.246]) i78LlwV8019960; Sun, 8 Aug 2004 15:47:59 -0600 (MDT) (envelope-from rjohnson@corenetwork.ca) Message-Id: <200408082147.i78LlwV8019960@mclaren.corenetwork.ca> From: "Reid Johnson" To: Date: Sun, 8 Aug 2004 15:48:43 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcR9kU4P2EaTaGGETjKqwTANghjgkA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 cc: ports@FreeBSD.org Subject: Can you spare a monment to help me with haproxy? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Aug 2004 21:46:21 -0000 Hello, First of all I must say thank you in advance for any assistance you can provide, also I do understand if you are to busy to spare some time. Haproxy is a great tool and has been serving me well, but I would like to pass client IP's onto my web servers for logging. I thought I had my config correct but obviously not, after reading the docs it looked like the forwardfor option was the solution. My proxy still passes its own IP to the web servers. Any ideas? Thanks again Reid global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #log loghost local0 info maxconn 4096 chroot /tmp uid 11 gid 2 daemon # debug # quiet defaults log global mode http option httplog option dontlognull retries 3 redispatch maxconn 2000 contimeout 5000 clitimeout 50000 srvtimeout 50000 listen StrongHold bind 65.255.229.16:80 source 65.255.229.16 mode http option forwardfor balance roundrobin server stronghold-nas1 65.255.229.35:80 check inter 2000 rise 2 fall 5 # server stronghold-nas2 65.255.229.36:80 check inter 2000 rise 2 fall 5 listen webpool bind 65.255.229.18:80 source 65.255.229.18 mode http option forwardfor balance roundrobin server web1 65.255.229.37:80 check inter 2000 rise 2 fall 5 server web2 65.255.229.38:80 check inter 2000 rise 2 fall 5