2022-12-22 13:22:49 -07:00
|
|
|
Index: openwrt/feeds/packages/net/iperf3/Makefile
|
2018-08-23 18:33:06 -06:00
|
|
|
===================================================================
|
2022-12-22 13:22:49 -07:00
|
|
|
--- openwrt.orig/feeds/packages/net/iperf3/Makefile
|
|
|
|
+++ openwrt/feeds/packages/net/iperf3/Makefile
|
2018-08-04 08:38:58 -06:00
|
|
|
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
2018-06-30 17:37:45 -06:00
|
|
|
|
|
|
|
PKG_NAME:=iperf
|
2023-12-06 11:12:11 -07:00
|
|
|
PKG_VERSION:=3.15
|
2018-06-30 17:37:45 -06:00
|
|
|
-PKG_RELEASE:=1
|
|
|
|
+PKG_RELEASE:=1AREDN
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2020-01-22 18:37:27 -07:00
|
|
|
PKG_SOURCE_URL:=https://downloads.es.net/pub/iperf
|
2018-08-04 08:38:58 -06:00
|
|
|
@@ -72,6 +72,18 @@ endef
|
|
|
|
define Package/iperf3/install
|
2018-06-30 17:37:45 -06:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2018-08-04 08:38:58 -06:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/iperf3 $(1)/usr/bin/
|
2018-06-30 17:37:45 -06:00
|
|
|
+ $(INSTALL_DIR) $(1)/etc/local/mesh-firewall
|
2018-08-04 08:38:58 -06:00
|
|
|
+ $(INSTALL_BIN) ./files/iperf.firewall $(1)/etc/local/mesh-firewall/20-iperf3
|
2018-06-30 17:37:45 -06:00
|
|
|
+endef
|
|
|
|
+
|
2022-03-15 00:40:20 -06:00
|
|
|
+define Package/iperf3/postinst
|
2018-06-30 17:37:45 -06:00
|
|
|
+#!/bin/sh
|
|
|
|
+# check if we are on real system
|
|
|
|
+if [ -z "$${IPKG_INSTROOT}" ]; then
|
|
|
|
+ echo "Restarting Firewall"
|
|
|
|
+ /etc/init.d/firewall restart
|
|
|
|
+fi
|
|
|
|
+exit 0
|
|
|
|
endef
|
|
|
|
|
2018-08-04 08:38:58 -06:00
|
|
|
define Package/iperf3-ssl/install
|
2022-12-22 13:22:49 -07:00
|
|
|
Index: openwrt/feeds/packages/net/iperf3/files/iperf.firewall
|
2018-08-23 18:33:06 -06:00
|
|
|
===================================================================
|
2018-06-30 17:37:45 -06:00
|
|
|
--- /dev/null
|
2022-12-22 13:22:49 -07:00
|
|
|
+++ openwrt/feeds/packages/net/iperf3/files/iperf.firewall
|
2018-08-04 08:38:58 -06:00
|
|
|
@@ -0,0 +1,9 @@
|
2018-06-30 17:37:45 -06:00
|
|
|
+#!/bin/sh
|
2023-12-06 12:39:23 -07:00
|
|
|
+nft insert rule ip fw4 input_wifi udp dport 5201 accept
|
|
|
|
+nft insert rule ip fw4 input_wifi tcp dport 5201 accept
|
|
|
|
+nft insert rule ip fw4 input_dtdlink udp dport 5201 accept
|
|
|
|
+nft insert rule ip fw4 input_dtdlink tcp dport 5201 accept
|
|
|
|
+if [ "$MESHFW_TUNNELS_ENABLED" == "1" -o "$MESHFW_WG_TUNNELS_ENABLED" == "1" ]; then
|
|
|
|
+ nft insert rule ip fw4 input_vpn udp dport 5201 accept
|
|
|
|
+ nft insert rule ip fw4 input_vpn tcp dport 5201 accept
|
2018-06-30 17:37:45 -06:00
|
|
|
+fi
|