sftp-fail2ban

sftp-fail2ban

Application Docker from bmartino1's Repository

Vue d'ensemble

Easy to use SFTP (SSH File Transfer Protocol) server with OpenSSH and Fail2ban installed for extra hardening against brute force attacks. Forked from atmoz/sftp. Based on Debian Slim Image. *Shared Path is an example. You must replace the host path with the path to a folder to share AND change the user in the container path to the name of a user account configured in users.conf. See the GitHub page for more info: https://github.com/bmartino1/sftp2.

Arguments d'exécution

Réseau
bridge
Coquille
bash
Privilégié
false
Paramètres supplémentaires
--hostname sftp --cap-add=NET_ADMIN --cap-add=NET_RAW

Configuration du modèle

SSH PortPorttcp

Docker bridge network set SSH/SFTP port

Cible
22
Défaut
22
Valeur
22
AdminDataPathrw

Default admin user's host folder/file access

Cible
/home/admin/sftp
Défaut
/mnt/user/
Valeur
/mnt/user/
AppDataPathrw

Docker data - this is needed to change the user.conf for multiple user accounts

Cible
/config
Défaut
/mnt/user/appdata/sftp-fail2ban
Valeur
/mnt/user/appdata/sftp-fail2ban
TimeZoneVariable
Cible
TZ
Valeur
America/Chicago
AUTO_UPDATEVariable

true Runs /stage/updateapps.sh if present custom Runs /config/updateapps.sh if present false or empty skips updates

Défaut
true
Valeur
true
LOG_STREAMSVariable

auth,fail2ban,whois (comma-separated list for Docker stdout) Tail log streams.

Défaut
auth,fail2ban,whois
Valeur
auth,fail2ban
ADMIN_PASSVariable

CHANGE ME! Set the admin password!

Valeur
password
PUIDVariable

User root

Défaut
99
Valeur
0
PGIDVariable

User root

Défaut
100
Valeur
0
ADMIN_USERVariable
Défaut
admin
Valeur
admin
DEBUG_TESTINGVariable

Preflight checks (makes sure Fail2ban and sshd will work) (writes to /config/debug when true), false by default

Défaut
false
Valeur
true
TAIL_LOGSVariable

T/F enable Docker log showing tail logs. This doesn't stop them from writing to the log folder.

Défaut
true
Valeur
true
CLEAR_LOGSVariable

At container restart, truncate logs in the log folder. This will move old logs within the log folder; no logs are removed.

Défaut
false
Valeur
true
F2B_CONFIG_MODEVariable

How to handle /config Fail2ban files # ===== Fail2Ban config wiring ===== # How /etc/fail2ban is populated from /config/fail2ban: # - symlink (source of truth = /config) # - overlay (defaults + then /config over) # - noclobber (defaults + non-clobber copy from /config) # - replace (use /config only)

Défaut
noclobber
Valeur
symlink

Télécharger les statistiques

1,154
Total des téléchargements

Détails

Référentiel
bmmbmm01/sftp2:latest
Dernière mise à jour2026-03-20
Première vue2025-10-16

Exécutez sftp-fail2ban sur Unraid.

sftp-fail2ban est listé dans Community Apps pour Unraid OS. Explorez Unraid pour créer un serveur domestique flexible, un NAS ou un laboratoire domestique.