# urbestack-firewall-revert

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-firewall-revert [--watch]
```

## Description

Reverts the pending firewall change immediately. It restores the previous rules or switches SSH or the web interface back to its previous port and closes the new one. If it detects an SSH login on the new port that began after the change, it confirms the move. If no change is pending, the command exits immediately.

With --watch, the command waits on the current change. It confirms an SSH port change on the first qualifying login and reverts an unconfirmed change at the deadline. It exits when the change is confirmed or reverted.

## Same in the API

- [POST /security/firewall/revert](https://urbestack.com/docs/api/post-security-firewall-revert.md): Revert the pending firewall change immediately

## Command family: firewall

- [urbestack-firewall-confirm](https://urbestack.com/docs/commands/urbestack-firewall-confirm.md): Confirms the pending firewall change and cancels its automatic revert.
- [urbestack-firewall-ports-set](https://urbestack.com/docs/commands/urbestack-firewall-ports-set.md): Replaces the firewall's list of extra open ports.
- [urbestack-firewall-render](https://urbestack.com/docs/commands/urbestack-firewall-render.md): Regenerates the nftables rules and the sshd drop-in from UrbeStack's settings, checks both configurations, and applies them.
- [urbestack-firewall-rule-add](https://urbestack.com/docs/commands/urbestack-firewall-rule-add.md): Adds a firewall rule.
- [urbestack-firewall-rule-del](https://urbestack.com/docs/commands/urbestack-firewall-rule-del.md): Removes the firewall rule selected by --id.
- [urbestack-firewall-rule-list](https://urbestack.com/docs/commands/urbestack-firewall-rule-list.md): Lists UrbeStack's firewall rules and the ports and ranges the firewall is configured to open.
- [urbestack-firewall-status](https://urbestack.com/docs/commands/urbestack-firewall-status.md): Shows whether UrbeStack's firewall is enabled, which rules are configured, and which ports and ranges it is configured to open and why.
