# Chaining haproxy: tcp-request connect expect-proxy

**URL:** <https://discourse.haproxy.org/t/chaining-haproxy-tcp-request-connect-expect-proxy/4635>\
**Category:** Help!\
**Created:** [December 17, 2019, 5:10pm UTC](https://discourse.haproxy.org/t/chaining-haproxy-tcp-request-connect-expect-proxy/4635 "2019-12-17T17:10:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GerMalaz](https://avatars.discourse-cdn.com/v4/letter/g/65b543/32.png) [@GerMalaz](https://discourse.haproxy.org/u/GerMalaz)\
**Post date:** [December 17, 2019, 5:10pm UTC](https://discourse.haproxy.org/t/chaining-haproxy-tcp-request-connect-expect-proxy/4635/1 "2019-12-17T17:10:17Z")

</div>

Could not make expect-proxy here to work  
(instead of accept-proxy option and connection accept linehaproxy).  
haproxy-1.8 atm.

Thanks,  
Gerardo

```
frontend http-pp
        bind *:8080 accept-proxy
        maxconn 10000

        acl lb src xx.xx.xx.xx
        acl lb src xx.xx.xx.xx
        tcp-request connection accept if lb
# tcp-request connection expect-proxy layer4 if lb
        tcp-request connection reject
```
