Horus WG-Routen-Fix dokumentieren und Route-Service ins Repo.

wg syncconf legt keine AllowedIPs-Routen an; OPNsense Static-Route
192.168.178.1 als häufige Fehlerquelle für LAN→Horus ergänzt.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
root
2026-06-28 12:27:55 +02:00
parent 830f1f4fdd
commit 26dcf96475
3 changed files with 55 additions and 3 deletions
@@ -0,0 +1,12 @@
#!/bin/bash
# Horus: Routes für OPNsense-Peer — wg syncconf legt AllowedIPs-Routen nicht an
# Deploy: /usr/local/sbin/wg0-opnsense-routes.sh + systemd wg0-opnsense-routes.service
set -euo pipefail
ip link show wg0 &>/dev/null || exit 0
for net in \
10.1.1.22/32 \
192.168.10.0/24 192.168.20.0/24 192.168.30.0/24 \
192.168.40.0/24 192.168.50.0/24 192.168.60.0/24 \
10.2.2.0/24; do
ip route replace "$net" dev wg0
done