- Exclude Gateway destination type from PREROUTING-VPN rule call.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user