13.6 Ports, paths and firewall
This page lists the network ports, the directories and files of server and agent, and the firewall rules. Ports and addresses are set in server.toml (see section 13.1 server.toml).
Ports
Port | Direction | Purpose | Standard |
|---|---|---|---|
8443/tcp | Browsers and API clients to the server | Web interface, REST API and (unless |
|
8444/tcp | Agents to the server | Agent connection with mutual TLS (client certificate). Key |
|
| Monitoring system to the server | Separate HTTPS address for | not set |
9/udp | Server to the local network | Magic packets for Wake-on-LAN. Destination from the key |
|
Agents connect to the server; for backups, no inbound port is needed on the agent computer. The push installation (see chapter 03 Installation) is the exception: the server connects to the target machine with WinRM or SSH. The server reaches the repository locations (local path, share, S3, SFTP, WebDAV) with the ports of the respective protocol.
Firewall
Windows server: the setup creates the inbound rule "PDC-Backup Server". It allows TCP to
pdc-server.exefor the network profile that is active during installation. If the computer later joins a network with another profile, run the setup again or adjust the rule in "Windows Defender Firewall with Advanced Security".Linux server: the package opens no ports. Allow the ports afterward, for example
sudo firewall-cmd --permanent --add-port=8443/tcp --add-port=8444/tcp && sudo firewall-cmd --reloadorsudo ufw allow 8443/tcp && sudo ufw allow 8444/tcp.Changed ports: after a change of
web_listenoragent_listen, adapt the rule and the server URL of enrolled agents (see section 13.2 agent.toml).Check from the agent computer:
Test-NetConnection <server> -Port 8444(Windows) orcurl -vk https://<server>:8444(Linux).
Paths of the server
Content | Windows | Linux |
|---|---|---|
Program |
|
|
Data directory (catalog, keys, certificates, settings) |
|
|
Configuration |
|
|
Logs |
| journal: |
Agent packages (update source) |
|
|
Agent installers for distribution |
| โ |
Service | PDCBackupServer |
|
Account | SYSTEM | system user |
The data directory can be changed with --data-dir or PDC_DATA_DIR (see section 13.4 Environment variables and section 13.5 Command line). The Linux data directory has mode 0700, the Windows one is accessible only to SYSTEM and Administrators.
Content of the data directory
โโโ server.toml # configuration (13.1)
โโโ catalog.db # catalog (database, with catalog.db-wal and catalog.db-shm while running)
โโโ pki/ # CA, server and signing keys (encrypted)
โโโ packages/ # agent packages and manifest
โโโ recovery/ # recovery ISO
โโโ logs/ # server logs
โโโ tmp/ # temporary files, for example uploaded packsThe Linux package additionally keeps a copy of the agent packages in /usr/share/pdc-backup/packages and copies them into the data directory on installation.
Paths of the agent
Content | Windows | Linux |
|---|---|---|
Program |
|
|
State directory |
|
|
Configuration |
|
|
Logs |
|
|
The state directory can be changed with --state-dir or PDC_AGENT_DIR. It holds agent.toml, agent.key, agent.crt, ca.crt, server.pins, package.key, logs and tmp (see section 13.2 agent.toml).
Helper for hardened repositories
Content | Path |
|---|---|
Configuration (owned by root) |
|
Unix socket |
|
State directory |
|
Further details: see section 13.5 Command line and chapter 08 Repositories and Storage.
Linux: SMB credentials
pdc-server smb-mount-unit stores the credentials of a share in /etc/pdc-backup/smb-<name>.cred (mode 0600), see section 13.5 Command line.
Related
For installation and firewall troubleshooting, see chapter 03 Installation and chapter 14 Operations and FAQ.