STREAM_TOSERVER,
ModbusProbingParser);
} else {
- /* if we have no config, we enable the default port 502 */
+ /* If there is no app-layer section for Modbus, silently
+ * leave it disabled. */
if (!AppLayerProtoDetectPPParseConfPorts("tcp", IPPROTO_TCP,
proto_name, ALPROTO_MODBUS,
0, sizeof(ModbusHeader),
ModbusProbingParser)) {
- SCLogWarning(SC_ERR_MODBUS_CONFIG, "no Modbus TCP config found, "
- "enabling Modbus detection on "
- "port 502.");
-
- AppLayerProtoDetectPPRegister(IPPROTO_TCP,
- "502",
- ALPROTO_MODBUS,
- 0, sizeof(ModbusHeader),
- STREAM_TOSERVER,
- ModbusProbingParser);
+ return;
}
}
- smtp-events.rules # available in suricata sources under rules dir
- dns-events.rules # available in suricata sources under rules dir
- tls-events.rules # available in suricata sources under rules dir
- - modbus-events.rules # available in suricata sources under rules dir
+# - modbus-events.rules # available in suricata sources under rules dir
- app-layer-events.rules # available in suricata sources under rules dir
classification-file: @e_sysconfdir@classification.config
# If the limit is reached, app-layer-event:modbus.flooded; will match.
#request-flood: 500
- enabled: yes
+ enabled: no
detection-ports:
dp: 502
# According to MODBUS Messaging on TCP/IP Implementation Guide V1.0b, it