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

urbestack-ban-add

First published 3 Oct 20260.1.0Unchanged since publication

Usage

# urbestack-ban-add --address ADDRESS --jail RULE --seconds N [--line 'the log line that caught it']

Description

From the command's --help output
Records a timed ban on an IP address and enforces it in the firewall. The ban uses the scope of
the rule named by --jail. An unknown rule applies the ban to all services. Loopback IP addresses
and IP addresses covered by the Allow list are exempt.

Use --address for one IPv4 or IPv6 IP address. Set --seconds to a duration from 1 second to 366
days. Give the duration in seconds or use a unit suffix, as in 10m, 1h, 2d or 1w. Repeating an
active ban for the same IP address and rule keeps the later expiry.

Use --line to record the log line that triggered the ban. If you pass several lines, UrbeStack
keeps up to 500 characters from the last nonblank line.

Options

Find other commands that accept these options
urbestack-ban-
Generated from release 0.2.35 (current) · urbestack-ban-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-ban-add/