mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-16 02:25:29 +08:00
luci adbyby plus: avoid proxy from wan input
This commit is contained in:
parent
f517531aee
commit
18ae4fb6e3
@ -10,7 +10,7 @@ LUCI_DEPENDS:=+adbyby +wget +ipset +coreutils +coreutils-nohup +dnsmasq-full
|
|||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
PKG_NAME:=luci-app-adbyby-plus
|
PKG_NAME:=luci-app-adbyby-plus
|
||||||
PKG_VERSION:=2.0
|
PKG_VERSION:=2.0
|
||||||
PKG_RELEASE:=39
|
PKG_RELEASE:=40
|
||||||
|
|
||||||
include $(TOPDIR)/feeds/luci/luci.mk
|
include $(TOPDIR)/feeds/luci/luci.mk
|
||||||
|
|
||||||
|
@ -10,6 +10,14 @@ uci -q batch <<-EOF >/dev/null
|
|||||||
set firewall.adbyby.type=script
|
set firewall.adbyby.type=script
|
||||||
set firewall.adbyby.path=/usr/share/adbyby/firewall.include
|
set firewall.adbyby.path=/usr/share/adbyby/firewall.include
|
||||||
set firewall.adbyby.reload=1
|
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
|
commit firewall
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user