Firewall
Firewall management
View and manage your server's iptables INPUT rules from the dashboard.
The Security tab's Firewall section lets you view and manage your server's iptables INPUT chain rules from the dashboard. You can add allow rules for specific IP addresses and ports, and remove them — without opening a terminal.
Firewall management requires control_enabled: true in the agent's config. The agent must be version 0.10.0 or newer.
Enabling firewall management
Set control_enabled: true in /etc/monilogix/config.yaml and restart the agent:
control_enabled: true$sudo systemctl restart monilogix-agentThe agent will then accept firewall commands from the server. Only the box's owner can add or remove rules — shared viewers see the rule list read-only.
What you see
Open a box, go to the Security tab. The Firewall section shows:
- The INPUT chain's default policy (ACCEPT or DROP).
- Every rule in the chain: its source IP or CIDR, the port (or “all”), and the action (ACCEPT, DROP, REJECT).
Rules are read on demand when you open the tab, and refreshed after every add or remove. There is no polling — use the refresh button to re-read if something changed outside the dashboard.
Adding a rule
Click Add rule. The source IP field is pre-filled with the address your browser is connecting from — so when your IP changes and you get locked out, adding yourself back is one click.
The port field is optional. Leave it empty to allow all ports from that address; enter a number (like 22) to allow only that port over TCP.
Behind the scenes the agent runs:
# All ports from one address:iptables -A INPUT -s 203.0.113.5/32 -j ACCEPT# One port only:iptables -A INPUT -s 203.0.113.5/32 -p tcp --dport 22 -j ACCEPTRemoving a rule
Click the trash icon beside an ACCEPT rule. A confirm dialog shows the exact iptables -D command that will run. DROP and REJECT rules cannot be removed from the dashboard — use the terminal for those.
Persistence across reboots
After every add or remove, the agent runs netfilter-persistent save if the package is installed. If it is not, the rule is live in the kernel and will last until the next reboot.
To make rules survive reboots on a server without netfilter-persistent:
$sudo apt install iptables-persistentWhat it does not do
- INPUT chain only. OUTPUT and FORWARD rules are not shown or editable. Docker manages its own chains and editing them would break container networking.
- iptables only. ufw, nftables and firewalld are not supported by this feature (though ufw is used by the separate IP blocking feature).
- No rule reordering. New rules are appended. If you need a rule at a specific position, use the terminal.
- No IPv6. Only IPv4 iptables rules. ip6tables support is a future addition.