diff --git a/ReleaseNotes.txt b/ReleaseNotes.txt index 1fdf9a0..5bf3f4e 100644 --- a/ReleaseNotes.txt +++ b/ReleaseNotes.txt @@ -1,3 +1,11 @@ +------------------------------------------------------------------------------------------------------------------------------------ +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 ------------------------------------------------------------------------------------------------------------------------------------ diff --git a/SPECS/network_tools.spec b/SPECS/network_tools.spec index 28a02df..d4e1ef4 100644 --- a/SPECS/network_tools.spec +++ b/SPECS/network_tools.spec @@ -24,7 +24,7 @@ %define name network_tools -%define version 1.2.6 +%define version 1.2.7 %define release %mkrel 1rx3 %global debug_package %{nil} diff --git a/lib/rx3/network.bash b/lib/rx3/network.bash index f0fe862..4a8f4a9 100644 --- a/lib/rx3/network.bash +++ b/lib/rx3/network.bash @@ -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 @@ -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 }