Update nftables.patch

This commit is contained in:
MDMCK10 2025-01-18 05:20:46 -05:00
parent fd14ffbea0
commit 33ebc46ac5

View file

@ -54,8 +54,8 @@
chain prerouting {
type nat hook prerouting priority dstnat; policy accept;
# Uncomment for E2Guardian
- # iifname $LAN ip daddr != 192.168.1.0/24 tcp dport 80 redirect to :8080
- # iifname $LAN ip daddr != 192.168.1.0/24 tcp dport 443 redirect to :8443
- iifname $LAN ip daddr != 192.168.1.0/24 tcp dport 80 redirect to :8080
- iifname $LAN ip daddr != 192.168.1.0/24 tcp dport 443 redirect to :8443
+ iifname $LAN ip daddr != $LANRANGE ip daddr != @blocklist tcp dport 80 redirect to :8080
+ iifname $LAN ip daddr != $LANRANGE ip daddr != @blocklist tcp dport 443 redirect to :8443
}