]> 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)
committerShivani Bhardwaj <shivanib134@gmail.com>
Thu, 21 Apr 2022 07:31:56 +0000 (13:01 +0530)
(cherry picked from commit 7d6bc60abb6eefce3f0d20222b2a843de9ea5a6e)

doc/userguide/configuration/suricata-yaml.rst
doc/userguide/upgrade.rst

index d0bef4773f38bbfecfc4d2bff0cdee68bce09b79..1b97295122bde1b7f92c93210cee35d004162c2b 100644 (file)
@@ -1185,6 +1185,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 e4eedb051d6bc920d20ec3f0554ef67320d194e6..bde23a853b93d5838c42529c1a7d094fedab8431 100644 (file)
@@ -30,6 +30,10 @@ by the ones Suricata supplies.
 Major updates include new features, new default settings and often also
 remove features.
 
+Upgrading from 6.0.4 to 6.0.5
+-----------------------------
+- 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`.
+
 Upgrading 5.0 to 6.0
 --------------------
 - SIP now enabled by default