Ports and services
This page lists the network ports and systemd services on the panel server and the hosting servers. Use it as a reference when you set up a firewall or a cloud security group, or when you check a service that is down.
Panel server
| Port | Protocol | Service | From | Purpose |
|---|---|---|---|---|
| 8443 | TCP (HTTPS) | moorcp-shared | staff, billing, hosting servers | Admin panel, API v1, agent endpoints (registration, mTLS heartbeat, certificate renewal), downloads of install-agent.sh and the agent binary |
| 2083 | TCP (HTTPS) | moorcp-shared | clients | Client panel |
| 2085 | TCP (HTTPS) | moorcp-shared | clients | Separate origin for third-party app UIs (Softaculous) |
| 2086 | TCP (HTTPS) | moorcp-shared | staff | Separate origin for vendor admin UIs (Softaculous admin, CloudLinux Manager) and the Rspamd web UI (/rspamd-admin/) |
| 80 | TCP (HTTP) | moorcp-shared hostcert | Let's Encrypt | Panel certificate validation (HTTP-01) on issue and renewal |
| 5432 | TCP | postgresql | local only | Panel database (127.0.0.1) |
The panel installer opens 8443, 2083, 2085, 2086, and the http service (80) in firewalld, unless you use --no-firewall.
INFO
Ports 2085 and 2086 are separate from 8443 and 2083 so that third-party UIs do not share an origin (cookies and scripts) with the panel. Their public addresses are set with MOORCP_APPS_PUBLIC_URL and MOORCP_APPS_ADMIN_PUBLIC_URL. See Environment variables.
TIP
Restrict admin panel access to your office network with MOORCP_ADMIN_ALLOWED_CIDRS. The restriction applies to the admin GUI and staff login, not to API keys, so billing can still call the API. Port 8443 must stay open for the hosting servers.
Hosting servers
Public ports
| Port | Protocol | Service | Purpose |
|---|---|---|---|
| 80 | TCP | nginx / httpd / lshttpd | HTTP websites, ACME validation |
| 443 | TCP | nginx / httpd / lshttpd | HTTPS websites, phpMyAdmin (/pma/), AdminNeo (/adminneo/), webmail (/webmail/ and https://webmail.<domain>), Calendars & Contacts (/dav/), Web Disk (/webdisk/) |
| 25 | TCP | postfix | Inbound SMTP between mail servers. Does not accept client logins |
| 465 | TCP | postfix | SMTP submission over SSL (login required) |
| 587 | TCP | postfix | SMTP submission with STARTTLS (login required) |
| 993 | TCP | dovecot | IMAP over SSL |
| 995 | TCP | dovecot | POP3 over SSL |
| 143 | TCP | dovecot | IMAP without SSL. Recommend that clients use 993 |
| 110 | TCP | dovecot | POP3 without SSL. Recommend that clients use 995 |
| 21 | TCP | pure-ftpd | FTP and FTPS (explicit TLS) |
| 30000–30100 | TCP | pure-ftpd | FTP passive port range |
| 22 | TCP | sshd | Admin SSH and account SFTP/SSH (jailed shell). The root SSH port can be changed from the panel |
| client SFTP/SSH port | TCP | moorcp-sshd | Optional separate port (1024 or higher) for account SFTP/SSH, set in Servers › server › Settings › Apps & tools. Opened in firewalld and SELinux automatically. When it is set, clients can no longer log in on the main SSH port |
| 7443 | TCP | moorcp-agent | Agent mTLS. Only needs to be open to the panel server |
The agent installer opens the firewalld services http, https, smtp, smtps, smtp-submission, imap, imaps, pop3, pop3s, ftp, and the agent port (default 7443, changeable with --listen). SSH uses the server's default firewalld rule. A DNS-only server (dns mode or --role dns) only gets the dns service (53) and the agent port.
WARNING
The installer does not open the FTP passive range 30000–30100. Firewalld only opens port 21 with its FTP helper, and that helper cannot read FTP commands encrypted with TLS. If an FTPS client can log in but cannot list folder contents, open 30000-30100/tcp in the Firewall ports tab (see Managing ports from the panel), or from the shell:
firewall-cmd --permanent --add-port=30000-30100/tcp && firewall-cmd --reloadOutgoing SMTP relay
When a server sends email through an SMTP relay (smarthost), Postfix connects out to the relay's port: 587 (STARTTLS, the default), 465 (TLS), or 25 for an IP-based relay. Allow that outgoing port if your network filters outgoing traffic.
TIP
Port 7443 only needs to be open to the panel server's IP. The agent only accepts connections with a client certificate signed by the panel's internal CA, but restricting the source still reduces the attack surface.
Optional ports
| Port | Protocol | Service | When it is used |
|---|---|---|---|
| 53 | TCP/UDP | PowerDNS (pdns) | Servers that are nameserver nodes. Opened automatically (firewalld service dns) when the node is set up from Domains & DNS › Nameserver nodes, with the installer's --dns, or on a DNS-only server |
| 3306 | TCP | mariadb | Local only by default. Open it only when this server is an external database server, and only to the hosting servers' IPs. Remote database access opens it automatically with firewalld rich rules, only for the hosts that clients list |
| 5432 | TCP | postgresql | Same as 3306, for client PostgreSQL (--pgsql) |
DANGER
Do not open 3306 or 5432 to the whole internet. Use per-source-IP firewall rules, as in Databases and optimizer.
Local ports (loopback)
These ports only listen on 127.0.0.1. They do not need to be, and must not be, opened in the firewall.
| Port | Service | Purpose |
|---|---|---|
| 8080 | httpd | Apache backend in nginx-proxy mode (nginx in front) |
| 8081 | PowerDNS API | PowerDNS API on a nameserver node. The panel reaches it through the agent (mTLS), not directly. Only the older setup through MOORCP_PDNS_URL has the panel call it directly |
| 5232 | radicale | Calendars & Contacts (CalDAV/CardDAV). The web server forwards https://<hostname>/dav/ to it |
| 5234 | moorcp-agent | Web Disk (WebDAV). The web server forwards https://<hostname>/webdisk/ to it; each login is served by a worker that runs as the account user |
| 8095 | crowdsec | CrowdSec Local API (LAPI), used by the firewall bouncer |
| 6065 | crowdsec | CrowdSec Prometheus metrics |
| 10031 | moorcp-agent | Postfix policy service for the hourly email sending limit |
| 10053 | moorcp-unbound | Local DNS resolver (Unbound) for Rspamd, so DNS blocklists such as Spamhaus answer and lookups do not slow mail down |
| 11332 | rspamd | Rspamd milter (spam filter and DKIM signing) |
| 11334 | rspamd | Rspamd controller, read by the agent for outbound spam detection. The Rspamd web UI reaches it through the agent and port 2086 of the panel, never directly |
| 30000–39999 | moorcp-app-* | Account Node.js, Python, and Ruby apps. The web server forwards the app path to these ports |
INFO
CrowdSec uses 8095 instead of its default 8080, because 8080 is already used by the Apache backend in nginx-proxy mode.
Managing ports from the panel
You can open and close firewalld ports on hosting servers from Security › Network & Access, in the Firewall ports tab. Only the admin role can change ports, and every change is recorded in the audit log (server.port_open, server.port_close).
- A port can be a single number or a range (up to 10000 ports), TCP or UDP.
- Rules are written to the firewalld default zone, runtime and permanent at the same time, without reloading firewalld. The CrowdSec bouncer's nftables tables are not disturbed.
- If firewalld is not installed or not running, the tab says so, and every port that a service listens on stays reachable. Enable firewalld installs and starts it. The required rules (the effective SSH port, the client SFTP/SSH port, the panel and agent ports, the ports of installed services, and the FTP passive range) are written before it starts. A 90-second safety timer turns firewalld off again unless the panel can still reach the agent afterwards. Only admins can use it (audit
server.firewall_enable).
The following ports are protected. The panel and the agent refuse to close them:
| Port | Protocol | Reason |
|---|---|---|
SSH port (Port in sshd_config and sshd_config.d, default 22) | TCP | SSH |
| client SFTP/SSH port, if set | TCP | Client SFTP/SSH (moorcp-sshd) |
| 80 | TCP | HTTP |
| 443 | TCP and UDP | HTTPS and HTTP/3 |
| 8443 | TCP | Admin panel and agent |
| 2083 | TCP | Client panel |
| 2085, 2086 | TCP | Apps origin and apps admin origin |
agent port (MOORCP_AGENT_LISTEN, default 7443) | TCP | MoorCP agent |
Mail, FTP, and DNS ports may be closed if the server does not use them.
WARNING
Closing port 53 on a nameserver node stops that node from answering DNS queries from outside. Only close it if the server is not a nameserver node.
systemd services
Panel server
| Unit | Purpose |
|---|---|
moorcp-shared.service | Control plane (moorcp-shared serve), running as the moorcp user. Env from /etc/moorcp-shared/env |
postgresql.service | Panel database (PostgreSQL 16) |
moorcp-shared-upgrade.path | Watches /var/lib/moorcp-shared/upgrade/request.json, the upgrade request from the panel. Installed and enabled by the installer |
moorcp-shared-upgrade.service | One-shot unit (root) that runs moorcp-shared self-upgrade when a request exists. 45-minute timeout |
Basic commands:
systemctl status moorcp-sharedjournalctl -u moorcp-shared -n 100 --no-pagerHosting servers
| Unit | Purpose | Notes |
|---|---|---|
moorcp-agent.service | MoorCP agent (moorcp-agent serve), running as root | Env from /etc/moorcp-agent/env. Cannot be controlled from the panel |
nginx.service | Web server in nginx and nginx-proxy modes | |
httpd.service | Apache in apache mode, and the backend in nginx-proxy mode | |
lshttpd.service | OpenLiteSpeed in openlitespeed mode | |
php-fpm.service | System PHP-FPM | |
moorcp-php-<account>-<version>.service | PHP-FPM pool per account per version, e.g. moorcp-php-jane-83 | Created by the agent |
moorcp-lsphp-<account>-<version>.service | lsphp process per account in OpenLiteSpeed mode | Created by the agent |
moorcp-app-<account>-<id>.service | An account's Node.js, Python, or Ruby app (servers without CloudLinux) | Runs as the account user, within the account limits |
moorcp-redis@<account>.service | Redis object cache per account | Only when the Redis feature is on |
moorcp-memcached@<account>.service | Memcached object cache per account, running as the account user (Unix socket only) | Only when the Memcached feature is on |
mariadb.service | MySQL/MariaDB | |
postgresql.service | Client PostgreSQL | Optional (--pgsql) |
postfix.service, dovecot.service, rspamd.service | ||
moorcp-unbound.service | Local DNS resolver for Rspamd (127.0.0.1:10053) | Set up by Mail stack repair; if it does not answer, Rspamd keeps the system resolver |
radicale.service | Calendars & Contacts (CalDAV/CardDAV) on 127.0.0.1:5232 | Only when installed from the server setup (Email step) |
moorcp-webdisk-<id>.service | Web Disk worker for one FTP login, running as the account user | Started on demand by the agent, stops after 10 idle minutes |
pure-ftpd.service | FTP | |
sshd.service | SSH | Cannot be stopped from the panel |
moorcp-sshd.service | Separate sshd instance for client SFTP/SSH | Only when a client SFTP/SSH port is set |
crond.service | Account cron | |
clamd@scan.service, clamav-freshclam.service | ClamAV | Optional (--clamav) |
crowdsec.service, crowdsec-firewall-bouncer.service | CrowdSec and the nftables bouncer | Installed from the Security page |
pdns.service | PowerDNS | Only on nameserver nodes. Installed from the panel or the installer (--dns, dns mode), stopped when the node is removed |
moorcp-install-resume.service | Finishes the installation once after the disk-quota reboot, then removes itself | Only on a new XFS server whose quotas need a reboot |
The Services tab in the server details shows the status of the units the agent monitors, with start, stop, restart, reload, and journal log buttons. Units that are disabled on purpose (for example nginx after switching to OpenLiteSpeed) show as disabled and do not raise alerts.
