mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-14 20:02:04 +08:00
luci-app-unblockmusic: add block NeteaseCloudMusic spec ip
This commit is contained in:
parent
9477f7695c
commit
6068dcfd6b
@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=luci-app-unblockmusic
|
PKG_NAME:=luci-app-unblockmusic
|
||||||
PKG_VERSION:=2.3.1
|
PKG_VERSION:=2.3.1
|
||||||
PKG_RELEASE:=5
|
PKG_RELEASE:=6
|
||||||
|
|
||||||
PKG_LICENSE:=Apache-2.0
|
PKG_LICENSE:=Apache-2.0
|
||||||
|
|
||||||
|
@ -28,12 +28,14 @@ add_rule()
|
|||||||
$ipt_n -A cloud_music -p tcp --dport 80 -j REDIRECT --to-ports 5201
|
$ipt_n -A cloud_music -p tcp --dport 80 -j REDIRECT --to-ports 5201
|
||||||
$ipt_n -A cloud_music -p tcp --dport 443 -j REDIRECT --to-ports 5202
|
$ipt_n -A cloud_music -p tcp --dport 443 -j REDIRECT --to-ports 5202
|
||||||
$ipt_n -I PREROUTING -p tcp -m set --match-set music dst -j cloud_music
|
$ipt_n -I PREROUTING -p tcp -m set --match-set music dst -j cloud_music
|
||||||
|
iptables -I INPUT -d 223.252.199.10 -j DROP
|
||||||
}
|
}
|
||||||
|
|
||||||
del_rule(){
|
del_rule(){
|
||||||
$ipt_n -D PREROUTING -p tcp -m set --match-set music dst -j cloud_music 2>/dev/null
|
$ipt_n -D PREROUTING -p tcp -m set --match-set music dst -j cloud_music 2>/dev/null
|
||||||
$ipt_n -F cloud_music 2>/dev/null
|
$ipt_n -F cloud_music 2>/dev/null
|
||||||
$ipt_n -X cloud_music 2>/dev/null
|
$ipt_n -X cloud_music 2>/dev/null
|
||||||
|
iptables -D INPUT -d 223.252.199.10 -j DROP 2>/dev/null
|
||||||
|
|
||||||
rm -f /tmp/dnsmasq.d/dnsmasq-163.conf
|
rm -f /tmp/dnsmasq.d/dnsmasq-163.conf
|
||||||
/etc/init.d/dnsmasq reload >/dev/null 2>&1
|
/etc/init.d/dnsmasq reload >/dev/null 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user