mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-03 08:03:56 +08:00
🎉 Sync 2026-07-01 00:17:42
This commit is contained in:
1 parent
0486fb03d6
commit
ea4844017b
6 files changed
+28
-7
No files matched your search
@@ -7,8 +7,8 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=luci-app-passwall
|
PKG_NAME:=luci-app-passwall
|
||||||
PKG_VERSION:=26.6.2
|
PKG_VERSION:=26.7.1
|
||||||
PKG_RELEASE:=170
|
PKG_RELEASE:=171
|
||||||
PKG_PO_VERSION:=$(PKG_VERSION)
|
PKG_PO_VERSION:=$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
|
|||||||
@@ -829,8 +829,19 @@ update_wan_sets() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_tproxy_sysctl() {
|
||||||
|
# Disable IPv4 rp_filter for TPROXY compatibility.
|
||||||
|
sysctl -w net.ipv4.conf.all.rp_filter=0 >/dev/null 2>&1
|
||||||
|
sysctl -w net.ipv4.conf.default.rp_filter=0 >/dev/null 2>&1
|
||||||
|
local f
|
||||||
|
for f in /proc/sys/net/ipv4/conf/*/rp_filter; do
|
||||||
|
echo 0 > "$f" 2>/dev/null
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
add_firewall_rule() {
|
add_firewall_rule() {
|
||||||
echolog "开始加载 iptables 防火墙规则..."
|
echolog "开始加载 iptables 防火墙规则..."
|
||||||
|
set_tproxy_sysctl
|
||||||
ipset -! create $IPSET_LOCAL nethash maxelem 1048576
|
ipset -! create $IPSET_LOCAL nethash maxelem 1048576
|
||||||
ipset -! create $IPSET_WAN nethash maxelem 1048576
|
ipset -! create $IPSET_WAN nethash maxelem 1048576
|
||||||
ipset -! create $IPSET_LAN nethash maxelem 1048576
|
ipset -! create $IPSET_LAN nethash maxelem 1048576
|
||||||
|
|||||||
@@ -891,11 +891,22 @@ update_wan_sets() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_tproxy_sysctl() {
|
||||||
|
# Disable IPv4 rp_filter for TPROXY compatibility.
|
||||||
|
sysctl -w net.ipv4.conf.all.rp_filter=0 >/dev/null 2>&1
|
||||||
|
sysctl -w net.ipv4.conf.default.rp_filter=0 >/dev/null 2>&1
|
||||||
|
local f
|
||||||
|
for f in /proc/sys/net/ipv4/conf/*/rp_filter; do
|
||||||
|
echo 0 > "$f" 2>/dev/null
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
add_firewall_rule() {
|
add_firewall_rule() {
|
||||||
echolog "开始加载 nftables 防火墙规则..."
|
echolog "开始加载 nftables 防火墙规则..."
|
||||||
gen_nft_tables
|
gen_nft_tables
|
||||||
add_script_mwan3
|
add_script_mwan3
|
||||||
mwan3_start
|
mwan3_start
|
||||||
|
set_tproxy_sysctl
|
||||||
gen_nftset $NFTSET_WAN ipv4_addr 0 "-1"
|
gen_nftset $NFTSET_WAN ipv4_addr 0 "-1"
|
||||||
gen_nftset $NFTSET_VPS ipv4_addr 0 "-1"
|
gen_nftset $NFTSET_VPS ipv4_addr 0 "-1"
|
||||||
gen_nftset $NFTSET_GFW ipv4_addr "2d" 0
|
gen_nftset $NFTSET_GFW ipv4_addr "2d" 0
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ LUCI_TITLE:=luci-app-ssr-plus
|
|||||||
LUCI_PKGARCH:=all
|
LUCI_PKGARCH:=all
|
||||||
PKG_NAME:=luci-app-ssr-plus
|
PKG_NAME:=luci-app-ssr-plus
|
||||||
PKG_VERSION:=196
|
PKG_VERSION:=196
|
||||||
PKG_RELEASE:=35
|
PKG_RELEASE:=36
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \
|
CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \
|
||||||
|
|||||||
@@ -840,7 +840,6 @@ local function build_v2ray_mihomo_proxy(sid)
|
|||||||
proxy.down = string_or_nil(get_server_field(sid, "downlink_capacity", "")) and (get_server_field(sid, "downlink_capacity", "") .. " Mbps") or nil
|
proxy.down = string_or_nil(get_server_field(sid, "downlink_capacity", "")) and (get_server_field(sid, "downlink_capacity", "") .. " Mbps") or nil
|
||||||
proxy.sni = string_or_nil(get_server_field(sid, "tls_host", ""))
|
proxy.sni = string_or_nil(get_server_field(sid, "tls_host", ""))
|
||||||
proxy.fingerprint = string_or_nil(get_server_field(sid, "tls_CertSha", ""))
|
proxy.fingerprint = string_or_nil(get_server_field(sid, "tls_CertSha", ""))
|
||||||
proxy["cert-name"] = string_or_nil(get_server_field(sid, "tls_CertByName", ""))
|
|
||||||
proxy["skip-cert-verify"] = bool_enabled(get_server_field(sid, "insecure", "0"))
|
proxy["skip-cert-verify"] = bool_enabled(get_server_field(sid, "insecure", "0"))
|
||||||
local alpn = split_alpn(get_server_field(sid, "tls_alpn", ""))
|
local alpn = split_alpn(get_server_field(sid, "tls_alpn", ""))
|
||||||
if #alpn > 0 then
|
if #alpn > 0 then
|
||||||
|
|||||||
+3
-3
@@ -8,12 +8,12 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=torrserver
|
PKG_NAME:=torrserver
|
||||||
PKG_VERSION:=MatriX.141.9
|
PKG_VERSION:=MatriX.141.10
|
||||||
PKG_RELEASE:=10
|
PKG_RELEASE:=11
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/YouROK/TorrServer.git
|
PKG_SOURCE_URL:=https://github.com/YouROK/TorrServer.git
|
||||||
PKG_SOURCE_VERSION:=9ba8f2a8a37869eda85eb2f1deaac71e89a183af
|
PKG_SOURCE_VERSION:=394c915bfc64c8448a7da166e909da074420172e
|
||||||
PKG_MIRROR_HASH:=skip
|
PKG_MIRROR_HASH:=skip
|
||||||
|
|
||||||
PKG_MAINTAINER:=Konstantine Shevlakov <shevlakov@132lan.ru>
|
PKG_MAINTAINER:=Konstantine Shevlakov <shevlakov@132lan.ru>
|
||||||
|
|||||||
Reference in new issue
Block a user