Open a custom port on ufw on Ubuntu
To open port 2022 for example:
ufw allow 2022/tcp