ABOUT
This script automatically adds IP address as tags to LXC containers or VM's using a systemd service. The service also updates the tags if a LXC/VM IP address is changed.
infoExecute within the Proxmox shell
infoConfiguration: `nano /opt/iptag/iptag.conf`. iptag Service must be restarted after change. See here for full documentation: `https://github.com/community-scripts/ProxmoxVE/discussions/5790`
warningThe Proxmox Node must contain ipcalc and net-tools. `apt-get install -y ipcalc net-tools`
infoYou can execute the ip tool manually with `iptag-run`
INSTALL
Approved local installer
DefaultDebian 13
Approved locallyConfig path/opt/iptag/iptag.conf
Run this command in the Proxmox VE shell. It downloads the immutable approved file, verifies SHA-256, and only then executes it.
( url='https://scripts.francoisvw.com/snapshots/c19711ea1b2526bec67e34be948114e255b5a811/tools/pve/add-iptag.sh'; sha='37e688e9e01355329e75ebd977bf2254c92a2bcad5a9ec224cf949b1de34bd75'; tmp="$(mktemp)" || exit; curl -fsSL "$url" -o "$tmp" && printf '%s %s\n' "$sha" "$tmp" | sha256sum -c - && bash "$tmp"; rc=$?; rm -f "$tmp"; exit "$rc" )
View approved source ↗Path tools/pve/add-iptag.shSHA-256 37e688e9e01355329e75ebd977bf2254c92a2bcad5a9ec224cf949b1de34bd75 LOCAL CHANGE REVIEW
Approved vs latest fetched source
Sign in with a passkey to inspect pending source changes. Approved content remains public.