1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

fix update

This commit is contained in:
suyuan 2023-11-25 14:34:53 +08:00
parent 9052ea7b82
commit 2e464fefde
873 changed files with 17721 additions and 7180 deletions

45
6in4/Makefile Normal file
View file

@ -0,0 +1,45 @@
#
# Copyright (C) 2010-2015 OpenWrt.org
# Copyright (C) 2018-2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org>
# - Added gateway setting
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=6in4
PKG_VERSION:=270
PKG_RELEASE:=2
PKG_LICENSE:=GPL-2.0
include $(INCLUDE_DIR)/package.mk
define Package/6in4
SECTION:=net
CATEGORY:=Network
DEPENDS:=@IPV6 +kmod-sit +uclient-fetch
TITLE:=IPv6-in-IPv4 configuration support
MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
PKGARCH:=all
endef
define Package/6in4/description
Provides support for 6in4 tunnels in /etc/config/network.
Refer to http://wiki.openwrt.org/doc/uci/network for
configuration details.
endef
define Build/Compile
endef
define Build/Configure
endef
define Package/6in4/install
$(INSTALL_DIR) $(1)/lib/netifd/proto
$(INSTALL_BIN) ./files/6in4.sh $(1)/lib/netifd/proto/6in4.sh
endef
$(eval $(call BuildPackage,6in4))

149
6in4/files/6in4.sh Executable file
View file

@ -0,0 +1,149 @@
#!/bin/sh
# 6in4.sh - IPv6-in-IPv4 tunnel backend
# Copyright (c) 2010-2015 OpenWrt.org
[ -n "$INCLUDE_ONLY" ] || {
. /lib/functions.sh
. /lib/functions/network.sh
. ../netifd-proto.sh
init_proto "$@"
}
proto_6in4_update() {
sh -c '
timeout=5
(while [ $((timeout--)) -gt 0 ]; do
sleep 1
kill -0 $$ || exit 0
done; kill -9 $$) 2>/dev/null &
exec "$@"
' "$1" "$@"
}
proto_6in4_add_prefix() {
append "$3" "$1"
}
proto_6in4_setup() {
local cfg="$1"
local iface="$2"
local link="6in4-$cfg"
local mtu ttl tos ipaddr peeraddr ip6addr ip6prefix ip6prefixes tunlink tunnelid username password updatekey gateway
json_get_vars mtu ttl tos ipaddr peeraddr ip6addr tunlink tunnelid username password updatekey gateway
json_for_each_item proto_6in4_add_prefix ip6prefix ip6prefixes
[ -z "$peeraddr" ] && {
proto_notify_error "$cfg" "MISSING_ADDRESS"
proto_block_restart "$cfg"
return
}
[ -n "$tunlink" ] && ( proto_add_host_dependency "$cfg" "$peeraddr" "$tunlink" )
[ -z "$ipaddr" ] && {
local wanif="$tunlink"
if [ -z "$wanif" ] && ! network_find_wan wanif; then
proto_notify_error "$cfg" "NO_WAN_LINK"
return
fi
if ! network_get_ipaddr ipaddr "$wanif"; then
proto_notify_error "$cfg" "NO_WAN_LINK"
return
fi
}
proto_init_update "$link" 1
[ -n "$ip6addr" ] && {
local local6="${ip6addr%%/*}"
local mask6="${ip6addr##*/}"
[[ "$local6" = "$mask6" ]] && mask6=
proto_add_ipv6_address "$local6" "$mask6"
proto_add_ipv6_route "::" 0 "" "" "" "$local6/$mask6"
}
[ -n "$gateway" ] && {
proto_add_ipv6_route "::" 0 "$gateway"
}
for ip6prefix in $ip6prefixes; do
proto_add_ipv6_prefix "$ip6prefix"
proto_add_ipv6_route "::" 0 "" "" "" "$ip6prefix"
done
proto_add_tunnel
json_add_string mode sit
json_add_int mtu "${mtu:-1280}"
json_add_int ttl "${ttl:-64}"
[ -n "$tos" ] && json_add_string tos "$tos"
json_add_string local "$ipaddr"
json_add_string remote "$peeraddr"
[ -n "$tunlink" ] && json_add_string link "$tunlink"
proto_close_tunnel
proto_send_update "$cfg"
[ -n "$tunnelid" -a -n "$username" -a \( -n "$password" -o -n "$updatekey" \) ] && {
[ -n "$updatekey" ] && password="$updatekey"
local http="http"
local urlget="uclient-fetch"
local urlget_opts="-qO-"
local ca_path="${SSL_CERT_DIR:-/etc/ssl/certs}"
[ -f /lib/libustream-ssl.so ] && http=https
[ "$http" = "https" -a -z "$(find $ca_path -name "*.0" 2>/dev/null)" ] && {
urlget_opts="$urlget_opts --no-check-certificate"
}
local url="$http://ipv4.tunnelbroker.net/nic/update?hostname=$tunnelid"
local try=0
local max=3
(
set -o pipefail
while [ $((++try)) -le $max ]; do
if proto_6in4_update $urlget $urlget_opts --user="$username" --password="$password" "$url" 2>&1 | \
sed -e 's,^Killed$,timeout,' -e "s,^,update $try/$max: ," | \
logger -t "$link";
then
logger -t "$link" "updated"
return 0
fi
sleep 5
done
logger -t "$link" "update failed"
)
}
}
proto_6in4_teardown() {
local cfg="$1"
}
proto_6in4_init_config() {
no_device=1
available=1
proto_config_add_string "ipaddr"
proto_config_add_string "ip6addr"
proto_config_add_array "ip6prefix"
proto_config_add_string "peeraddr"
proto_config_add_string "tunlink"
proto_config_add_string "tunnelid"
proto_config_add_string "username"
proto_config_add_string "password"
proto_config_add_string "updatekey"
proto_config_add_string "gateway"
proto_config_add_int "mtu"
proto_config_add_int "ttl"
proto_config_add_string "tos"
}
[ -n "$INCLUDE_ONLY" ] || {
add_protocol 6in4
}

