Servers
Firewall
Manage UFW with SSH protection, automatic rollback and a view of listening ports.
Turn on the firewall#
The Firewall section manages UFW. Every change that could lock you out keeps SSH allowed and arms an automatic rollback.
- Choose a baseline with the presets you need, confirm your SSH ports and pick a rollback window between 1 and 10 minutes.
- After the change is live, the dialog closes and a banner shows the countdown. Press Keep to make it permanent; otherwise the previous rules return automatically.
- On the control-plane host you must also tick an explicit acknowledgement before applying.
Migrate from raw iptables#
- Some images, such as Oracle Cloud, ship with raw iptables rules. G Panel previews them and offers a guided migration to UFW.
- Review rules that cannot be carried over, acknowledge them, then migrate. The same rollback and Keep step applies.
Rules and service ports#
- Add, edit or delete rules. A deletion is checked against the current ruleset and explains its impact before it runs.
- DNS and mail open their own ports when enabled and close them when removed. Mail stays TLS-only by default.
- Rules saved while the firewall is off apply when you enable it.
Listening ports#
- Click Scan to see what is actually listening on the server and whether the firewall allows it. The view is read-only.
- Warnings show once with a tip on how to fix them.
Something unclear or missing? Tell us and we will improve this guide.