]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
doc/userguide: document ftp max-line-length
authorJason Ish <jason.ish@oisf.net>
Thu, 7 Apr 2022 21:58:58 +0000 (15:58 -0600)
committerVictor Julien <vjulien@oisf.net>
Tue, 19 Apr 2022 21:56:01 +0000 (23:56 +0200)
doc/userguide/configuration/suricata-yaml.rst
doc/userguide/upgrade.rst

index 9938cb529828a70ac858284acf954cec447ec6f7..f4783199fa95aefb20be7d3acb683db528eb0df3 100644 (file)
@@ -1150,6 +1150,31 @@ Limit for the maximum number of asn1 frames to decode (default 256):
 
    asn1_max_frames: 256
 
+.. _suricata-yaml-configure-ftp:
+
+FTP
+~~~
+
+The FTP application layer parser is enabled by default and uses dynamic protocol
+detection.
+
+By default, FTP control channel commands and responses are limited to 4096
+bytes, but this value can be changed. When a command request or response exceeds
+the line length limit, the stored data will be truncated, however the parser
+will continue to watch for the end of line and acquire the next command.
+Commands that are truncated will be noted in the *eve* log file with the fields
+``command_truncated`` or ``reply_truncated``. Please note that this affects the
+control messages only, not FTP data (file transfers).
+
+  ::
+
+    ftp:
+      enabled: yes
+      #memcap: 64mb
+
+      # Maximum line length for control messages before they will be truncated.
+      #max-line-length: 4kb
+
 .. _suricata-yaml-configure-libhtp:
 
 Configure HTTP (libhtp)
index 10c9577ec2f15301cb5b18de12c12e5b5c02fb1e..cece4186f7837682047749f89ee22fcea5cbfc97 100644 (file)
@@ -52,6 +52,7 @@ Other changes
 ~~~~~~~~~~~~~
 - NSS is no longer required. File hashing and JA3 can now be used without the NSS compile time dependency.
 - If installing Suricata without the bundled Suricata-Update, the ``default-rule-path`` has been changed from ``/etc/suricata/rules`` to ``/var/lib/suricata/rules`` to be consistent with Suricata when installed with Suricata-Update.
+- FTP has been updated with a maximum command request and response line length of 4096 bytes. To change the default see :ref:`suricata-yaml-configure-ftp`.
 
 Logging changes
 ~~~~~~~~~~~~~~~