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

manual/running/hosting page causes confusion about ames ports #2204

Open
belisarius222 opened this issue Aug 15, 2023 · 0 comments
Open

manual/running/hosting page causes confusion about ames ports #2204

belisarius222 opened this issue Aug 15, 2023 · 0 comments
Labels

Comments

@belisarius222
Copy link
Contributor

In the setup script recommended for self-hosting, it sets up firewall rules that block all UDP ports except for one:

# setup firewall
ufw allow OpenSSH
ufw allow www
ufw allow https
ufw allow 34543/udp
ufw enable

The docs then instruct the user to start their urbit with -p 34543, which is the right port to listen on given the firewall setup, but it's easy for a user to forget that port whenever they run Urbit again. In that case, they end up with a connectivity issue where peers won't hear messages from the user until the other ship sends a message to the user first.

This issue shouldn't exist, but also if a ship is listening on a UDP port that isn't open in the firewall, then all incoming communication will have to be relayed through its sponsor, and that's a loss of both resiliency and sovereignty that should be avoidable by changing the instructions.

@drunkplato has reported that this is a frequent cause of support issues for Holium, specifically for self-hosted people.

I can think of a few things to address this. Not sure which is best:

  • don't tell people to block all the UDP ports
  • remind people to always use that -p argument each time they restart Vere
  • modify Vere to write the -p port into a file and read it on startup (unless overridden by another -p, or maybe with a new arg that clears the configuration) so the user doesn't have to remember. It's not clear this would be a good option, since it implies Vere would have multiple locations of persistent storage, not just inside Arvo. We might decide that's not that bad of a problem, though.
@belisarius222 belisarius222 changed the title manual/running/hosting causes confusion about ames ports manual/running/hosting page causes confusion about ames ports Aug 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant