luci-app-ssr-plus: disable udp relay quic udp 443 for Chrome

This commit is contained in:
coolsnowwolf 2020-02-14 16:58:02 +08:00
parent 88277264a3
commit edd4009620
2 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-ssr-plus
PKG_RELEASE:=141
PKG_RELEASE:=142
PKG_VERSION:=1
include $(INCLUDE_DIR)/package.mk

View File

@ -188,6 +188,7 @@ tp_rule() {
ip route add local 0.0.0.0/0 dev lo table 100
local ipt="iptables -t mangle"
$ipt -N SS_SPEC_TPROXY
$ipt -A SS_SPEC_TPROXY -p udp --dport 443 -j DROP
$ipt -A SS_SPEC_TPROXY -p udp --dport 53 -j RETURN
$ipt -A SS_SPEC_TPROXY -p udp -d 0.0.0.0/8 -j RETURN
$ipt -A SS_SPEC_TPROXY -p udp -d 10.0.0.0/8 -j RETURN