Servers

Firewall

Manage UFW with SSH protection, automatic rollback and a view of listening ports.

Updated in v0.4.774 sections · 10 steps

Turn on the firewall#

The Firewall section manages UFW. Every change that could lock you out keeps SSH allowed and arms an automatic rollback.

  1. Choose a baseline with the presets you need, confirm your SSH ports and pick a rollback window between 1 and 10 minutes.
  2. 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.
  3. On the control-plane host you must also tick an explicit acknowledgement before applying.

Migrate from raw iptables#

  1. Some images, such as Oracle Cloud, ship with raw iptables rules. G Panel previews them and offers a guided migration to UFW.
  2. Review rules that cannot be carried over, acknowledge them, then migrate. The same rollback and Keep step applies.

Rules and service ports#

  1. Add, edit or delete rules. A deletion is checked against the current ruleset and explains its impact before it runs.
  2. DNS and mail open their own ports when enabled and close them when removed. Mail stays TLS-only by default.
  3. Rules saved while the firewall is off apply when you enable it.

Listening ports#

  1. Click Scan to see what is actually listening on the server and whether the firewall allows it. The view is read-only.
  2. Warnings show once with a tip on how to fix them.

Something unclear or missing? Tell us and we will improve this guide.