This is nearly the same thing vesta is doing, just a bit easier written. We are working on our docs together with the release of 1.2.0 and also will try to add such easy how toās.
Iāve installed in another server HestiaCP including Fail2Ban.
Then Iāve installed Fail2Ban in the first server and copied the file /etc/fail2ban/jail.local from the new server into the first one.
Trying to restart fail2ban, the following errors show up:
fail2ban-server[11515]: Unable to read action āhestiaā
Errors in jail āssh-iptablesā. Skippingā¦
Unable to read action āhestiaā
Errors in jail āexim-iptablesā. Skippingā¦
Unable to read action āhestiaā
Errors in jail ādovecot-iptablesā. Skippingā¦
Found no accessible config files for āfilter.d/hestiaā u
Unable to read the filter āhestiaā
Errors in jail āhestia-iptablesā. Skippingā¦
Infact you got the files already, did you also added āFIREWALL_EXTENSION=āfail2banāā in hestia.conf? Then trigger a v-update-firewall, restart fail2ban again and check if all is working properly.