How to Make ACL Fail with Close Connection
-
I am just beginning to experiment with HAProxy, and I would like to have a connection that fails the ACL just close (as quietly as possible) the TCP connection instead of returning 503 Service Unavailable.
(I plan on having several services behind HAProxy on my home internet connection for my private use, so there will eventually be a much more complex ACL list, so I want a solution for -- if all above fail, then close connection, to be as boring as possible to automated scanners.)
Here is what I have tried, but I get the following error messages:
Errors found while starting haproxy [ALERT] 172/154958 (13076) : parsing [/var/etc/haproxy_test/haproxy.cfg:24] : tcp-response content is only allowed in 'backend' sections [ALERT] 172/154958 (13076) : Error(s) found in configuration file : /var/etc/haproxy_test/haproxy.cfg [ALERT] 172/154958 (13076) : Fatal errors found in configuration.
Can someone suggest what I need to do.