# urbestack-ban-allow

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-ban-allow [--address ADDRESS|NETWORK] [--service SERVICE] [--jail RULE] [--q TEXT] [--since TIME] [--until TIME]
```

## Description

Adds individual IP addresses from matching bans to the Allow list. Adding an IP address lifts all its active bans, including any outside the filters. The Allow list takes precedence over the Deny list and exempts those IP addresses from future bans and fail2ban's attempt counts.

Supply at least one filter. Active, expired and unblocked bans within the retention period can all match. Use --address for one IP address or a CIDR network and --jail for a rule name. The values for --service are ssh, panel, mail, webmail, phpmyadmin, ftp, sites, repeat and own. Use own for rules outside UrbeStack's built-in service groups.

Use --q to match an IP address or a CIDR network, or to search the IP address and triggering log line for a case-sensitive substring. The search is limited to 200 characters. A network in --q takes precedence over a network in --address.

--since and --until set inclusive bounds on when the ban began. Both accept a UTC date such as 2026-09-17 or a UTC date and time such as 2026-09-17T14:02:00Z. A date alone means the start of the day for --since and the end of the day for --until.

## Same in the API

- [POST /security/bans/allow](https://urbestack.com/docs/api/post-security-bans-allow.md): Add IP addresses from matching bans to the Allow list

## Command family: ban

- [urbestack-ban-add](https://urbestack.com/docs/commands/urbestack-ban-add.md): Records a timed ban on an IP address and enforces it in the firewall.
- [urbestack-ban-clear](https://urbestack.com/docs/commands/urbestack-ban-clear.md): Lifts every active ban and empties the firewall's ban set.
- [urbestack-ban-del](https://urbestack.com/docs/commands/urbestack-ban-del.md): Lifts one active ban by ID or every active ban that matches the filters.
- [urbestack-ban-list](https://urbestack.com/docs/commands/urbestack-ban-list.md): Lists one page of matching bans within UrbeStack's retention period, newest first.
