Skip to content

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 ​

PortProtocolServiceFromPurpose
8443TCP (HTTPS)moorcp-sharedstaff, billing, hosting serversAdmin panel, API v1, agent endpoints (registration, mTLS heartbeat, certificate renewal), downloads of install-agent.sh and the agent binary
2083TCP (HTTPS)moorcp-sharedclientsClient panel
2085TCP (HTTPS)moorcp-sharedclientsSeparate origin for third-party app UIs (Softaculous)
2086TCP (HTTPS)moorcp-sharedstaffSeparate origin for vendor admin UIs (Softaculous admin, CloudLinux Manager) and the Rspamd web UI (/rspamd-admin/)
80TCP (HTTP)moorcp-shared hostcertLet's EncryptPanel certificate validation (HTTP-01) on issue and renewal
5432TCPpostgresqllocal onlyPanel 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 ​

PortProtocolServicePurpose
80TCPnginx / httpd / lshttpdHTTP websites, ACME validation
443TCPnginx / httpd / lshttpdHTTPS websites, phpMyAdmin (/pma/), AdminNeo (/adminneo/), webmail (/webmail/ and https://webmail.<domain>), Calendars & Contacts (/dav/), Web Disk (/webdisk/)
25TCPpostfixInbound SMTP between mail servers. Does not accept client logins
465TCPpostfixSMTP submission over SSL (login required)
587TCPpostfixSMTP submission with STARTTLS (login required)
993TCPdovecotIMAP over SSL
995TCPdovecotPOP3 over SSL
143TCPdovecotIMAP without SSL. Recommend that clients use 993
110TCPdovecotPOP3 without SSL. Recommend that clients use 995
21TCPpure-ftpdFTP and FTPS (explicit TLS)
30000–30100TCPpure-ftpdFTP passive port range
22TCPsshdAdmin SSH and account SFTP/SSH (jailed shell). The root SSH port can be changed from the panel
client SFTP/SSH portTCPmoorcp-sshdOptional 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
7443TCPmoorcp-agentAgent 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:

bash
firewall-cmd --permanent --add-port=30000-30100/tcp && firewall-cmd --reload

Outgoing 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 ​

PortProtocolServiceWhen it is used
53TCP/UDPPowerDNS (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
3306TCPmariadbLocal 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
5432TCPpostgresqlSame 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.

PortServicePurpose
8080httpdApache backend in nginx-proxy mode (nginx in front)
8081PowerDNS APIPowerDNS 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
5232radicaleCalendars & Contacts (CalDAV/CardDAV). The web server forwards https://<hostname>/dav/ to it
5234moorcp-agentWeb Disk (WebDAV). The web server forwards https://<hostname>/webdisk/ to it; each login is served by a worker that runs as the account user
8095crowdsecCrowdSec Local API (LAPI), used by the firewall bouncer
6065crowdsecCrowdSec Prometheus metrics
10031moorcp-agentPostfix policy service for the hourly email sending limit
10053moorcp-unboundLocal DNS resolver (Unbound) for Rspamd, so DNS blocklists such as Spamhaus answer and lookups do not slow mail down
11332rspamdRspamd milter (spam filter and DKIM signing)
11334rspamdRspamd 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–39999moorcp-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:

PortProtocolReason
SSH port (Port in sshd_config and sshd_config.d, default 22)TCPSSH
client SFTP/SSH port, if setTCPClient SFTP/SSH (moorcp-sshd)
80TCPHTTP
443TCP and UDPHTTPS and HTTP/3
8443TCPAdmin panel and agent
2083TCPClient panel
2085, 2086TCPApps origin and apps admin origin
agent port (MOORCP_AGENT_LISTEN, default 7443)TCPMoorCP 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 ​

UnitPurpose
moorcp-shared.serviceControl plane (moorcp-shared serve), running as the moorcp user. Env from /etc/moorcp-shared/env
postgresql.servicePanel database (PostgreSQL 16)
moorcp-shared-upgrade.pathWatches /var/lib/moorcp-shared/upgrade/request.json, the upgrade request from the panel. Installed and enabled by the installer
moorcp-shared-upgrade.serviceOne-shot unit (root) that runs moorcp-shared self-upgrade when a request exists. 45-minute timeout

Basic commands:

bash
systemctl status moorcp-shared
bash
journalctl -u moorcp-shared -n 100 --no-pager

Hosting servers ​

UnitPurposeNotes
moorcp-agent.serviceMoorCP agent (moorcp-agent serve), running as rootEnv from /etc/moorcp-agent/env. Cannot be controlled from the panel
nginx.serviceWeb server in nginx and nginx-proxy modes
httpd.serviceApache in apache mode, and the backend in nginx-proxy mode
lshttpd.serviceOpenLiteSpeed in openlitespeed mode
php-fpm.serviceSystem PHP-FPM
moorcp-php-<account>-<version>.servicePHP-FPM pool per account per version, e.g. moorcp-php-jane-83Created by the agent
moorcp-lsphp-<account>-<version>.servicelsphp process per account in OpenLiteSpeed modeCreated by the agent
moorcp-app-<account>-<id>.serviceAn account's Node.js, Python, or Ruby app (servers without CloudLinux)Runs as the account user, within the account limits
moorcp-redis@<account>.serviceRedis object cache per accountOnly when the Redis feature is on
moorcp-memcached@<account>.serviceMemcached object cache per account, running as the account user (Unix socket only)Only when the Memcached feature is on
mariadb.serviceMySQL/MariaDB
postgresql.serviceClient PostgreSQLOptional (--pgsql)
postfix.service, dovecot.service, rspamd.serviceEmail
moorcp-unbound.serviceLocal 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.serviceCalendars & Contacts (CalDAV/CardDAV) on 127.0.0.1:5232Only when installed from the server setup (Email step)
moorcp-webdisk-<id>.serviceWeb Disk worker for one FTP login, running as the account userStarted on demand by the agent, stops after 10 idle minutes
pure-ftpd.serviceFTP
sshd.serviceSSHCannot be stopped from the panel
moorcp-sshd.serviceSeparate sshd instance for client SFTP/SSHOnly when a client SFTP/SSH port is set
crond.serviceAccount cron
clamd@scan.service, clamav-freshclam.serviceClamAVOptional (--clamav)
crowdsec.service, crowdsec-firewall-bouncer.serviceCrowdSec and the nftables bouncerInstalled from the Security page
pdns.servicePowerDNSOnly on nameserver nodes. Installed from the panel or the installer (--dns, dns mode), stopped when the node is removed
moorcp-install-resume.serviceFinishes the installation once after the disk-quota reboot, then removes itselfOnly 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.

See also ​

MoorCP Shared, a shared hosting panel for server fleets.