Skip to main content

phpIPAM (IPAM)

Self-hosted phpIPAM (1.8.3, GPLv3) — open-source IP address management tool tracking the rack's subnets, VLANs and IP allocations.

Guestsrv-phpipam — Rocky Linux 9.8, VM 124 on rumba, 192.168.88.35, 1024 MB RAM, 30G (local-lvm, scsi0)
URLhttps://srv-phpipam.isc3.isc-vs.ch/
Sourcephpipam/phpipam, branch 1.8, cloned straight to /var/www/html (no subfolder)
Version1.8.3, schema/dbversion 46
StackApache (httpd) + PHP 8.x (module php:remi-8.2, via Remi repo) + MariaDB 10.5
DatabaseMariaDB, database phpipam, user phpipam@localhost, bind-address restricted to 127.0.0.1
AuthLocal phpIPAM accounts only (Admin + any created since) — no Keycloak/SSO integration

Standing rules​

Do not rename or delete a packaged Apache config

ssl.conf and welcome.conf are %config(noreplace) files of mod_ssl / httpd: if one is missing, the next update installs it again. On 2026-10-29 that brought back a second Listen 443 https and kept phpIPAM down 11 days (incident). To disable one, empty it (: > /etc/httpd/conf.d/ssl.conf). Listen 443 https lives in phpipam-ssl.conf only; run httpd -t before any reload.

caution
root cannot authenticate the automatic DB installer

MariaDB's root@localhost uses unix_socket auth (set via mysql_secure_installation), which the phpIPAM web installer's password-based connection cannot satisfy. Re-running the automatic database install (e.g. after a schema reset) needs a temporary MySQL user with full privileges instead:

CREATE USER 'phpipam_install'@'localhost' IDENTIFIED BY '<temp password>';
GRANT ALL PRIVILEGES ON *.* TO 'phpipam_install'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Drop it again as soon as the installer succeeds.

Mail​

Notifications (ping check, discovery check, IP requests) go out through the rack's outbound relay rather than a direct credential:

SettingValue
Server addresssrv-mail.isc3 (192.168.88.163), port 25, no auth/TLS
Admin mailrack-admins@isc-vs.ch

Requires this guest's address to be present in mynetworks on srv-mail (provisioning/mail/deploy-relay.sh) — confirmed added 2026-09-21 (postconf mynetworks on CT 112 lists 192.168.88.35), otherwise mail is refused at Client host rejected (layer 1, see Email).

Networks tracked​

Four subnets mirror the rack layout:

SubnetPurpose
192.168.88.0/24Main network — routers, NAS, PDU, server user interfaces
192.168.90.0/24Management (iDRAC) — R630 spares and carnaval nodes
192.168.91.0/24User/OS network — carnaval cluster nodes
192.168.92.0/24Management (iDRAC) — rumba

Automatic discovery (fping + PHP pcntl, via functions/scripts/discoveryCheck.php and pingCheck.php on a 30-minute cron) runs on the subnets.

Operations​

  • Config: /var/www/html/config.php — DB credentials, BASE path, mail settings. $disable_installer = true; since initial setup; the /install/ scripts must not be re-enabled outside a maintenance window.
  • SELinux: enforcing; httpd_can_network_connect on (needed for the DB/LDAP connections Apache makes on phpIPAM's behalf).
  • Firewall (November 2026): firewalld zone public allows https, ssh, cockpit, dhcpv6-client only; Apache listens on 443 only — no rule for MySQL (3306); MariaDB is additionally bound to 127.0.0.1 as defense in depth.

DNS and ICMP verification — 2026-11-10​

On srv-phpipam (192.168.88.35), phpIPAM 1.8.3 / dbversion 46: subnet 192.168.88.0/24 has the DNS ISC³ nameserver set (192.168.88.1), local scan agent, Check hosts, Discover new hosts, Resolve DNS names enabled, Autocreate reverse records and Show DNS records disabled. PowerDNS integration has been disabled in global settings; phpIPAM reads the existing CCR2004 DNS, it does not own its records. Nameserver sets are section-scoped: ensure ISC³ is included in the DNS ISC³ set, not only CALC.

Observed: initial UI ping scans displayed reachable hosts as offline. On the guest, ping and fping worked both as root and as apache (SELinux Enforcing, /usr/sbin/fping cap_net_raw=ep). Manually running /usr/bin/php /var/www/html/functions/scripts/pingCheck.php scanned 59 IPs and reported 47 updates; a subsequent run reported 0 updates, and the UI showed reachable .1, .10, .24 and .35 green. Cron had pingCheck.php and discoveryCheck.php every 30 minutes, with the ping output discarded; no DNS-specific resolveIPaddresses.php cron was found. Do not conflate ICMP availability with DNS naming.

PTR and A tests against @192.168.88.1 succeeded for 192.168.88.10 (pdu.isc3.isc-vs.ch) and 192.168.88.12 (epyc1-bmc.isc3.isc-vs.ch, A→.12); epyc1-bmc.isc3 returned NXDOMAIN and is an obsolete/incomplete phpIPAM field, not evidence of DNS outage. The canonical suffix is isc3.isc-vs.ch, not isc3-isc-vs.ch. A reverse lookup for 192.168.88.26 returned no PTR in the supplied test; resolve before renaming it.

The configuration /var/www/html/config.php was shown with $config['resolve_emptyonly'] = false; and resolve_verbose = true; after backup. Important: this option belongs to resolveIPaddresses.php; a run of pingCheck.php with 0 updates does not prove that a hostname rewrite occurred. Before invoking a full resolver run, back up MariaDB, inspect script scope, validate forward/reverse mappings, and preserve manual/exception names. Do not automatically apply to other subnets. Run php -l /var/www/html/config.php after changes. Never commit live config.php or database passwords to Git.

Only subnet .88 was evidenced as corrected in the UI. For .90, .91 and .92, verify independently: same section-scoped nameserver set, DNS resolution checkbox, agent route/reachability, PTR coverage and cron output. The CCR2004 at 192.168.88.1 is the rack-wide DNS target, not each subnet's gateway; see network and DNS operations.