Hello

I need to set an ACL when the request comes in at a particular port. I have the 
following configuration:

frontend generic-http
  bind 127.0.0.1:80
  bind 127.0.0.1:8080 accept-proxy
  bind 127.0.0.2:8080 accept-proxy

  acl test fc_dst_port 8080

  http-request set-var(txn.acl_trigger) str("yes") if test
  log-format "%[dst] %[dst_port] %[bc_dst] %[bc_dst_port] %[fc_dst] 
%[fc_dst_port] Test:%{+E}[var(txn.acl_trigger)]"

During my tests I can see in the logs that fc_dst_port is 8080. However, the 
ACL isn't set to true. If I try the same with "acl test fc_dst 127.0.0.2" it 
works as expected. However, this is not what I need. I also tried different 
matchers like "acl test fc_dst_port -m int 8080", "acl test fc_dst_port -m str 
8080", "acl test fc_dst_port eq 8080" but nothing works. What am I doing wrong? 
Or is it a bug? haproxy version is 2.6.7-c55bfdb. Thank you for any help.

Corin

Reply via email to