0
CLA-entity.md Executable file → Normal file
View file

0
CLA-individual.md Executable file → Normal file
View file

0
CODE_OF_CONDUCT.md Executable file → Normal file
View file

0
CONTRIBUTING.md Executable file → Normal file
View file

0
LICENSE Executable file → Normal file
View file

185
README.md Executable file → Normal file
View file

@ -1 +1,186 @@
# OpenWrt OpenMPTCProuter feed
This is the OpenWrt OpenMPTCProuter feed containing all modified and necessary packages to build the OpenMPTCProuter image.
For More information, see [https://github.com/ysurac/openmptcprouter](https://github.com/ysurac/openmptcprouter) and [https://www.openmptcprouter.com](https://www.openmptcprouter.com/).
## Glorytun
*Source:* [https://github.com/angt/glorytun](https://github.com/angt/glorytun)
*Description:* A small, simple and secure VPN
A LuCI interface was made to make it easier to use. It's used in OpenMPTCProuter to redirect ports from the VPS to the router and for UDP/ICMP traffic from the router.
## Shadowsocks-libev
*Source:* [https://github.com/shadowsocks/shadowsocks-libev](https://github.com/shadowsocks/shadowsocks-libev)
*Description:* A secure socks5 proxy
MPTCP support is added in LuCI interface and init scripts. IPv6 support added.
## Shadowsocks-v2ray-plugin-bin
*Source:* [https://github.com/shadowsocks/v2ray-plugin](https://github.com/shadowsocks/v2ray-plugin)
*Description:* V2ray plugin for Shadowsocks
Support is added in ShadowSocks LuCI interface and init scripts.
## Simple-obfs
*Source:* [https://github.com/shadowsocks/simple-obfs](https://github.com/shadowsocks/simple-obfs)
*Description:* A simple obfuscating tool, designed as plugin server of shadowsocks.
Support is added in ShadowSocks LuCI interface and init scripts.
## SpeedTestC
*Source:* [https://github.com/mobrembski/SpeedTestC](https://github.com/mobrembski/SpeedTestC)
*Description:* Client for SpeedTest.net infrastructure written in pure C99 standard using only POSIX libraries.
Used to test speed. No LuCI interface.
## Nginx
*Source:* [https://www.nginx.org](https://www.nginx.org)
*Description:* nginx is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server.
A LuCI interface for TCP/UDP stream is added. Used for TCP/UDP failover.
## luci-proto-ipv6
*Source:* [https://github.com/openwrt/luci](https://github.com/openwrt/luci)
*Description:* Luci support for DHCPv6/6in4/6to4/6rd/DS-Lite/aiccu
Added support to gateway set by user for 6in4. Used for IPv6 over the glorytun IPv4 VPN.
## luci-omr-bypass
*Source:* [https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-omr-bypass](https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-omr-bypass)
*Description:* Luci interface to bypass domains, IPs and networks with shadowsocks
Domains, IPs, networks and protocol (using DPI) added are bypassed when shadowsocks is used. This can be used when VPS IP is blacklisted from some sites.
## omr-tracker
*Source:* [https://github.com/Ysurac/openmptcprouter-feeds/tree/master/omr-tracker](https://github.com/Ysurac/openmptcprouter-feeds/tree/master/omr-tracker)
*Description:* Track connection status. This check if gateway is up then check if the connection work. If it's not working this execute scripts. This also detect if ShadowSocks is up or not.
This is used for OpenMPTCProuter failover.
## luci-omr-tracker
*Source:* [https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-omr-tracker](https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-omr-tracker)
*Description:* Luci interface to omr-tracker
Interface to omr-tracker.
## luci-app-iperf
*Source:* [https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-iperf](https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-iperf)
*Description:* Luci interface to iPerf
## omr-6in4
*Source:* [https://github.com/Ysurac/openmptcprouter-feeds/tree/master/omr-6in4](https://github.com/Ysurac/openmptcprouter-feeds/tree/master/omr-6in4)
*Description:* Set tunnel configuration by tracking tunnel configuration.
## omr-update
*Source:* [https://github.com/Ysurac/openmptcprouter-feeds/tree/master/omr-update](https://github.com/Ysurac/openmptcprouter-feeds/tree/master/omr-update)
*Description:* Update old config with new settings.
## luci-app-mptcp
*Source:* [https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-mptcp](https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-mptcp)
*Description:* Luci interface for all MPTCP settings
## luci-app-openmptcprouter
*Source:* [https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-openmptcprouter](https://github.com/Ysurac/openmptcprouter-feeds/tree/master/luci-app-openmptcprouter)
*Description:* Wizard for OpenMPTCProuter settings and status page
## mptcp
*Source:* [https://github.com/Ysurac/openmptcprouter-feeds/tree/master/mptcp](https://github.com/Ysurac/openmptcprouter-feeds/tree/master/mptcp)
*Description:* This package set all MPTCP settings
## ndisc6
*Source:* [http://www.remlab.net/files/ndisc6](http://www.remlab.net/files/ndisc6)
*Description:* An ICMPv6 neighbour discovery tool
This is used to check if there is no other IPv6 route announced on the network
## mlvpn
*Source:* [https://github.com/markfoodyburton/MLVPN/tree/new-reorder](https://github.com/markfoodyburton/MLVPN/tree/new-reorder)
*Description:* Multi-link VPN
This is an other way to aggregate same latency connections
## dsvpn
*Source:* [https://github.com/jedisct1/dsvpn][https://github.com/jedisct1/dsvpn]
*Description:* A Dead Simple VPN
A simple TCP VPN
## ndpi-netfilter2
*Source:* [https://github.com/vel21ripn/nDPI](https://github.com/vel21ripn/nDPI)
*Description:* Open Source Deep Packet Inspection Software Toolkit
This is used to bypass a protocol
## tracebox
*Source:* [https://github.com/tracebox/tracebox](https://github.com/tracebox/tracebox)
*Description:* A middlebox detection tool
## Shortcut-FE
*Source:* [https://github.com/coolsnowwolf/lede/tree/master/package/lean/shortcut-fe](https://github.com/coolsnowwolf/lede/tree/master/package/lean/shortcut-fe)
*Description:* Shortcut is an in-Linux-kernel IP packet forwarding engine.
## V2Ray
*Source:* [https://github.com/v2fly/v2ray-core](https://github.com/v2fly/v2ray-core)
*Description:* A platform for building proxies to bypass network restrictions.
This is used as proxy, alternative to Shadowsocks
# License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2FYsurac%2Fopenmptcprouter-feeds.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2FYsurac%2Fopenmptcprouter-feeds?ref=badge_large)
## Translation status
[![Translation status](https://weblate.openmptcprouter.com/widgets/omr/-/multi-auto.svg)](https://weblate.openmptcprouter.com/engage/omr/?utm_source=widget)

0
aquantia/Makefile Executable file → Normal file
View file

0
atinout/Makefile Executable file → Normal file
View file

0
bcm27xx-eeprom/Makefile Executable file → Normal file
View file

View file

0
contributors/cr3ative.md Executable file → Normal file
View file

0
contributors/example.md Executable file → Normal file
View file

0
contributors/flesser.md Executable file → Normal file
View file

0
contributors/ta264.md Executable file → Normal file
View file

0
contributors/yostyle.md Executable file → Normal file
View file

0
dsvpn/Makefile Executable file → Normal file
View file

0
dsvpn/patches/nostrip.patch Executable file → Normal file
View file

0
fast-classifier/Makefile Executable file → Normal file
View file

0
fast-classifier/src/Makefile Executable file → Normal file
View file

0
fast-classifier/src/fast-classifier.c Executable file → Normal file
View file

0
fast-classifier/src/fast-classifier.h Executable file → Normal file
View file

0
fast-classifier/src/nl_classifier_test.c Executable file → Normal file
View file

0
fast-classifier/src/userspace_example.c Executable file → Normal file
View file

0
fullconenat/Makefile Executable file → Normal file
View file

View file

0
fullconenat/patches/001-linux-6.1-support.patch Executable file → Normal file
View file

0
fullconenat/src/Makefile Executable file → Normal file
View file

0
glorytun-udp/Makefile Executable file → Normal file
View file

0
glorytun-udp/patches/aegis-arm.patch Executable file → Normal file
View file

0
glorytun/Makefile Executable file → Normal file
View file

0
glorytun/glorytun.config Executable file → Normal file
View file

0
golang-protobuf/Makefile Executable file → Normal file
View file

0
golang/golang-build.sh Executable file → Normal file
View file

0
golang/golang-compiler.mk Executable file → Normal file
View file

0
golang/golang-host-build.mk Executable file → Normal file
View file

0
golang/golang-package.mk Executable file → Normal file
View file

0
golang/golang-values.mk Executable file → Normal file
View file

0
golang/golang/Config.in Executable file → Normal file
View file

0
golang/golang/Makefile Executable file → Normal file
View file

0
golang/golang/files/go-gcc-helper Executable file → Normal file
View file

0
golang/golang/test.sh Executable file → Normal file
View file

0
grpcurl/Makefile Executable file → Normal file
View file

0
https-dns-proxy/Makefile Executable file → Normal file
View file

0
https-dns-proxy/files/README.md Executable file → Normal file
View file

0
https-dns-proxy/files/https-dns-proxy.config Executable file → Normal file
View file

0
https-dns-proxy/test.sh Executable file → Normal file
View file

0
ipcalc/Makefile Executable file → Normal file
View file

0
iperf3/Makefile Executable file → Normal file
View file

0
iperf3/patches/add-MPTCP-support.patch Executable file → Normal file
View file

0
iproute2/Makefile Executable file → Normal file
View file

0
iproute2/patches/100-configure.patch Executable file → Normal file
View file

0
iproute2/patches/110-darwin_fixes.patch Executable file → Normal file
View file

0
iproute2/patches/115-add-config-xtlibdir.patch Executable file → Normal file
View file

View file

0
iproute2/patches/130-no_netem_tipc_dcb_man_vdpa.patch Executable file → Normal file
View file

0
iproute2/patches/140-allow_pfifo_fast.patch Executable file → Normal file
View file

0
iproute2/patches/140-keep_libmnl_optional.patch Executable file → Normal file
View file

0
iproute2/patches/145-keep_libelf_optional.patch Executable file → Normal file
View file

0
iproute2/patches/150-keep_libcap_optional.patch Executable file → Normal file
View file

0
iproute2/patches/155-keep_tirpc_optional.patch Executable file → Normal file
View file

0
iproute2/patches/160-libnetlink-pic.patch Executable file → Normal file
View file

0
iproute2/patches/170-ip_tiny.patch Executable file → Normal file
View file

0
iproute2/patches/175-reduce-dynamic-syms.patch Executable file → Normal file
View file

0
iproute2/patches/180-drop_FAILED_POLICY.patch Executable file → Normal file
View file

0
iproute2/patches/190-fix-nls-rpath-link.patch Executable file → Normal file
View file

0
iproute2/patches/195-build_variant_ip_tc.patch Executable file → Normal file
View file

0
iproute2/patches/200-drop_libbsd_dependency.patch Executable file → Normal file
View file

0
iproute2/patches/300-selinux-configurable.patch Executable file → Normal file
View file

0
lcd4linux/Config.in Executable file → Normal file
View file

0
lcd4linux/Makefile Executable file → Normal file
View file

0
lcd4linux/files/lcd4linux.init Executable file → Normal file
View file

View file

0
lcd4linux/patches/140-no_repnop_T6963.patch Executable file → Normal file
View file

0
lcd4linux/patches/150-addlibmpdclient.patch Executable file → Normal file
View file

0
lcd4linux/patches/160-uinput_defs.patch Executable file → Normal file
View file

0
lcd4linux/patches/170-add-generic-spidev-driver.patch Executable file → Normal file
View file

0
lcd4linux/patches/173-glcd2usb-bigendian-fix.patch Executable file → Normal file
View file

0
libell/Makefile Executable file → Normal file
View file

0
luci-app-dsvpn/Makefile Executable file → Normal file
View file

View file

0
luci-app-dsvpn/po/fr/dsvpn.po Executable file → Normal file
View file

0
luci-app-dsvpn/po/fr/dsvpn.po~ Executable file → Normal file
View file

0
luci-app-dsvpn/po/ru/dsvpn.po Executable file → Normal file
View file

0
luci-app-dsvpn/po/templates/dsvpn.pot Executable file → Normal file
View file

0
luci-app-dsvpn/po/zh_Hans/dsvpn.po Executable file → Normal file
View file

0
luci-app-dsvpn/po/zh_Hans/dsvpn.po~ Executable file → Normal file
View file

View file

View file

0
luci-app-firewall/Makefile Executable file → Normal file
View file

View file

View file

View file

View file

View file

Some files were not shown because too many files have changed in this diff Show more