# Capture tcp payload on HAProxy

**URL:** <https://discourse.haproxy.org/t/capture-tcp-payload-on-haproxy/5537>\
**Category:** Help!\
**Created:** [July 29, 2020, 1:14am UTC](https://discourse.haproxy.org/t/capture-tcp-payload-on-haproxy/5537 "2020-07-29T01:14:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![YBShin](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@YBShin](https://discourse.haproxy.org/u/YBShin)\
**Post date:** [July 29, 2020, 1:14am UTC](https://discourse.haproxy.org/t/capture-tcp-payload-on-haproxy/5537/1 "2020-07-29T01:14:19Z")

</div>

HAProxy version:2.2.1  
I wanna capture tcp packet and make acl by captured tcp packet but now I’m trying to capture payload it doesn’t work.  
My configuration

```auto
frontend hts_frontend
    bind *:8400
    mode tcp
    maxconn 3000
    option tcplog
    log global
    timeout client 1m
    tcp-request inspect-delay 1s
    tcp-request content capture payload(0,192) len 1

```

I want to capture the 118th character same as screenshot and make acl if the character is 1 going to A backend server other character is going to B backend server

![image](https://us1.discourse-cdn.com/flex016/uploads/haproxy/original/2X/4/4c9b66aea4982a2a449e515d5b75120a81ac9f7d.png)  
Please advice me how to do that…
