• tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    0
    ·
    6 months ago

    Each node sends its information, like its name, public keys, etc via IPv6 link local multicast packets. I’ll call these packets advertisements. I choose IPv6 link local because no manual IP address configuration is required. The kernel automatically assigns IPv6 link local addresses for each network interface.

    When another node (B) receives the multicast packets, it knows that it can receive packets from the former node (A), but what about the other way round? For that, node B then establishes a TCP connection to node A. If node B can connect to node A, we can conclude that a bidirectional communication is possible between node A and node B.

    Let’s say that you have 3 nodes, A, B, and C.

    What happens if Node C sends Node A an advertisement for Node B’s name with Node C’s public key?

    When A tries to talk to to B’s name, it connects to C using C’s key. C connects to B using B’s public key, proxying the connection, and performing a man in the middle attack.