You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d58e78b
Browse filesBrowse the repository at this point in the historyBrowse files
Ban repeat failed logins on the FTP box with fail2ban
The FTP and SFTP ports are open to the internet with no firewall and
are scanned constantly: ~1,450 refused logins in the first day, 88% from
one address, as root/admin/ubuntu/postgres and so on. Nothing got in
(no such accounts, long random passwords), but nothing stopped it
either.
Provisioning now installs fail2ban with a jail on the login log ProFTPD
already writes for both servers: five refused logins (PASS 530) within
ten minutes ban the address from both ports for an hour, doubling per
repeat offence up to a week. The workflow checks the filter against a
made-up log first (a refusal must count, a success and a bare USER must
not), and takes an optional unban_ip input for a provider who locked
themselves out.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
0 commit comments