- Add firewall include script (/etc/firewall.secubox-wan) for fw4 compatibility - Add hotplug script (/etc/hotplug.d/iface/99-secubox-wan) for WAN interface events - Configure firewall include in postinst (type=script for fw4) - secubox-core bumped to 0.9.0-2 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
17 lines
430 B
Bash
17 lines
430 B
Bash
#!/bin/sh
|
|
#
|
|
# SecuBox WAN Access - Firewall Include Script
|
|
# This script is called on every firewall reload to ensure WAN access rules persist
|
|
#
|
|
|
|
# Only run if secubox-wan-access exists
|
|
[ -x /usr/sbin/secubox-wan-access ] || exit 0
|
|
|
|
# Log the reload
|
|
logger -t secubox-wan "Firewall reload detected - reapplying WAN access rules"
|
|
|
|
# Apply WAN access rules from UCI config
|
|
/usr/sbin/secubox-wan-access apply >/dev/null 2>&1
|
|
|
|
exit 0
|