2 Commits

Author SHA1 Message Date
CodeRoK7
33c3c21982 Add config file zapret-hosts-user-exclude.txt 2025-11-21 21:30:50 +00:00
CodeRoK7
d36af9d33d Add filter mark for Zapret 2025-11-21 20:39:00 +00:00
3 changed files with 20 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ config main 'config'
option NFQWS_ENABLE '1' option NFQWS_ENABLE '1'
option DESYNC_MARK '0x40000000' option DESYNC_MARK '0x40000000'
option DESYNC_MARK_POSTNAT '0x20000000' option DESYNC_MARK_POSTNAT '0x20000000'
option FILTER_MARK ' '
option NFQWS_PORTS_TCP '80,443' option NFQWS_PORTS_TCP '80,443'
option NFQWS_PORTS_UDP '443' option NFQWS_PORTS_UDP '443'
option NFQWS_TCP_PKT_OUT '9' option NFQWS_TCP_PKT_OUT '9'

View File

@@ -0,0 +1,18 @@
127.0.0.0/8
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
169.254.0.0/16
::1
fc00::/7
fe80::/10
play.google.com
android.com
google-analytics.com
gstatic.com
gvt1.com
dl.google.com
dl-ssl.google.com
android.clients.google.com
gvt2.com
gvt3.com

View File

@@ -770,6 +770,7 @@ opkg upgrade luci-app-zapret
manage_package "zapret" "enable" "start" manage_package "zapret" "enable" "start"
wget -O "/etc/config/zapret" "$URL/config_files/zapret" wget -O "/etc/config/zapret" "$URL/config_files/zapret"
wget -O "/opt/zapret/ipset/zapret-hosts-user.txt" "$URL/config_files/zapret-hosts-user.txt" wget -O "/opt/zapret/ipset/zapret-hosts-user.txt" "$URL/config_files/zapret-hosts-user.txt"
wget -O "/opt/zapret/ipset/zapret-hosts-user-exclude.txt" "$URL/config_files/zapret-hosts-user-exclude.txt"
wget -O "/opt/zapret/init.d/openwrt/custom.d/50-stun4all" "$URL/config_files/50-stun4all" wget -O "/opt/zapret/init.d/openwrt/custom.d/50-stun4all" "$URL/config_files/50-stun4all"
wget -O "/opt/zapret/init.d/openwrt/custom.d/50-wg4all" "$URL/config_files/50-wg4all" wget -O "/opt/zapret/init.d/openwrt/custom.d/50-wg4all" "$URL/config_files/50-wg4all"
chmod +x "/opt/zapret/init.d/openwrt/custom.d/50-stun4all" chmod +x "/opt/zapret/init.d/openwrt/custom.d/50-stun4all"