On Thu, Jun 08, 2017 at 10:56:33AM -0400, imacart...@moditcms.com wrote: > Fedora 25 > > > I have played with sysctl fs.file-max and ulimit -n to set a max 50000. > ulimit -Hn and ulimit -Sn both report 50000 but when I start fail2ban I > still get the "too many files open" errors.
ulimit -n will set the number of open files allowed for the shell in which you run the command. However, the limits for fail2ban will be set (for Fedora) in the systemd configuration or (in other distributions not using systemd to set limits) in /etc/security/limits.conf As a temp fix you will need to add LimitNOFILE=15000 (or whatever) in the [service] section of /usr/lib/systemd/system/fail2ban.service then run systemctl daemon-reload systemctl restart fail2ban For a longer term fix put an override file in /etc/systemd/system/fail2ban.service.d/ man systemd.exec for details on the way systemd handles limits -- David Nutter Tel: +44 (0)131 650 4888 BioSS, JCMB, Peter Guthrie Tait Road, Edinburgh, EH9 3FD. Scotland, UK Biomathematics and Statistics Scotland (BioSS) is formally part of The James Hutton Institute (JHI), a registered Scottish charity No. SC041796 and a company limited by guarantee No. SC374831 ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Fail2ban-users mailing list Fail2ban-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fail2ban-users