]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: add layer 4 links/cross reference to "block" keyword.
authorJarno Huuskonen <jarno.huuskonen@uef.fi>
Thu, 6 Apr 2017 10:59:14 +0000 (13:59 +0300)
committerWilly Tarreau <w@1wt.eu>
Sat, 22 Apr 2017 11:12:13 +0000 (13:12 +0200)
Idea from Aleksandar Lazic: add explanation/links about layer4
tcp-request connection or content reject to "block" keyword.

Add http-request cross ref. to "tcp-request content".

doc/configuration.txt

index d574cb677495194fba9f87c915808bb47789a4cb..86003f557216d3e016a4c455e0c7f37386b82751 100644 (file)
@@ -2509,7 +2509,9 @@ block { if | unless } <condition> (deprecated)
   is blocked. The condition has to reference ACLs (see section 7). This is
   typically used to deny access to certain sensitive resources if some
   conditions are met or not met. There is no fixed limit to the number of
-  "block" statements per instance.
+  "block" statements per instance. To block connections at layer 4 (without
+  sending a 403 error) see "tcp-request connection reject" and
+  "tcp-request content reject" rules.
 
   This form is deprecated, do not use it in any new configuration, use the new
   "http-request deny" instead.
@@ -2522,8 +2524,9 @@ block { if | unless } <condition> (deprecated)
         #block if invalid_src || local_dst
         http-request deny if invalid_src || local_dst
 
-  See section 7 about ACL usage.
-
+  See also : section 7 about ACL usage, "http-request deny",
+            "http-response deny", "tcp-request connection reject" and
+            "tcp-request content reject".
 
 capture cookie <name> len <length>
   Capture and log a cookie in the request and in the response.
@@ -9297,8 +9300,8 @@ tcp-request content <action> [{if | unless} <condition>]
 
   See section 7 about ACL usage.
 
-  See also : "tcp-request connection", "tcp-request session", and
-             "tcp-request inspect-delay"
+  See also : "tcp-request connection", "tcp-request session",
+             "tcp-request inspect-delay", and "http-request".
 
 
 tcp-request inspect-delay <timeout>