I dont use ufw, Im old and run raw iptables. But network perimeter here is the server perimeter, not the network (e.g. router). But I would apply the same logic to routers, only open ports you need
MaxAuthTries in the deb man page has this: Specifies the maximum number of authentication attempts permitted per connection. That could be both password and key
Just because you know how things work, doesnt mean everyone does. This is a good starting point for new homelabbers, as I see questions about security now and then