Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Peers don't keep firewall ports open #1

@samvrlewis

Description

@samvrlewis

meshboi currently has some logic to ensure that the peer's firewall is open for inbound connection from other meshboi peers:

_, err = conn.Write([]byte("hello"))

However, there currently is no mechanism to ensure that the firewall is kept open for the duration of the connection between the peers. This leads to firewall/s timing out the opened port and the connection between two peers dropping, if there is no traffic between the peers (for ufw this seems to happen after ~10mins or so).

Similar to the heartbeat that is sent to the rolodex, to ensure the NAT mapping stays open

_, err = c.conn.Write(b)
meshboi should also send a periodic heartbeat to all peers to ensure that its firewall ports remain open.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions