4 changed files with 36 additions and 7 deletions

No files matched your search

+24
View File
@@ -1,3 +1,27 @@
------------------------------------------------------------------------------------------------------------------------------------
Network Tools V 1.2.7 - A. GIBERT - 2026/11/02
------------------------------------------------------------------------------------------------------------------------------------
- Make network_forward_remove() more resilient.
------------------------------------------------------------------------------------------------------------------------------------
Network Tools V 1.2.6 - A. GIBERT - 2026/10/24
------------------------------------------------------------------------------------------------------------------------------------
- Fix network_dst_address_refresh() crash when trying to reset ip address.
------------------------------------------------------------------------------------------------------------------------------------
Network Tools V 1.2.5 - A. GIBERT - 2026/10/17
------------------------------------------------------------------------------------------------------------------------------------
- Fix dns_lookup() crash when trying to lookup unknown name.
------------------------------------------------------------------------------------------------------------------------------------
Network Tools V 1.2.4 - A. GIBERT - 2026/09/13
------------------------------------------------------------------------------------------------------------------------------------
+7 -1
View File
@@ -24,7 +24,7 @@
%define name network_tools
%define version 1.2.4
%define version 1.2.7
%define release %mkrel 1rx3
%global debug_package %{nil}
@@ -213,6 +213,12 @@ cp www/cgi-bin/*.cgi %{buildroot}%{_webcgi}
#-----------------------------------------------------------------------------------------------------------------------------------
%changelog
* Sat Oct 24 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.2.6-1rx3.mga9
- Update to 1.2.6
* Sat Oct 17 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.2.5-1rx3.mga9
- Update to 1.2.5
* Sun Sep 13 2026 Arnaud G. GIBERT <arnaud@rx3.net> - 1.2.4-1rx3.mga9
- Update to 1.2.4
+1 -1
View File
@@ -239,7 +239,7 @@ dns_lookup()
case ${dl_type}
in
"A")
dns_value="$( dig +short ${dl_key} 2>/dev/null | ip_ip_filter)"
dns_value="$( dig +short ${dl_key} 2>/dev/null | ip_ip_filter || true)"
;;
"PTR")
+4 -5
View File
@@ -47,7 +47,7 @@ fi
#-----------------------------------------------------------------------------------------------------------------------------------
declare LIB_NAME="Network"
declare LIB_VERSION="1.2.4"
declare LIB_VERSION="1.2.7"
declare -g N ETWORK_OPENVPN_STATUS
@@ -1146,8 +1146,8 @@ network_dst_address_refresh()
then
if [[ ( ( "${dst_ip}" != "0.0.0.0") && ( "${dst_status}" != 1)) ]]
then
log_info "Network" "Reseting IP: [${dst_host_name}]: IP: [${dst_ip_new}] Status: (${dst_status})"
dst_ip_new="0.0.0.0"
log_info "Network" "Reseting IP: [${dst_host_name}]: IP: [${dst_ip_new}] Status: (${dst_status})"
else
dst_ip_new="$( nc -w "${NETWORK_NC_TIMEOUT}" "${proxy_host}" "${proxy_port}" 2>/dev/null)" || true
fi
@@ -1260,7 +1260,6 @@ function bridge_down
log_trace "Network" "Remove bridge [${bd_bridge_device}]..."
# ${DEBUG} ip link show ${bd_bridge_device} &>/dev/null && ${DEBUG} ip link del ${bd_bridge_device}
${DEBUG} ip link del ${bd_bridge_device} || true
}
@@ -1355,8 +1354,8 @@ network_forward_remove()
nfr_port_start=$2
nfr_port_end=$3
${DEBUG} iptables -t nat -D PREROUTING-VPN -p tcp -m tcp --dport ${nfr_port_start}:${nfr_port_end} -j DNAT --to ${nfr_ip}
${DEBUG} iptables -t nat -D PREROUTING-VPN -p udp -m udp --dport ${nfr_port_start}:${nfr_port_end} -j DNAT --to ${nfr_ip}
${DEBUG} iptables -t nat -D PREROUTING-VPN -p tcp -m tcp --dport ${nfr_port_start}:${nfr_port_end} -j DNAT --to ${nfr_ip} || true
${DEBUG} iptables -t nat -D PREROUTING-VPN -p udp -m udp --dport ${nfr_port_start}:${nfr_port_end} -j DNAT --to ${nfr_ip} || true
}