luci adbyby plus: avoid proxy from wan input

This commit is contained in:
coolsnowwolf 2018-12-08 09:09:00 +08:00
parent f517531aee
commit 18ae4fb6e3
2 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,7 @@ LUCI_DEPENDS:=+adbyby +wget +ipset +coreutils +coreutils-nohup +dnsmasq-full
LUCI_PKGARCH:=all
PKG_NAME:=luci-app-adbyby-plus
PKG_VERSION:=2.0
PKG_RELEASE:=39
PKG_RELEASE:=40
include $(TOPDIR)/feeds/luci/luci.mk

View File

@ -10,6 +10,14 @@ uci -q batch <<-EOF >/dev/null
set firewall.adbyby.type=script
set firewall.adbyby.path=/usr/share/adbyby/firewall.include
set firewall.adbyby.reload=1
delete firewall.adblock
add firewall rule
rename firewall.@rule[-1]="adblock"
set firewall.@rule[-1].name="adblock"
set firewall.@rule[-1].target="DROP"
set firewall.@rule[-1].src="wan"
set firewall.@rule[-1].proto="tcp"
set firewall.@rule[-1].dest_port="8118"
commit firewall
EOF