Skip to content

DTLS Support #5359

Closed
Closed

Description

@MaxBosse

With the recent addition of UDP (for DNS) I was wondering if supporting DTLS is a possibility.

It is being used by many IoT devices and would help investigations in these areas.

Activity

  1. added
    kind/feature
    on May 20, 2022
  2. mhils commented on May 20, 2022

    @mhils
    Member

    Absolutely possible, there should not be any major blockers. We only need someone who wants to give the implementation a stab. :)

  3. kckeiks commented on May 20, 2022

    @kckeiks
    Contributor

    Hi, I'd like to start contributing to this project and take a crack at this. I've read your docs and have a high level understanding of the architecture but now I'm going to dive deep in the code ;). Would it be possible to get a high-level overview of what will need to be updated? Any guidance would be appreciated. Also, are draft/wip PRs ok to open? Thanks in advance.

  4. mhils commented on May 21, 2022

    @mhils
    Member

    HI @kckeiks! Sure thing:

    1. We first receive individual datagrams here and put them into the associated connection/session/flow/"DNS layer stack". You need to extend this to detect DTLS, then make up a matching connection id (the usual host/port 4-tuple should be good enough).
    2. After that, the main part is writing your own DTLS layer ("draw the rest of the fucking owl"). For a first proof-of-concept, I would recommend you just use the logging mechanism to print raw message contents and forward messages as-is. Three existing layers that would be worth looking at are:
    3. The most tricky part will probably be dealing with (py)OpenSSL to do DTLS. I'm not quite sure what the current state there is. DTLS support python-trio/trio#2010 has some pointers (we can ignore potential MTU and retransmit issues as the client should be doing that), other than that it's pretty much unchartered territory. 😃

    Draft PRs are of course more than welcome! 🍰

  5. kckeiks commented on May 27, 2022

    @kckeiks
    Contributor

    Looks like pyOpenSSL supports some DTLS features pyca/pyopenssl#1026. I started working on this and I will have bandwidth next week. I'm hoping to have a draft soon.

  6. kckeiks commented on Jul 29, 2022

    @kckeiks
    Contributor

    This is good to close now.

  7. mhils commented on Jul 29, 2022

    @mhils
    Member

    🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions