Skip to content

Implement keep-alive mechanism in firezone-connection #3372

Closed
@thomaseizinger

Description

@thomaseizinger

We will need a keep-alive mechanism to keep NAT mappings open even if no data is being sent. Wireguard already has this functionality.

In addition, we can patch boringtun to expose a simple getter: time_since_last_packet, similar to https://docs.rs/boringtun/latest/boringtun/noise/struct.Tunn.html#method.time_since_last_handshake.

Depending on what we set the wireguard keepalive to, checking the newly introduced getter allows us to very quickly detect connectivity problems even before wireguard itself times out (which is after 5 failed keep alives I think).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions