Skip to content

test: add ftp too many tx comment test#3037

Closed
alinse-pltzr wants to merge 1 commit intoOISF:masterfrom
alinse-pltzr:ftp-max-tx-comment-and-rule
Closed

test: add ftp too many tx comment test#3037
alinse-pltzr wants to merge 1 commit intoOISF:masterfrom
alinse-pltzr:ftp-max-tx-comment-and-rule

Conversation

@alinse-pltzr
Copy link
Copy Markdown

@alinse-pltzr alinse-pltzr commented Apr 20, 2026

changes

test for: OISF/suricata#15213

test if suricata.yaml loads properly

Im not quite sure what to test exactly, since the addded rule uses an event, which doesn't exist yet (see: https://redmine.openinfosecfoundation.org/issues/8489)

@catenacyber
Copy link
Copy Markdown
Collaborator

I do not understand the purpose of this test

@catenacyber
Copy link
Copy Markdown
Collaborator

Im not quite sure what to test exactly, since the addded rule uses an event, which doesn't exist yet (see: https://redmine.openinfosecfoundation.org/issues/8470)

The test should contain a pcap that creates many txs (you can add a suricata.yaml to lower the max-tx limit) and the test should also use the rule put in the suricata PR to check that it triggers

Copy link
Copy Markdown
Collaborator

@catenacyber catenacyber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See above

@alinse-pltzr alinse-pltzr force-pushed the ftp-max-tx-comment-and-rule branch from 3d606d8 to 780a264 Compare April 22, 2026 18:28
@alinse-pltzr
Copy link
Copy Markdown
Author

Im not quite sure what to test exactly, since the addded rule uses an event, which doesn't exist yet (see: https://redmine.openinfosecfoundation.org/issues/8470)

The test should contain a pcap that creates many txs (you can add a suricata.yaml to lower the max-tx limit) and the test should also use the rule put in the suricata PR to check that it triggers

ok, thanks for the clarity :) I adjusted the test accordingly.

@alinse-pltzr alinse-pltzr force-pushed the ftp-max-tx-comment-and-rule branch from 780a264 to 24d9191 Compare April 22, 2026 18:45
@@ -0,0 +1,9 @@
args:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We must add a:

requires:
   min-version: 9

To ensure that the CI checks pass for versions less than 9, so we could have the test merged.

@alinse-pltzr alinse-pltzr force-pushed the ftp-max-tx-comment-and-rule branch from 24d9191 to 90d96bb Compare April 23, 2026 18:03

app-layer:
ftp:
max-tx: 2
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why should this pcap create more than 3 txs ?

Copy link
Copy Markdown
Author

@alinse-pltzr alinse-pltzr Apr 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ve been asuming that a pair of a request and a response are one transaction, because of this part of the documentation: https://docs.suricata.io/en/latest/devguide/extending/app-layer/transactions.html#general-concepts

counting the pairs of requests and responses in my pcap, there are more than 3 tx in my understanding.

what did I get wrong, and whats the correct defintion of a tx?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max-tx is about the maximum live transactions.

Once we see the response (and have run detection and logging on it), the transaction gets freed and does not longer count as a live translation

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok thanks, this makes sense, i ll generate a pcap with open live transactions

@catenacyber
Copy link
Copy Markdown
Collaborator

Is this PR superseded by #3041 ? cc @jlucovsky

@alinse-pltzr alinse-pltzr force-pushed the ftp-max-tx-comment-and-rule branch from 90d96bb to d2ccc02 Compare May 1, 2026 04:14
@jlucovsky
Copy link
Copy Markdown
Contributor

Is this PR superseded by #3041 ? cc @jlucovsky

Yes

@alinse-pltzr alinse-pltzr requested a review from catenacyber May 3, 2026 17:29
@catenacyber
Copy link
Copy Markdown
Collaborator

So closing in favor of #3041

@catenacyber catenacyber closed this May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants