update 2022-07-12 08:54:09

This commit is contained in:
github-actions[bot] 2022-07-12 08:54:09 +08:00
parent 02ff85a9fa
commit 7df6200cb6
14 changed files with 1593 additions and 1885 deletions

File diff suppressed because it is too large Load Diff

View File

@ -6,8 +6,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall
PKG_VERSION:=4.54
PKG_RELEASE:=3
PKG_VERSION:=4.55
PKG_RELEASE:=1
PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_$(PKG_NAME)_Transparent_Proxy \

View File

@ -19,6 +19,7 @@ local local_http_address = var["-local_http_address"] or "0.0.0.0"
local local_http_port = var["-local_http_port"]
local local_http_username = var["-local_http_username"]
local local_http_password = var["-local_http_password"]
local tcp_proxy_way = var["-tcp_proxy_way"]
local server_host = var["-server_host"] or node.address
local server_port = var["-server_port"] or node.port
@ -57,7 +58,11 @@ local config = {
user = (local_http_username and local_http_password) and local_http_username,
password = (local_http_username and local_http_password) and local_http_password,
} or nil,
tproxy_tcp = (local_tcp_redir_port) and {
redirect_tcp = ("redirect" == tcp_proxy_way and local_tcp_redir_port) and {
listen = "0.0.0.0:" .. local_tcp_redir_port,
timeout = 300
} or nil,
tproxy_tcp = ("tproxy" == tcp_proxy_way and local_tcp_redir_port) and {
listen = "0.0.0.0:" .. local_tcp_redir_port,
timeout = 300
} or nil,

View File

@ -796,6 +796,7 @@ run_redir() {
UDP_NODE="nil"
_extra_param="${_extra_param} -local_udp_redir_port $local_port"
}
_extra_param="${_extra_param} -tcp_proxy_way $tcp_proxy_way"
lua $API_GEN_HYSTERIA -node $node ${_extra_param} > $config_file
ln_run "$(first_type $(config_t_get global_app hysteria_file))" "hysteria" $log_file -c "$config_file" client
;;
@ -1398,8 +1399,8 @@ TCP_UDP=0
[ "$TCP_NODE" == "nil" -a "$UDP_NODE" == "nil" ] && NO_PROXY=1
[ "$(config_get_type $TCP_NODE nil)" == "nil" -a "$(config_get_type $UDP_NODE nil)" == "nil" ] && NO_PROXY=1
tcp_proxy_way=$(config_t_get global_forwarding tcp_proxy_way redirect)
REDIRECT_LIST="socks ss ss-rust ssr v2ray xray trojan-plus trojan-go naiveproxy"
TPROXY_LIST="socks ss ss-rust ssr v2ray xray trojan-plus brook trojan-go hysteria"
REDIRECT_LIST="socks ss ss-rust ssr v2ray xray trojan-go trojan-plus naiveproxy hysteria"
TPROXY_LIST="brook socks ss ss-rust ssr v2ray xray trojan-go trojan-plus hysteria"
RESOLVFILE=/tmp/resolv.conf.d/resolv.conf.auto
[ -f "${RESOLVFILE}" ] && [ -s "${RESOLVFILE}" ] || RESOLVFILE=/tmp/resolv.conf.auto
TCP_REDIR_PORTS=$(config_t_get global_forwarding tcp_redir_ports '80,443')

File diff suppressed because it is too large Load Diff

View File

@ -133,7 +133,6 @@
101.4.0.0/14
101.40.0.0/15
101.42.0.0/15
101.45.0.0/16
101.46.0.0/15
101.48.0.0/15
101.50.12.0/22
@ -286,7 +285,6 @@
103.108.212.0/22
103.108.224.0/22
103.108.244.0/22
103.108.251.0/24
103.108.52.0/22
103.109.106.0/23
103.109.20.0/22
@ -297,8 +295,6 @@
103.11.168.0/22
103.11.180.0/22
103.110.116.0/22
103.110.127.0/24
103.110.128.0/23
103.110.132.0/22
103.110.136.0/22
103.110.152.0/22
@ -316,7 +312,6 @@
103.112.140.0/22
103.112.172.0/22
103.112.184.0/22
103.112.208.0/22
103.112.28.0/22
103.112.68.0/22
103.112.72.0/22
@ -787,7 +782,6 @@
103.163.46.0/23
103.163.74.0/23
103.164.178.0/23
103.164.226.0/23
103.164.32.0/23
103.164.4.0/23
103.164.40.0/23
@ -879,6 +873,10 @@
103.186.162.0/23
103.186.228.0/23
103.186.4.0/23
103.189.140.0/23
103.189.152.0/23
103.189.154.0/23
103.189.92.0/23
103.19.12.0/22
103.19.232.0/22
103.19.40.0/22
@ -886,6 +884,12 @@
103.19.64.0/22
103.19.68.0/22
103.19.72.0/22
103.190.104.0/23
103.190.116.0/23
103.190.118.0/23
103.190.122.0/23
103.190.20.0/23
103.190.71.0/24
103.192.0.0/22
103.192.100.0/22
103.192.104.0/22
@ -1854,6 +1858,7 @@
103.241.72.0/22
103.241.92.0/22
103.241.96.0/22
103.242.12.0/22
103.242.128.0/22
103.242.132.0/22
103.242.160.0/22
@ -3160,7 +3165,6 @@
103.88.16.0/22
103.88.164.0/22
103.88.176.0/22
103.88.184.0/22
103.88.188.0/22
103.88.20.0/22
103.88.212.0/22
@ -3223,7 +3227,6 @@
103.91.200.0/22
103.91.208.0/22
103.91.212.0/22
103.91.219.0/24
103.91.236.0/22
103.91.252.0/22
103.91.36.0/22
@ -3501,6 +3504,7 @@
111.72.0.0/13
111.85.0.0/16
111.91.192.0/19
111.92.240.0/22
111.92.248.0/22
111.92.252.0/22
112.0.0.0/10
@ -3589,12 +3593,14 @@
114.119.208.0/20
114.119.224.0/19
114.132.0.0/16
114.134.188.0/23
114.135.0.0/16
114.138.0.0/15
114.141.128.0/18
114.141.64.0/21
114.141.80.0/22
114.141.84.0/22
114.142.136.0/21
114.196.0.0/15
114.198.248.0/21
114.208.0.0/14
@ -3683,7 +3689,6 @@
116.204.216.0/22
116.204.232.0/22
116.205.0.0/16
116.206.176.0/22
116.206.92.0/22
116.207.0.0/16
116.208.0.0/14
@ -8370,6 +8375,7 @@
52.80.0.0/15
52.82.0.0/15
54.222.0.0/15
57.176.0.0/15
58.100.0.0/15
58.116.0.0/14
58.128.0.0/13

View File

@ -77,7 +77,6 @@
2001:df4:1880::/48
2001:df4:2780::/48
2001:df4:2e80::/48
2001:df4:2f00::/48
2001:df4:3c80::/48
2001:df4:3d80::/48
2001:df4:4b80::/48
@ -263,6 +262,7 @@
2400:77c0::/32
2400:79c0::/32
2400:7ac0::/32
2400:7ae0::/32
2400:7bc0::/32
2400:7f80::/32
2400:7fc0::/32
@ -271,14 +271,23 @@
2400:82c0::/32
2400:8580::/32
2400:8600::/32
2400:86a0::/32
2400:86e0::/32
2400:8780::/32
2400:87c0::/32
2400:8840::/32
2400:8920::/32
2400:8980::/32
2400:89c0::/32
2400:8ae0::/32
2400:8be0::/32
2400:8ce0::/32
2400:8e00::/32
2400:8e60::/32
2400:8f00::/32
2400:8f60::/32
2400:8fc0::/32
2400:9020::/32
2400:9040::/32
2400:9340::/32
2400:9580::/32
@ -332,7 +341,6 @@
2400:ce00::/32
2400:ce40::/32
2400:cf40::/32
2400:cf80::/32
2400:cfc0::/32
2400:d0c0::/32
2400:d100::/32
@ -720,7 +728,6 @@
2402:b080::/32
2402:b200::/32
2402:b380::/32
2402:b3c0::/32
2402:b440::/32
2402:b6c0::/32
2402:b880::/32

File diff suppressed because it is too large Load Diff

View File

@ -787,7 +787,7 @@ local function processData(szType, content, add_mode, add_from)
params[t[1]] = t[2]
end
end
result.hysteria_protocol = params.protocol
result.protocol = params.protocol
result.hysteria_obfs = params.obfsParam
result.hysteria_auth_type = "string"
result.hysteria_auth_password = params.auth

View File

@ -5,8 +5,8 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=luci-app-passwall2
PKG_VERSION:=1.3
PKG_RELEASE:=21
PKG_VERSION:=1.4
PKG_RELEASE:=1
PKG_CONFIG_DEPENDS:= \
CONFIG_PACKAGE_$(PKG_NAME)_Transparent_Proxy \

View File

@ -9,8 +9,6 @@ if not node_id then
return
end
local node = uci:get_all("passwall2", node_id)
local local_tcp_redir_port = var["-local_tcp_redir_port"]
local local_udp_redir_port = var["-local_udp_redir_port"]
local local_socks_address = var["-local_socks_address"] or "0.0.0.0"
local local_socks_port = var["-local_socks_port"]
local local_socks_username = var["-local_socks_username"]
@ -56,14 +54,6 @@ local config = {
disable_udp = false,
user = (local_http_username and local_http_password) and local_http_username,
password = (local_http_username and local_http_password) and local_http_password,
} or nil,
tproxy_tcp = (local_tcp_redir_port) and {
listen = "0.0.0.0:" .. local_tcp_redir_port,
timeout = 300
} or nil,
tproxy_udp = (local_udp_redir_port) and {
listen = "0.0.0.0:" .. local_udp_redir_port,
timeout = 60
} or nil
}

View File

@ -22,10 +22,6 @@ local local_http_address = var["-local_http_address"] or "0.0.0.0"
local local_http_port = var["-local_http_port"]
local local_http_username = var["-local_http_username"]
local local_http_password = var["-local_http_password"]
local local_tcp_redir_port = var["-local_tcp_redir_port"]
local local_tcp_redir_address = var["-local_tcp_redir_address"] or "0.0.0.0"
local local_udp_redir_port = var["-local_udp_redir_port"]
local local_udp_redir_address = var["-local_udp_redir_address"] or "0.0.0.0"
if api.is_ipv6(server_host) then
server_host = api.get_ipv6_only(server_host)
@ -41,8 +37,7 @@ local config = {
method = node.method,
timeout = tonumber(node.timeout),
fast_open = (node.tcp_fast_open and node.tcp_fast_open == "true") and true or false,
reuse_port = true,
tcp_tproxy = var["-tcp_tproxy"] and true or nil
reuse_port = true
}
if node.type == "SS" then
@ -86,23 +81,6 @@ elseif node.type == "SS-Rust" then
local_port = tonumber(local_http_port)
})
end
if local_tcp_redir_address and local_tcp_redir_port then
table.insert(config.locals, {
protocol = "redir",
mode = "tcp_only",
tcp_redir = var["-tcp_tproxy"] and "tproxy" or nil,
local_address = local_tcp_redir_address,
local_port = tonumber(local_tcp_redir_port)
})
end
if local_udp_redir_address and local_udp_redir_port then
table.insert(config.locals, {
protocol = "redir",
mode = "udp_only",
local_address = local_udp_redir_address,
local_port = tonumber(local_udp_redir_port)
})
end
end
print(jsonc.stringify(config, 1))

View File

@ -676,7 +676,7 @@ local function processData(szType, content, add_mode, add_from)
params[t[1]] = t[2]
end
end
result.hysteria_protocol = params.protocol
result.protocol = params.protocol
result.hysteria_obfs = params.obfsParam
result.hysteria_auth_type = "string"
result.hysteria_auth_password = params.auth

View File

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mosdns
PKG_VERSION:=62a54c7
PKG_VERSION:=e012328
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE:=mosdns-$(PKG_VERSION).tar.gz