- Exclude Gateway destination type from PREROUTING-VPN rule call.

This commit is contained in:
2026-08-18 15:59:54 +02:00
parent 63d6b883b8
commit c2de255a0e
3 changed files with 14 additions and 3 deletions

View File

@@ -1367,7 +1367,7 @@ network_forward_start()
do
network_dst_tab_get ${dst_id}
if [[ "${dst_type}" != "0" ]]
if [[ ( "${dst_type}" != "0") && ( "${dst_type}" != "1") ]]
then
${DEBUG} iptables -t nat -A PREROUTING -i ${dst_device} -j PREROUTING-VPN
fi
@@ -1424,7 +1424,7 @@ network_forward_stop()
do
network_dst_tab_get ${dst_id}
if [[ "${dst_type}" != "0" ]]
if [[ ( "${dst_type}" != "0") && ( "${dst_type}" != "1") ]]
then
${DEBUG} iptables -t nat -D PREROUTING -i ${dst_device} -j PREROUTING-VPN 2>/dev/null || true
fi