mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-12-02 18:19:07 +01:00
Pulse knew every address a machine holds and nothing about where it sends traffic bound for other networks or where it resolves names. No router, gateway or resolver could appear anywhere, because nothing collected one. The host agent now reads both from the host's own files on every report: IPv4 default routes from /proc/net/route, lowest metric first, and the nameservers of /etc/resolv.conf. Behind a systemd-resolved stub it reports the servers the stub forwards to. The server accepts only IP addresses and an interface name, bounds both lists, and carries them on the host model, the agent facet of the resource and the frontend type. Gateways are Linux only and IPv4 only. A report without the block stays unknown, which is never read as "no gateway". Nothing reads the fields yet. The infrastructure map will use them to name the gateway machines route through.