mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
fix
This commit is contained in:
parent
c7452554c3
commit
8e368675b8
73 changed files with 126 additions and 13 deletions
0
contributors/cr3ative.md
Executable file → Normal file
0
contributors/cr3ative.md
Executable file → Normal file
0
contributors/example.md
Executable file → Normal file
0
contributors/example.md
Executable file → Normal file
0
contributors/flesser.md
Executable file → Normal file
0
contributors/flesser.md
Executable file → Normal file
0
contributors/ta264.md
Executable file → Normal file
0
contributors/ta264.md
Executable file → Normal file
0
contributors/yostyle.md
Executable file → Normal file
0
contributors/yostyle.md
Executable file → Normal file
62
fullconenat/Makefile
Normal file
62
fullconenat/Makefile
Normal file
|
@ -0,0 +1,62 @@
|
|||
#
|
||||
# Copyright (C) 2022 Chion Tang <tech@chionlab.moe>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=fullconenat
|
||||
PKG_RELEASE:=9
|
||||
|
||||
PKG_SOURCE_DATE:=2022-02-13
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/llccd/netfilter-full-cone-nat.git
|
||||
PKG_SOURCE_VERSION:=108a36cbdca17e68c9e6e7fd5e26156a88f738e8
|
||||
PKG_MIRROR_HASH:=00d749235271dee194dcd23c22e6e85207ea90192a62a110b2af0b4e4de1971f
|
||||
|
||||
PKG_LICENSE:=GPL-2.0
|
||||
PKG_LICENSE_FILES:=LICENSE
|
||||
PKG_MAINTAINER:=Chion Tang <tech@chionlab.moe>
|
||||
|
||||
include $(INCLUDE_DIR)/kernel.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define Package/iptables-mod-fullconenat
|
||||
SUBMENU:=Firewall
|
||||
SECTION:=net
|
||||
CATEGORY:=Network
|
||||
TITLE:=FULLCONENAT iptables extension
|
||||
DEPENDS:=+iptables +kmod-ipt-fullconenat
|
||||
endef
|
||||
|
||||
define Package/iptables-mod-fullconenat/install
|
||||
$(INSTALL_DIR) $(1)/usr/lib/iptables
|
||||
$(INSTALL_BIN) $(PKG_BUILD_DIR)/libipt_FULLCONENAT.so $(1)/usr/lib/iptables
|
||||
endef
|
||||
|
||||
define KernelPackage/ipt-fullconenat
|
||||
SUBMENU:=Netfilter Extensions
|
||||
TITLE:=FULLCONENAT netfilter module
|
||||
DEPENDS:=+kmod-nf-ipt +kmod-nf-nat
|
||||
KCONFIG:= \
|
||||
CONFIG_NF_CONNTRACK_EVENTS=y \
|
||||
CONFIG_NF_CONNTRACK_CHAIN_EVENTS=y
|
||||
FILES:=$(PKG_BUILD_DIR)/xt_FULLCONENAT.ko
|
||||
endef
|
||||
|
||||
include $(INCLUDE_DIR)/kernel-defaults.mk
|
||||
|
||||
define Build/Compile
|
||||
+$(MAKE) $(PKG_JOBS) -C "$(LINUX_DIR)" \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
ARCH="$(LINUX_KARCH)" \
|
||||
M="$(PKG_BUILD_DIR)" \
|
||||
EXTRA_CFLAGS="$(BUILDFLAGS)" \
|
||||
modules
|
||||
$(call Build/Compile/Default)
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,ipt-fullconenat))
|
||||
$(eval $(call BuildPackage,iptables-mod-fullconenat))
|
20
fullconenat/patches/001-fix-init-Repeat-definition.patch
Normal file
20
fullconenat/patches/001-fix-init-Repeat-definition.patch
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- a/libip6t_FULLCONENAT.c
|
||||
+++ b/libip6t_FULLCONENAT.c
|
||||
@@ -214,6 +214,7 @@ static struct xtables_target fullconenat_tg_reg = {
|
||||
.x6_options = FULLCONENAT_opts,
|
||||
};
|
||||
|
||||
+#define _init __attribute__((constructor)) _INIT
|
||||
void _init(void)
|
||||
{
|
||||
xtables_register_target(&fullconenat_tg_reg);
|
||||
--- a/libipt_FULLCONENAT.c
|
||||
+++ b/libipt_FULLCONENAT.c
|
||||
@@ -235,6 +235,7 @@ static struct xtables_target fullconenat_tg_reg = {
|
||||
.x6_options = FULLCONENAT_opts,
|
||||
};
|
||||
|
||||
+#define _init __attribute__((constructor)) _INIT
|
||||
void _init(void)
|
||||
{
|
||||
xtables_register_target(&fullconenat_tg_reg);
|
26
fullconenat/patches/001-linux-6.1-support.patch
Normal file
26
fullconenat/patches/001-linux-6.1-support.patch
Normal file
|
@ -0,0 +1,26 @@
|
|||
--- a/xt_FULLCONENAT.c
|
||||
+++ b/xt_FULLCONENAT.c
|
||||
@@ -325,7 +325,11 @@
|
||||
/* for now we do the same thing for both --random and --random-fully */
|
||||
|
||||
/* select a random starting point */
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
||||
+ start = (uint16_t)(get_random_u32() % (u32)range_size);
|
||||
+#else
|
||||
start = (uint16_t)(prandom_u32() % (u32)range_size);
|
||||
+#endif
|
||||
} else {
|
||||
|
||||
if ((original_port >= min && original_port <= min + range_size - 1)
|
||||
@@ -995,7 +999,11 @@
|
||||
/* for now we do the same thing for both --random and --random-fully */
|
||||
|
||||
/* select a random starting point */
|
||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0)
|
||||
+ start = (uint16_t)(get_random_u32() % (u32)range_size);
|
||||
+#else
|
||||
start = (uint16_t)(prandom_u32() % (u32)range_size);
|
||||
+#endif
|
||||
} else {
|
||||
|
||||
if ((original_port >= min && original_port <= min + range_size - 1)
|
6
fullconenat/src/Makefile
Normal file
6
fullconenat/src/Makefile
Normal file
|
@ -0,0 +1,6 @@
|
|||
libipt_FULLCONENAT.so: libipt_FULLCONENAT.o
|
||||
$(CC) -shared -lxtables -o $@ $^;
|
||||
libipt_FULLCONENAT.o: libipt_FULLCONENAT.c
|
||||
$(CC) ${CFLAGS} -fPIC -D_INIT=$*_init -c -o $@ $<;
|
||||
|
||||
obj-m += xt_FULLCONENAT.o
|
0
ipcalc/Makefile
Executable file → Normal file
0
ipcalc/Makefile
Executable file → Normal file
0
iperf3/Makefile
Executable file → Normal file
0
iperf3/Makefile
Executable file → Normal file
0
iperf3/patches/add-MPTCP-support.patch
Executable file → Normal file
0
iperf3/patches/add-MPTCP-support.patch
Executable file → Normal file
0
iproute2/Makefile
Executable file → Normal file
0
iproute2/Makefile
Executable file → Normal file
0
iproute2/patches/100-configure.patch
Executable file → Normal file
0
iproute2/patches/100-configure.patch
Executable file → Normal file
0
iproute2/patches/110-darwin_fixes.patch
Executable file → Normal file
0
iproute2/patches/110-darwin_fixes.patch
Executable file → Normal file
0
iproute2/patches/115-add-config-xtlibdir.patch
Executable file → Normal file
0
iproute2/patches/115-add-config-xtlibdir.patch
Executable file → Normal file
0
iproute2/patches/120-no_arpd_ifstat_rtacct_lnstat.patch
Executable file → Normal file
0
iproute2/patches/120-no_arpd_ifstat_rtacct_lnstat.patch
Executable file → Normal file
0
iproute2/patches/130-no_netem_tipc_dcb_man_vdpa.patch
Executable file → Normal file
0
iproute2/patches/130-no_netem_tipc_dcb_man_vdpa.patch
Executable file → Normal file
0
iproute2/patches/140-allow_pfifo_fast.patch
Executable file → Normal file
0
iproute2/patches/140-allow_pfifo_fast.patch
Executable file → Normal file
0
iproute2/patches/140-keep_libmnl_optional.patch
Executable file → Normal file
0
iproute2/patches/140-keep_libmnl_optional.patch
Executable file → Normal file
0
iproute2/patches/145-keep_libelf_optional.patch
Executable file → Normal file
0
iproute2/patches/145-keep_libelf_optional.patch
Executable file → Normal file
0
iproute2/patches/150-keep_libcap_optional.patch
Executable file → Normal file
0
iproute2/patches/150-keep_libcap_optional.patch
Executable file → Normal file
0
iproute2/patches/155-keep_tirpc_optional.patch
Executable file → Normal file
0
iproute2/patches/155-keep_tirpc_optional.patch
Executable file → Normal file
0
iproute2/patches/160-libnetlink-pic.patch
Executable file → Normal file
0
iproute2/patches/160-libnetlink-pic.patch
Executable file → Normal file
0
iproute2/patches/170-ip_tiny.patch
Executable file → Normal file
0
iproute2/patches/170-ip_tiny.patch
Executable file → Normal file
0
iproute2/patches/175-reduce-dynamic-syms.patch
Executable file → Normal file
0
iproute2/patches/175-reduce-dynamic-syms.patch
Executable file → Normal file
0
iproute2/patches/180-drop_FAILED_POLICY.patch
Executable file → Normal file
0
iproute2/patches/180-drop_FAILED_POLICY.patch
Executable file → Normal file
0
iproute2/patches/190-fix-nls-rpath-link.patch
Executable file → Normal file
0
iproute2/patches/190-fix-nls-rpath-link.patch
Executable file → Normal file
0
iproute2/patches/195-build_variant_ip_tc.patch
Executable file → Normal file
0
iproute2/patches/195-build_variant_ip_tc.patch
Executable file → Normal file
0
iproute2/patches/200-drop_libbsd_dependency.patch
Executable file → Normal file
0
iproute2/patches/200-drop_libbsd_dependency.patch
Executable file → Normal file
0
iproute2/patches/300-selinux-configurable.patch
Executable file → Normal file
0
iproute2/patches/300-selinux-configurable.patch
Executable file → Normal file
0
libmbim/Makefile
Executable file → Normal file
0
libmbim/Makefile
Executable file → Normal file
0
libqmi/Config.in
Executable file → Normal file
0
libqmi/Config.in
Executable file → Normal file
0
libqmi/Makefile
Executable file → Normal file
0
libqmi/Makefile
Executable file → Normal file
0
mptcp/Makefile
Executable file → Normal file
0
mptcp/Makefile
Executable file → Normal file
0
mptcp/files/etc/hotplug.d/iface/30-mptcp
Executable file → Normal file
0
mptcp/files/etc/hotplug.d/iface/30-mptcp
Executable file → Normal file
|
@ -121,19 +121,6 @@ if ([ -f /etc/init.d/shadowsocks-libev ] && [ "$(uci -q get shadowsocks-libev.ss
|
|||
[ -n "$(uci -q changes openmptcprouter)" ] && uci -q commit openmptcprouter
|
||||
fi
|
||||
|
||||
restart_omrtracker() {
|
||||
[ -n "$(pgrep -f "omr-tracker $1)" ] && return
|
||||
config_get multipath "$1" multipath
|
||||
config_get ifenabled "$1" auto
|
||||
[ -z "$multipath" ] || [ "$multipath" = "off" ] && return
|
||||
[ "$ifenabled" = "0" ] && return
|
||||
/etc/init.d/omr-tracker start_interface "$1"
|
||||
sleep 10
|
||||
}
|
||||
|
||||
config_load network
|
||||
config_foreach restart_omrtracker interface
|
||||
|
||||
if [ -f /etc/init.d/shadowsocks-libev ] && [ "$(uci -q get shadowsocks-libev.sss0.disabled)" != "1" ] && [ "$(uci -q get shadowsocks-libev.sss0.key)" != "" ] && [ "$(uci -q get shadowsocks-libev.sss0.server)" != "" ] && [ "$(uci -q get shadowsocks-libev.sss0.server)" != "192.18.1.3" ] && [ "$(pgrep -f omr-tracker-ss)" = "" ] && [ "$(pgrep -f '/etc/init.d/omr-tracker')" = "" ]; then
|
||||
_log "Can't find omr-tracker-ss, restart omr-tracker..."
|
||||
/etc/init.d/omr-tracker restart 2>&1 >/dev/null
|
||||
|
|
0
mptcpd/Makefile
Executable file → Normal file
0
mptcpd/Makefile
Executable file → Normal file
0
mptcpd/patches/endian.patch
Executable file → Normal file
0
mptcpd/patches/endian.patch
Executable file → Normal file
0
mptcpd/patches/ndiffports.patch
Executable file → Normal file
0
mptcpd/patches/ndiffports.patch
Executable file → Normal file
0
mptcpd/patches/stub_error_h.patch
Executable file → Normal file
0
mptcpd/patches/stub_error_h.patch
Executable file → Normal file
0
msmtp/Makefile
Executable file → Normal file
0
msmtp/Makefile
Executable file → Normal file
0
ndpi-netfilter2/Makefile
Executable file → Normal file
0
ndpi-netfilter2/Makefile
Executable file → Normal file
0
ndpi-netfilter2/patches/001-remove-request-module-nf_conntrack-ip_tables-ip6_tables.patch
Executable file → Normal file
0
ndpi-netfilter2/patches/001-remove-request-module-nf_conntrack-ip_tables-ip6_tables.patch
Executable file → Normal file
0
ndpi-netfilter2/patches/002-no-livepatch-required.patch
Executable file → Normal file
0
ndpi-netfilter2/patches/002-no-livepatch-required.patch
Executable file → Normal file
0
ndpi-netfilter2/patches/003-bittorrent-compilation-remove-ipv6.patch
Executable file → Normal file
0
ndpi-netfilter2/patches/003-bittorrent-compilation-remove-ipv6.patch
Executable file → Normal file
0
ndpi-netfilter2/patches/outline-atomics.patch
Executable file → Normal file
0
ndpi-netfilter2/patches/outline-atomics.patch
Executable file → Normal file
0
ndpi-netfilter2/patches/skbuff-check_fix.patch
Executable file → Normal file
0
ndpi-netfilter2/patches/skbuff-check_fix.patch
Executable file → Normal file
0
openvpn/Config-mbedtls.in
Executable file → Normal file
0
openvpn/Config-mbedtls.in
Executable file → Normal file
0
openvpn/Config-openssl.in
Executable file → Normal file
0
openvpn/Config-openssl.in
Executable file → Normal file
0
openvpn/Config-wolfssl.in
Executable file → Normal file
0
openvpn/Config-wolfssl.in
Executable file → Normal file
0
openvpn/Makefile
Executable file → Normal file
0
openvpn/Makefile
Executable file → Normal file
0
openvpn/files/etc/hotplug.d/openvpn/01-user
Executable file → Normal file
0
openvpn/files/etc/hotplug.d/openvpn/01-user
Executable file → Normal file
0
openvpn/files/etc/openvpn.user
Executable file → Normal file
0
openvpn/files/etc/openvpn.user
Executable file → Normal file
0
openvpn/files/lib/functions/openvpn.sh
Executable file → Normal file
0
openvpn/files/lib/functions/openvpn.sh
Executable file → Normal file
11
openvpn/files/openvpn.config
Executable file → Normal file
11
openvpn/files/openvpn.config
Executable file → Normal file
|
@ -279,6 +279,17 @@ config openvpn sample_server
|
|||
# Use BF-CBC as fallback
|
||||
# option data_ciphers_fallback 'BF-CBC'
|
||||
|
||||
# OpenVPN versions 2.4 and later will attempt to
|
||||
# automatically negotiate the most secure cipher
|
||||
# between the client and server, regardless of a
|
||||
# configured "option cipher" (see below).
|
||||
# Automatic negotiation is recommended.
|
||||
#
|
||||
# Uncomment this option to disable this behavior,
|
||||
# and force all OpenVPN peers to use the configured
|
||||
# cipher option instead (not recommended).
|
||||
# option ncp_disable
|
||||
|
||||
# Enable compression on the VPN link.
|
||||
# If you enable it here, you must also
|
||||
# enable it in the client config file.
|
||||
|
|
0
openvpn/files/openvpn.init
Executable file → Normal file
0
openvpn/files/openvpn.init
Executable file → Normal file
1
openvpn/files/openvpn.options
Executable file → Normal file
1
openvpn/files/openvpn.options
Executable file → Normal file
|
@ -166,6 +166,7 @@ mlock
|
|||
mtu_test
|
||||
multihome
|
||||
mute_replay_warnings
|
||||
ncp_disable
|
||||
nobind
|
||||
opt_verify
|
||||
passtos
|
||||
|
|
0
openvpn/files/openvpn.upgrade
Executable file → Normal file
0
openvpn/files/openvpn.upgrade
Executable file → Normal file
0
openvpn/files/usr/libexec/openvpn-hotplug
Executable file → Normal file
0
openvpn/files/usr/libexec/openvpn-hotplug
Executable file → Normal file
0
openvpn/patches/100-mbedtls-disable-runtime-version-check.patch
Executable file → Normal file
0
openvpn/patches/100-mbedtls-disable-runtime-version-check.patch
Executable file → Normal file
0
openvpn/patches/101-Fix-EVP_PKEY_CTX_-compilation-with-wolfSSL.patch
Executable file → Normal file
0
openvpn/patches/101-Fix-EVP_PKEY_CTX_-compilation-with-wolfSSL.patch
Executable file → Normal file
0
openvpn/patches/102-Disable-external-ec-key-support-when-building-with-wolfSSL.patch
Executable file → Normal file
0
openvpn/patches/102-Disable-external-ec-key-support-when-building-with-wolfSSL.patch
Executable file → Normal file
0
openvpn/patches/103-define-LN_serialNumber-for-wolfSSL.patch
Executable file → Normal file
0
openvpn/patches/103-define-LN_serialNumber-for-wolfSSL.patch
Executable file → Normal file
0
openvpn/patches/900-add-MPTCP-support.patch
Executable file → Normal file
0
openvpn/patches/900-add-MPTCP-support.patch
Executable file → Normal file
0
protobuf/Makefile
Executable file → Normal file
0
protobuf/Makefile
Executable file → Normal file
0
rust/Makefile
Executable file → Normal file
0
rust/Makefile
Executable file → Normal file
0
rust/files/cargo-config
Executable file → Normal file
0
rust/files/cargo-config
Executable file → Normal file
0
rust/patches/0001-Update-xz2-and-use-it-static.patch
Executable file → Normal file
0
rust/patches/0001-Update-xz2-and-use-it-static.patch
Executable file → Normal file
0
rust/patches/0002-Bumped-libc-version.patch
Executable file → Normal file
0
rust/patches/0002-Bumped-libc-version.patch
Executable file → Normal file
0
rust/rust-host-build.mk
Executable file → Normal file
0
rust/rust-host-build.mk
Executable file → Normal file
0
rust/rust-package.mk
Executable file → Normal file
0
rust/rust-package.mk
Executable file → Normal file
0
rust/rust-values.mk
Executable file → Normal file
0
rust/rust-values.mk
Executable file → Normal file
Loading…
Add table
Add a link
Reference in a new issue