sftp-fail2ban

sftp-fail2ban

Docker 应用程序 from bmartino1's Repository

概述

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.

运行时参数

网络
bridge
外壳
bash
特权
false
额外参数
--hostname sftp --cap-add=NET_ADMIN --cap-add=NET_RAW

模板配置

SSH PortPorttcp

Docker bridge network set SSH/SFTP port

目标
22
默认值
22
价值
22
AdminDataPathrw

Default admin user's host folder/file access

目标
/home/admin/sftp
默认值
/mnt/user/
价值
/mnt/user/
AppDataPathrw

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

目标
/config
默认值
/mnt/user/appdata/sftp-fail2ban
价值
/mnt/user/appdata/sftp-fail2ban
TimeZoneVariable
目标
TZ
价值
America/Chicago
AUTO_UPDATEVariable

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

默认值
true
价值
true
LOG_STREAMSVariable

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

默认值
auth,fail2ban,whois
价值
auth,fail2ban
ADMIN_PASSVariable

CHANGE ME! Set the admin password!

价值
password
PUIDVariable

User root

默认值
99
价值
0
PGIDVariable

User root

默认值
100
价值
0
ADMIN_USERVariable
默认值
admin
价值
admin
DEBUG_TESTINGVariable

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

默认值
false
价值
true
TAIL_LOGSVariable

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

默认值
true
价值
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.

默认值
false
价值
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)

默认值
noclobber
价值
symlink

下载统计数据

1,154
下载总数

详细信息

存储库
bmmbmm01/sftp2:latest
最后更新2026-03-20
初见2025-10-16

在Unraid 上运行 sftp-fail2ban 。

sftp-fail2ban 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。