CDN Cache: - Migrate from nginx to Squid proxy for better caching - Add aggressive caching rules for Windows Update, Linux repos, Steam, Apple - Proper firewall integration via UCI (transparent proxy) - Real-time stats from Squid access logs Network Modes: - Complete UI rework with MirrorBox dark theme - 9 network modes with emojis and descriptions - Dynamic CSS animations and modern styling Fixes: - Fix jshn boolean handling in secubox-recovery (1/0 vs true/false) - Fix nDPId RPCD to use netifyd as fallback DPI provider - Update media-flow and security-threats dashboards Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
18 lines
628 B
Bash
18 lines
628 B
Bash
#!/bin/sh
|
|
# CDN Cache Firewall Setup - Adds redirect rule for transparent proxy
|
|
|
|
# Check if redirect rule already exists
|
|
if ! uci -q get firewall.cdn_cache_redirect >/dev/null; then
|
|
uci set firewall.cdn_cache_redirect=redirect
|
|
uci set firewall.cdn_cache_redirect.name='CDN-Cache-Transparent'
|
|
uci set firewall.cdn_cache_redirect.src='lan'
|
|
uci set firewall.cdn_cache_redirect.proto='tcp'
|
|
uci set firewall.cdn_cache_redirect.src_dport='80'
|
|
uci set firewall.cdn_cache_redirect.dest_port='3129'
|
|
uci set firewall.cdn_cache_redirect.target='DNAT'
|
|
uci set firewall.cdn_cache_redirect.enabled='0'
|
|
uci commit firewall
|
|
fi
|
|
|
|
exit 0
|