From 18ae4fb6e3f9756cd99a784e96c8b066c30f9ab2 Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Sat, 8 Dec 2018 09:09:00 +0800 Subject: [PATCH] luci adbyby plus: avoid proxy from wan input --- package/lean/luci-app-adbyby-plus/Makefile | 2 +- .../luci-app-adbyby-plus/root/etc/uci-defaults/adbyby | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/package/lean/luci-app-adbyby-plus/Makefile b/package/lean/luci-app-adbyby-plus/Makefile index 63ce76a56..f1eba52cc 100644 --- a/package/lean/luci-app-adbyby-plus/Makefile +++ b/package/lean/luci-app-adbyby-plus/Makefile @@ -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 diff --git a/package/lean/luci-app-adbyby-plus/root/etc/uci-defaults/adbyby b/package/lean/luci-app-adbyby-plus/root/etc/uci-defaults/adbyby index fb4b36f39..30d429cb8 100755 --- a/package/lean/luci-app-adbyby-plus/root/etc/uci-defaults/adbyby +++ b/package/lean/luci-app-adbyby-plus/root/etc/uci-defaults/adbyby @@ -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