I am trying to limit the access to a yunohost installation by ip. I first tried to install ufw and set up the commands that I know to restrict access to a few ips. But it did not have any effect. Then I found that there is a yunohost firewall command but there was not much documentation. Using --help did not give many options.
OK, I understand, thanks. Another workaround that seems to work fine, that I tried now, is using the /etc/hosts.allow (with sshd: 1.1.1.1 or other ips) and /etc/hosts.deny (with sshd: all)
To follow up: As workaround for us who use a VPS and need to protect our instance we might use (as alternative to iptables rules?)
1.yunohost firewall to open / close ports
2. hosts.allow and hosts.deny for blocking access to some parts of the system as ssh
3. use nginx’ ability to block access to applications