The task. On a managed node the monitor is needed — for logs, the status page and the message list — but must not become a way for anyone who reaches the port to read accounting, replace the license, edit the configuration or stop sending.
What it is made of:
The parts have different scopes. All of this is node-level: the monitor is one listener per node.
How they interact. This is one decision in three parts, and the weakest one determines the result. A narrow list on the default port is still a service through which anyone with the operator level runs commands; a good certificate with an open list protects the transfer of what should not have been reachable. The essence of the scheme: an http-access line with the operator or admin level is a firewall rule with shell rights.
Three parts and the cost of skipping each:
| Part | What to set | What happens if skipped |
|---|---|---|
| http-mgmt-port | its own port, checked for conflicts | the monitor competes for 8080 with other software |
| http-access | only the needed addresses, a level no higher than needed | commands and accounting are available to outsiders |
| certificate | a signed one instead of a self-signed one | the node’s authenticity cannot be verified |
http-mgmt-port 8190 http-access 127.0.0.1 admin http-access 203.0.113.10 monitor,deny-logs
grep -n 'http-mgmt-port\|http-access\|http-redirect-to-https' /etc/pmta/config ss -ltnp | grep pmtahttp