Thanks Andrew.

Hi Moe,

Would that solution work for you?

-----Original Message-----
From: Andrew Hayworth [mailto:[email protected]]
Sent: Tuesday, October 27, 2015 12:11 PM
To: Javier Torres
Cc: Jeff Palmer; HAProxy; Amol Kedar
Subject: Re: HA Proxy - packet capture functionality

On Tue, Oct 27, 2015 at 10:51 AM, Javier Torres <[email protected]> wrote:
>
> Hi Jeff,
> Does that mean that HA proxy doesn't offer the capability to do this
> functionality at the load balancing level?

No - it doesn't. There's no inbuilt capability to capture packets via
HAProxy. But, assuming you're running on a linux, this shouldn't be too
difficult.

Assuming you're bound to eth0, you could do something like 'sudo
tcpdump -Uvw /tmp/capture.pcap -i eth0 host <client ip address>'
If you don't know the interface HAProxy listens on, try using something like
'sudo netstat -antp | grep LISTEN'

Hope that helps!
- Andrew

Reply via email to