Get your free beta license ↗
CMDCommand · run as root on the server · jail family

urbestack-jail-add

First published 3 Oct 20260.1.0Unchanged since publication

Usage

# urbestack-jail-add --name NAME --log /path/to/log --pattern 'REGEX with <HOST>' [--tries 5] [--window 10m] [--bantime 1h] [--scope all|mail|web] [--off]

Description

From the command's --help output
Adds a custom ban rule. Choose a name of up to 32 characters that no custom or shipped rule
already uses. Fail2ban reserves the names default and includes. Give --log the absolute path to
an existing log file. Give --pattern a single-line regular expression of up to 500 characters,
with <HOST> where the IP address appears.

--tries sets how many matches for an IP address within --window trigger a ban. The default is 5
matches in 10m. --tries accepts 1 to 1000, and --window accepts 10 seconds to 30 days. --bantime
defaults to 1h and accepts 10 seconds to 366 days. Enter durations in whole seconds or with a
unit, as in 10s, 10m, 1h, 2d or 1w.

--scope defaults to all, which blocks all ports. Use mail or web to limit bans to the
corresponding ports. The rule is enabled by default. Use --off to add it disabled.

Options

Find other commands that accept these options

Same in the API

This operation runs the command.
urbestack-jail-
Generated from release 0.2.35 (current) · urbestack-jail-add --help outputThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/commands/urbestack-jail-add/