Firewall Management
/admin/iptables is your interface to the platform's firewall. View active rules, block bad actors, whitelist trusted IPs, and review attack patterns. Designed mobile-first so you can ban an IP from your phone.
For automatic banning rules and broader security tooling, see IP Bans & Security.
Page anatomy
The v3 redesign organizes the page into 4 zones:
| Zone | What it does |
|---|---|
| Stat strip | Live counts: active bans, whitelists, 24h ban rate, fail2ban jail size |
| Filter chips | One-click filters by type (ban, whitelist, jail) and source (manual, fail2ban, modsec) |
| Sticky-header table | Every active rule. Header stays visible as you scroll |
| Action drawer | Add a ban, add a whitelist, edit an entry |
The CSS uses an ipt-* namespace and semantic theme tokens, so it looks correct on both light and dark themes.
Stat strip
Shows 4 live counters:
- Active bans. IPs currently blocked.
- Whitelisted. IPs that fail2ban will never block.
- 24h ban rate. How many new bans landed in the last 24 hours.
- Jail size. Current fail2ban jail population.
Each counter clicks through to a filtered view of the table.
Filter chips
One row of chips below the stat strip. Click a chip to filter the table. Click again to unfilter. Multiple chips stack.
- Type: Ban, Whitelist, Jail
- Source: Manual, fail2ban, ModSec
- Age: Last hour, Last 24h, Last 7d, All time
The filter is reflected in the URL, so you can share a filtered view.
Table
A single sticky-header table. Columns:
| Column | Notes |
|---|---|
| IP | Click to copy via App.toast notification |
| CIDR | If the entry is a range, the CIDR mask |
| Type | Ban or Whitelist |
| Source | Manual, fail2ban, ModSec |
| Reason | Free text or rule ID |
| Added | Time ago, full timestamp on hover |
| Expires | When the ban auto-lifts (blank for permanent) |
| Actions | Unban, edit reason, copy |
Click any column header to sort.
Adding a ban
Click Add ban in the toolbar. Fill 3 fields:
- IP or CIDR. Single IP or range. Example:
203.0.113.5or203.0.113.0/24. - Reason. Free text. Will show in audit log.
- Duration. Permanent, 1 hour, 24 hours, 7 days, 30 days.
Save. The ban is live within seconds.
Adding a whitelist
Same flow. Click Add whitelist, fill the fields, save. Whitelisted IPs are never auto-banned by fail2ban or ModSec.
Use whitelists for:
- Your office IP (so a typo doesn't lock you out)
- A shared VPN that other admins use
- Trusted monitoring services (Pingdom, UptimeRobot)
Destructive actions confirm safely
The redesign replaces native browser confirm() dialogs with themed modal dialogs. Click Unban and a Mobieus-styled modal asks you to confirm. Click outside to cancel.
This means:
- Confirmation dialogs match your theme (light or dark)
- Mobile users see a properly sized modal instead of a tiny browser prompt
- Screen readers announce the action clearly
Mobile
The page is fully responsive. On narrow screens:
- Stat strip stacks vertically
- Filter chips wrap to multiple rows
- Table switches to card layout with key fields stacked
- Action drawer slides up from the bottom
Access
Requires Tenant Admin role or higher. Tenant Super Mods can view but not edit.
Audit trail
Every ban, whitelist, edit, and unban writes to the audit log. View the trail at /admin/audit-log filtered to firewall events.
## Firewall Management `/admin/iptables` is your interface to the platform's firewall. View active rules, block bad actors, whitelist trusted IPs, and review attack patterns. Designed mobile-first so you can ban an IP from your phone. For automatic banning rules and broader security tooling, see [IP Bans & Security](/know/ip-bans-and-security). --- ## Page anatomy The v3 redesign organizes the page into 4 zones: | Zone | What it does | |---|---| | Stat strip | Live counts: active bans, whitelists, 24h ban rate, fail2ban jail size | | Filter chips | One-click filters by type (ban, whitelist, jail) and source (manual, fail2ban, modsec) | | Sticky-header table | Every active rule. Header stays visible as you scroll | | Action drawer | Add a ban, add a whitelist, edit an entry | The CSS uses an `ipt-*` namespace and semantic theme tokens, so it looks correct on both light and dark themes. --- ## Stat strip Shows 4 live counters: - **Active bans.** IPs currently blocked. - **Whitelisted.** IPs that fail2ban will never block. - **24h ban rate.** How many new bans landed in the last 24 hours. - **Jail size.** Current fail2ban jail population. Each counter clicks through to a filtered view of the table. --- ## Filter chips One row of chips below the stat strip. Click a chip to filter the table. Click again to unfilter. Multiple chips stack. - **Type:** Ban, Whitelist, Jail - **Source:** Manual, fail2ban, ModSec - **Age:** Last hour, Last 24h, Last 7d, All time The filter is reflected in the URL, so you can share a filtered view. --- ## Table A single sticky-header table. Columns: | Column | Notes | |---|---| | IP | Click to copy via App.toast notification | | CIDR | If the entry is a range, the CIDR mask | | Type | Ban or Whitelist | | Source | Manual, fail2ban, ModSec | | Reason | Free text or rule ID | | Added | Time ago, full timestamp on hover | | Expires | When the ban auto-lifts (blank for permanent) | | Actions | Unban, edit reason, copy | Click any column header to sort. --- ## Adding a ban Click **Add ban** in the toolbar. Fill 3 fields: - **IP or CIDR.** Single IP or range. Example: `203.0.113.5` or `203.0.113.0/24`. - **Reason.** Free text. Will show in audit log. - **Duration.** Permanent, 1 hour, 24 hours, 7 days, 30 days. Save. The ban is live within seconds. --- ## Adding a whitelist Same flow. Click **Add whitelist**, fill the fields, save. Whitelisted IPs are never auto-banned by fail2ban or ModSec. Use whitelists for: - Your office IP (so a typo doesn't lock you out) - A shared VPN that other admins use - Trusted monitoring services (Pingdom, UptimeRobot) --- ## Destructive actions confirm safely The redesign replaces native browser `confirm()` dialogs with themed modal dialogs. Click **Unban** and a Mobieus-styled modal asks you to confirm. Click outside to cancel. This means: - Confirmation dialogs match your theme (light or dark) - Mobile users see a properly sized modal instead of a tiny browser prompt - Screen readers announce the action clearly --- ## Mobile The page is fully responsive. On narrow screens: - Stat strip stacks vertically - Filter chips wrap to multiple rows - Table switches to card layout with key fields stacked - Action drawer slides up from the bottom --- ## Access Requires Tenant Admin role or higher. Tenant Super Mods can view but not edit. --- ## Audit trail Every ban, whitelist, edit, and unban writes to the audit log. View the trail at `/admin/audit-log` filtered to firewall events.