LXC installs: announce <hostname>.local with Avahi, hub on port 80
In an LXC (lxc mode on a Proxmox node, or native mode inside an LXC), the installer now: - installs avahi-daemon (with the rlimit-nproc fix for unprivileged containers), so the container answers at <hostname>.local, and lists the web UI as a _http._tcp service - serves the hub on port 80 (CAP_NET_BIND_SERVICE for the netmon user) unless HOST_PORT is given, so http://netmon-hub.local works without a port - runs the inner install with LANG/LC_ALL=C.UTF-8 (no locale warnings from the node's LANG) and prints one summary, with the .local address When the UI is opened by a .local name, the Add probe command uses the hub's own IP for HUB_URL, since Linux probes usually can't resolve .local. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a96ae4e825
commit
cd2deda996
9 changed files with 136 additions and 17 deletions
|
|
@ -124,7 +124,8 @@ To change the defaults, set these before `bash`:
|
|||
For example: `curl -fsSL .../install.sh | LXC_IP=192.168.68.50/24 LXC_GW=192.168.68.1 bash`.
|
||||
|
||||
Notes:
|
||||
- **Fixed IP for the hub:** give its container a DHCP reservation or a static IP. Probes report to it, and the Add probe command contains its address.
|
||||
- **`.local` names:** the installer runs Avahi in the container, so it answers at `<hostname>.local`. The hub's container is `netmon-hub`, so `http://netmon-hub.local`. The hub has the container to itself and listens on port 80, so no port is needed; pass `HOST_PORT` to choose another. Native installs inside an LXC you made yourself work the same way.
|
||||
- **Fixed IP for the hub:** give its container a DHCP reservation or a static IP. Probes report to it, and the Add probe command contains its address. Opened at `netmon-hub.local`, the hub puts its IP in the command anyway, because Linux probes usually can't resolve `.local` names.
|
||||
- **What the probe measures:** the container sits on the node's bridge, so its traffic leaves through the node's NIC, and the probe measures that node's link.
|
||||
- **Neighbors:** a probe in a container sees only the devices it has talked to, not everything the node sees. AdGuard is the main source of the client list, so this rarely matters.
|
||||
- **Ping:** inside an unprivileged container, the ping setting is limited to the container's mapped groups (0–65535). The installer handles that.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue