Skip to content

Comments

Dns over http2 5773 v17#11498

Closed
catenacyber wants to merge 9 commits intoOISF:masterfrom
catenacyber:dns-over-http2-5773-v17
Closed

Dns over http2 5773 v17#11498
catenacyber wants to merge 9 commits intoOISF:masterfrom
catenacyber:dns-over-http2-5773-v17

Conversation

@catenacyber
Copy link
Contributor

Link to redmine ticket:
https://redmine.openinfosecfoundation.org/issues/5773

Describe changes:

  • analyze DNS over HTTP2

SV_BRANCH=OISF/suricata-verify#1980

#11461 with DOH2 logging dns events

Should there be a squash up of commits ?

@jasonish still same question : here for a DOH2 tx, we log a bidirectional HTTP2 transaction, and then if any, a DNS transaction, preferring the answer... What do you think about it ? This allows to keep the same format as for regular dns.
Another option would be to log two doh2 events : one for the DNS request and one for the DNS answer, with HTTP2 getting logged twice... not sure how it would work out for alerts...

by making tx parsing and creation more easily available,
without needing a dns state.

Dns event NotResponse is now set on the right tx, and not the one
before.

Also debug log for Z-flag on request says "request" instead of
"response"

Also rustfmt dns.rs
Now a flow alproto can be changed by a call to AppLayerParserParse
when HTTP2 forces the flow to turn into DOH2.
Ticket: 5773

Handles both directions the same way for data if content type is
application/dns-message
So as to consume less memory for HTTP2Transaction
@suricata-qa
Copy link

WARNING:

field baseline test %
SURI_TLPR1_stats_chk
.uptime 642 666 103.74%

Pipeline 21560

@suricata-qa
Copy link

Information: QA ran without warnings.

Pipeline 21569

@catenacyber
Copy link
Contributor Author

Rebased in #11533

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.

3 participants