Prepare Debian 12 or 13
Start with a dedicated Debian 12 or 13 host using systemd. Choose the private interface, DNS name and authorized appliance from the relay network plan. Keep inbound connections to the feed restricted before installing NGINX, which can start its default HTTP site during package installation.
If nftables manages the host firewall, inspect the active rules with sudo nft list ruleset. Allow the appliance to reach the private listener on TCP 443 and preserve your management access. Check any upstream ACL and NAT rules for unintended public access. Install the Debian packages and confirm the NGINX worker group exists.
sudo apt-get update
sudo apt-get install --no-install-recommends python3 nginx ca-certificates curl
python3 --version
getent group www-dataInstall the updater and its credential
Download the four reference files into a temporary directory and review them. Run these commands from the same directory. The service runs under a dedicated account. Its www-data group allows the NGINX workers to read the published snapshot.
getent passwd data-shield-relay >/dev/null ||
sudo useradd --system --no-create-home --gid www-data --shell /usr/sbin/nologin data-shield-relay
sudo install -d -o root -g root -m 0755 /usr/local/lib/data-shield-relay
sudo install -o root -g root -m 0755 refresh.py /usr/local/lib/data-shield-relay/
sudo install -o root -g root -m 0644 data-shield-relay.service data-shield-relay.timer /etc/systemd/system/
sudo systemctl daemon-reloadIn a private root terminal, enter the Device ID and token at the hidden prompts. systemd loads the resulting root-only file when it starts the update service.
Verify the first download and enable the timer
sudo systemctl start data-shield-relay.service
systemctl show data-shield-relay.service -p Result -p ExecMainStatus
sudo journalctl -u data-shield-relay.service -n 12 --no-pager
sudo -u www-data test -s /var/lib/data-shield-relay/current/critical.txt &&
sudo ls -lh /var/lib/data-shield-relay/current/Continue when the service reports Result=success and ExecMainStatus=0, the complete file is readable by the NGINX worker, and the expected splits are present. The journal records the generation and counts. A successful oneshot service normally returns to the inactive state.
sudo systemctl enable --now data-shield-relay.timer
systemctl list-timers --all data-shield-relay.timerCheck the next activation time in the timer output.
Configure the private NGINX site
Prepare the certificate for your internal DNS name and trust its issuer on the firewall as described in TLS setup. Replace both source paths below. Edit the sample listener address, both occurrences of its DNS name and the permitted client address. Keep deny all immediately after the allowed addresses.
sudo install -d -o root -g root -m 0700 /etc/nginx/tls
sudo install -o root -g root -m 0644 /path/to/fullchain.pem /etc/nginx/tls/feed-relay.crt
sudo install -o root -g root -m 0600 /path/to/privkey.pem /etc/nginx/tls/feed-relay.key
sudo install -o root -g root -m 0644 nginx.conf.example /etc/nginx/sites-available/data-shield-relay
sudoedit /etc/nginx/sites-available/data-shield-relayCreate the site symlink once. If it already exists, confirm its target. Check for competing listeners and verify that exposed ports match your private network policy.
sudo ln -s /etc/nginx/sites-available/data-shield-relay /etc/nginx/sites-enabled/data-shield-relay
sudo nginx -t && sudo systemctl enable --now nginx && sudo systemctl reload nginx
sudo ss -lntpAfter certificate renewal, run sudo nginx -t && sudo systemctl reload nginx so NGINX picks up the new chain.
Verify delivery from the firewall
Set the firewall connector to the internal https://feed-relay.example.invalid/critical.txt, replacing the hostname. For equipment using splits, configure the separate URLs matching the files in current/. Test the download from the allowed address and confirm the imported entry count. Check a denied client as well. If a refresh fails, check the logs and rotate the credential if needed.
BETTER DATA. TOGETHER.
Need a correction?
Report a documentation issue or request a review of an address. Keep credentials and private configuration out of public issues.