{% extends "baseTemplate/index.html" %} {% load static %} {% comment %} Packet-filter rules. Deleting a rule that keeps SSH, the panel, or the operator's own address reachable requires a typed phrase -- see views.py. {% endcomment %} {% block title %}Firewall{% endblock %} {% block styles %} {% endblock %} {% block content %}

Firewall

Backend: {{ backend }} · your address is {{ callerIP }} · SSH on port {{ sshPort }}, panel on {{ panelPort }}.

{% if backend == "none" %}
Neither firewalld nor CSF is active on this server, so there is no packet filter to manage. Install one before relying on these rules.
{% endif %}
Backend
Filter running
fail2ban
ModSecurity
Open a port
Leaving the source blank opens the port to the entire internet. Restrict it to your own network whenever the service is not meant to be public. Blocking an address is done from fail2ban, which also expires the ban.

This delete can lock you out

Rule:

Active rules
Rule Protocol Port Source Origin
stale read-only
No rules are reported by the active backend.

CloudPanel refuses to close port {{ sshPort }} or port {{ panelPort }} to every source, and asks you to type a phrase before removing any rule that covers the address you are connected from.

{% endblock %} {% block scripts %} {% endblock %}