Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peers don't keep firewall ports open #1

Open
samvrlewis opened this issue Jul 14, 2021 · 0 comments
Open

Peers don't keep firewall ports open #1

samvrlewis opened this issue Jul 14, 2021 · 0 comments

Comments

@samvrlewis
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant